diff --git a/ChangeLog b/ChangeLog index 2150a45e..2d408715 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-04-19 Dmitry V. Levin + * signalent.sh: Fix sort(1) old-style options. + * syscallent.sh: Likewise. + Signed-off-by: Mike Frysinger + * count.c (call_summary_pers): Check calloc() return value. Signed-off-by: "Yang Zhiguo" diff --git a/signalent.sh b/signalent.sh index de4bf6ec..9a346ddb 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 | uniq | awk ' BEGIN { tabs = "\t\t\t\t\t\t\t\t" diff --git a/syscallent.sh b/syscallent.sh index 2d2aa5a0..636cedeb 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 -k2n | uniq | awk ' BEGIN { tabs = "\t\t\t\t\t\t\t\t"