Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ulrich Drepper committed Jun 15, 2000
1 parent fcf81e8 commit f536109
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
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.

2000-06-14 Ulrich Drepper <drepper@redhat.com>

* login/Makefile (utmpd): Remove rule to build utmpd.
Expand Down
10 changes: 6 additions & 4 deletions sysdeps/unix/make-syscalls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)))"
Expand Down Expand Up @@ -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 "\
Expand Down

0 comments on commit f536109

Please sign in to comment.