]> mj.ucw.cz Git - moe.git/commitdiff
Box: Filter out madvise1, which is an alias for madvise with the same ID
authorMartin Mares <mj@ucw.cz>
Sun, 20 Jun 2010 14:39:55 +0000 (16:39 +0200)
committerMartin Mares <mj@ucw.cz>
Sun, 20 Jun 2010 14:39:55 +0000 (16:39 +0200)
box/mk-syscall-table

index 82096d276036765fc2d65db17eaa5c98e8889e91..b33a4867180772d53a88abeefba7c8e8d3deaf38 100755 (executable)
@@ -5,5 +5,5 @@ echo '/* Syscall table automatically generated by mk-syscall-table */'
 echo
 echo '#include <asm/unistd.h>' |
        gcc -E -dM "$@" - |
-       sed 's/^#define __NR_\([^       ]\+\).*/[ __NR_\1 ] = "\1",/;t;d'
+       sed '/__NR_madvise1/d; s/^#define __NR_\([^     ]\+\).*/[ __NR_\1 ] = "\1",/;t;d'
 )