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:
parent
ac971c2727
commit
1e1b61d077
@ -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
|
||||
|
@ -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' |
|
||||
|
Loading…
x
Reference in New Issue
Block a user