aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/make-syscalls.sh
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-03-26 22:49:15 +0000
committerRoland McGrath <roland@gnu.org>2003-03-26 22:49:15 +0000
commitd8e94af60b56d86bdb59acc93d8396fb4e3ce770 (patch)
tree0be2090160f91073c7b61a45ebdcfdb8315fe826 /sysdeps/unix/make-syscalls.sh
parentda058e4542e6aaaef9258f1c94b450f4b32063f0 (diff)
downloadglibc-d8e94af60b56d86bdb59acc93d8396fb4e3ce770.tar
glibc-d8e94af60b56d86bdb59acc93d8396fb4e3ce770.tar.gz
glibc-d8e94af60b56d86bdb59acc93d8396fb4e3ce770.tar.bz2
glibc-d8e94af60b56d86bdb59acc93d8396fb4e3ce770.zip
2003-03-26 Roland McGrath <roland@redhat.com>
* sysdeps/unix/make-syscalls.sh: When an undefined syscall has SOURCE=-, append its symbol names to make variable unix-stub-syscalls. * sysdeps/unix/Makefile [$(subdir) = misc] [unix-stub-syscalls] (sysdep_routines): Add stub-syscalls. ($(objpfx)stub-syscalls.c): New target. (generated): Add stub-syscalls.c.
Diffstat (limited to 'sysdeps/unix/make-syscalls.sh')
-rw-r--r--sysdeps/unix/make-syscalls.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdeps/unix/make-syscalls.sh b/sysdeps/unix/make-syscalls.sh
index 275875e793..0c7eab64c9 100644
--- a/sysdeps/unix/make-syscalls.sh
+++ b/sysdeps/unix/make-syscalls.sh
@@ -111,6 +111,16 @@ while read file srcfile caller syscall args strong weak; do
echo "#### CALL=$file NUMBER=$callnum ARGS=$args SOURCE=$srcfile"
case x$srcfile"$callnum" in
+ x--)
+ # Undefined callnum for an extra syscall.
+ if [ x$caller != x- ]; then
+ if [ x$noerrno != x ]; then
+ echo >&2 "$0: no number for $fileno, no-error syscall ($strong $weak)"
+ exit 2
+ fi
+ echo "unix-stub-syscalls += $strong $weak"
+ fi
+ ;;
x*-) ;; ### Do nothing for undefined callnum
x-*)
echo "ifeq (,\$(filter $file,\$(unix-syscalls)))"