[CRIU] Re: [PATCH 5/5] syscalls: Complete redesign v7

Pavel Emelyanov xemul at parallels.com
Wed Apr 18 08:31:04 EDT 2012


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.

> 	Cyrill
> 



More information about the CRIU mailing list