2003-02-26 Stuart Menefy <stuart.menefy@st.com>

* linux/ioctlent.sh: Take an arg for location of header files
	* syscallent.sh: Replaced lost $
This commit is contained in:
Roland McGrath 2003-03-31 01:03:34 +00:00
parent ac971c2727
commit 1e1b61d077
2 changed files with 9 additions and 2 deletions

View File

@ -28,7 +28,14 @@
# $Id$
#
dir="/usr/include"
# Validate arg count.
if [ $# -ne 1 ]
then
echo "usage: $0 include-directory" >&2
exit 1
fi
dir=$1
files="asm/ioctls.h /dev/null"
# Build the list of all ioctls

View File

@ -26,7 +26,7 @@
#
# $Id$
cat {1+"$@"} |
cat ${1+"$@"} |
sed -n 's/^#[ ]*define[ ][ ]*SYS_\([^ ]*\)[ ]*[^0-9]*\([0-9]*\).*$/\1 \2/p
s/^#[ ]*define[ ][ ]*__NR_\([^ ]*\)[ ]*[^0-9]*\([0-9]*\).*$/\1 \2/p
s/^#[ ]*define[ ][ ]*__NR_\([^ ]*\)[ ]*[^0-9()]*(__NR_Linux + \([0-9]*\))$/\1 \2/p' |