[PATCH] fix running with newer versions of coreutils
Mike Frysinger
vapier at gentoo.org
Wed Mar 26 22:36:05 UTC 2008
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"
--
1.5.4.4
More information about the Strace-devel
mailing list