X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=make_syscall_h.sh;h=3363bc7050b76838dd2aee4d0bd730a65df09f31;hp=57333fdb7f09f7ce58ef72f25c5d65a4a44de4bb;hb=7c6cf551df1eb4b59b2576c73db7ad30ac4ce396;hpb=dfcfcca7baf2b22d8dac1a724bdb7dd9d52f4c05 diff --git a/make_syscall_h.sh b/make_syscall_h.sh index 57333fd..3363bc7 100755 --- a/make_syscall_h.sh +++ b/make_syscall_h.sh @@ -14,5 +14,5 @@ CC=$1 echo "#include " echo "static const char *syscall_names[] = {" echo "#include " | ${CC} -E -dM - | grep '^#define __NR_' | \ - LC_ALL=C sed -r -n -e 's/^\#define[ \t]+__NR_([a-z0-9_]+)[ \t]+([ ()+0-9NR_Linux]+)(.*)/ [\2] = "\1",/p' + LC_ALL=C sed -r -n -e 's/^\#define[ \t]+__NR_([a-z0-9_]+)[ \t]+([ ()+0-9a-zNR_Linux]+)(.*)/ [\2] = "\1",/p' echo "};"