diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-06-15 19:06:12 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-06-15 19:06:12 +0000 |
commit | f5361098c526e43f0437a491ed48122794b35451 (patch) | |
tree | d17629d5095300d919f1c58622f7b5039be23806 /sysdeps | |
parent | fcf81e8144c6a985f6949f37e91ef6cfe575d02d (diff) | |
download | glibc-f5361098c526e43f0437a491ed48122794b35451.tar.gz glibc-f5361098c526e43f0437a491ed48122794b35451.tar.xz glibc-f5361098c526e43f0437a491ed48122794b35451.zip |
Update.
2000-06-15 Greg McGary <greg@mcgary.org> * sysdeps/unix/make-syscalls.sh: Strip leading whitespace from lhs of callnum assignment. Tolerate callnum expressions containing parens.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/unix/make-syscalls.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sysdeps/unix/make-syscalls.sh b/sysdeps/unix/make-syscalls.sh index 387df6799e..89bd3a3e42 100644 --- a/sysdeps/unix/make-syscalls.sh +++ b/sysdeps/unix/make-syscalls.sh @@ -46,7 +46,8 @@ echo "$calls" | while read file srcfile caller syscall args strong weak; do callnum=- eval `{ echo "#include <sysdep.h>"; echo "callnum=SYS_ify ($syscall)"; } | - $asm_CPP - |grep "^callnum=" |grep -v $syscall` + $asm_CPP - |sed -n -e "/^callnum=.*$syscall/d" \ + -e "/^\(callnum=\)[ ]*\(.*\)/s//\1'\2'/p"` # Derive the number of arguments from the argument signature case $args in @@ -63,7 +64,7 @@ eval `{ echo "#include <sysdep.h>"; # Make sure only the first syscall rule is used, if multiple dirs # define the same syscall. echo "#### CALL=$file NUMBER=$callnum ARGS=$args SOURCE=$srcfile" - case x$srcfile$callnum in + case x$srcfile"$callnum" in x*-) ;; ### Do nothing for undefined callnum x-*) echo "ifeq (,\$(filter $file,\$(unix-syscalls)))" @@ -151,8 +152,9 @@ shared-only-routines += $file ;; esac - case x$callnum,$srcfile,$args in - x[0-9]*,-,*[sp]* | x*,*.[sS],*[sp]*) + case x"$callnum",$srcfile,$args in + x-,-,*) ;; + x*,-,*[sp]* | x*,*.[sS],*[sp]*) echo "ifeq (,\$(filter $file,\$(bp-thunks)))" echo "bp-thunks += $file"; echo "\ |