[CRIU] Re: [PATCH 5/5] syscalls: Complete redesign v7
Cyrill Gorcunov
gorcunov at openvz.org
Wed Apr 18 08:34:00 EDT 2012
On Wed, Apr 18, 2012 at 04:31:04PM +0400, Pavel Emelyanov wrote:
> On 04/18/2012 04:21 PM, Cyrill Gorcunov wrote:
> > On Wed, Apr 18, 2012 at 04:17:54PM +0400, Pavel Emelyanov wrote:
> >>> + echo $line | awk '{ print "#define " $1 " " $2};' >> $codesout
> >>> + echo "extern unsigned long $lv ($rv;" >> $protosout
> >>> + echo "SYSCALL($lv,$num)" >> $asmout
> >>
> >> I thought I told to do it without loops using tree cat | egrep | awk chains, no?
> >
> > Could be, I don't remember, but I need it to be done line-by-line,
> > not sure how to make it without loop.
>
> In a
>
> cat $in | egrep -v '^#' | awk FS=' ' '{print "#define", $1, $2}' > $codesout
> cat $in | egrep -v '^#' | awk FS=' ' '{print "extern unsigned long", $2, $3}' > $protosout
> cat $in | egrep -v '^#' | awk FS=' ' '{print "SYSCALL($2, $3"}' > $asmout
>
> form.
I'll try
Cyrill
More information about the CRIU
mailing list