syscallent.sh and useless END{} ?
Mike Frysinger
vapier at gentoo.org
Wed Mar 26 23:20:11 UTC 2008
On Wednesday 26 March 2008, Mike Frysinger wrote:
> On Wednesday 26 March 2008, Dmitry V. Levin wrote:
> > On Wed, Mar 26, 2008 at 06:36:05PM -0400, Mike Frysinger wrote:
> > > Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> > > ---
> > > signalent.sh | 2 +-
> > > syscallent.sh | 2 +-
> > > 2 files changed, 2 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/signalent.sh b/signalent.sh
> > > index d0fac86..6f9aea6 100644
> > > --- a/signalent.sh
> > > +++ b/signalent.sh
> > > @@ -28,7 +28,7 @@
> > >
> > > cat $* |
> > > sed -n -e 's/\/\*.*\*\// /' -e 's/^#[ ]*define[ ][ ]*SIG\([^_
> > > ]*\)[ ][ ]*\([0-9][0-9]*\)[ ]*$/\1 \2/p' | - sort +1n |
> > > + sort -k2n |
> > > awk '
> > > BEGIN {
> > > tabs = "\t\t\t\t\t\t\t\t"
> > > diff --git a/syscallent.sh b/syscallent.sh
> > > index 2f08701..7cab850 100644
> > > --- a/syscallent.sh
> > > +++ b/syscallent.sh
> > > @@ -30,7 +30,7 @@ cat ${1+"$@"} |
> > > sed -n 's/^#[ ]*define[ ][ ]*SYS_\([^ ]*\)[
> > > ]*[^0-9]*\([0-9]*\).*$/\1 \2/p s/^#[ ]*define[ ][ ]*__NR_\([^
> > > ]*\)[ ]*[^0-9]*\([0-9]*\).*$/\1 \2/p s/^#[ ]*define[ ][ ]*__NR_\([^
> > > ]*\)[ ]*[^0-9()]*(__NR_Linux + \([0-9]*\))$/\1 \2/p' | - sort +1n |
> > > uniq | + sort -k1n | uniq |
> > > awk '
> > > BEGIN {
> > > tabs = "\t\t\t\t\t\t\t\t"
> >
> > Thank you.
> > While 1st hunk looks OK, I'm not sure about the 2nd.
> > Shouldn't it look like the 1st one?
>
> hrm, yes. it looks like when i moved my changes from work to my house for
> submission, some pieces were lost along the way.
double hrm. this was svn acting up on me again. sometimes it fails to detect
that a file actually has changes in it. in this case, syscallent.sh wasnt
fully committed.
now that i look at it again, i wonder what exactly the purpose of the END{}
block in the awk is for. it seems to completely pointless in my eyes. why
generate 100 extra syscalls that are known to be undefined ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20080326/64e765ca/attachment.bin>
More information about the Strace-devel
mailing list