From: Roland McGrath Date: Mon, 12 Jul 2004 06:11:16 +0000 (+0000) Subject: 2004-07-11 Roland McGrath X-Git-Tag: v4.5.18~562 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=61e0bebb44a61b9976308205d78557e06e6f2f75;p=strace 2004-07-11 Roland McGrath * linux/ioctlent.sh: Replace asm with $asm in all places. --- diff --git a/linux/ioctlent.sh b/linux/ioctlent.sh index 5118fbd2..2da3618d 100644 --- a/linux/ioctlent.sh +++ b/linux/ioctlent.sh @@ -52,7 +52,8 @@ lookup_ioctls() # Build the list of all ioctls regexp='^[[:space:]]*#[[:space:]]*define[[:space:]]\+[A-Z][A-Z0-9_]*[[:space:]]\+0x'"$type"'..\>' (cd "$dir" ; grep "$regexp" "$@" /dev/null 2>/dev/null ) | - sed -ne 's/^\(.*\):[[:space:]]*#[[:space:]]*define[[:space:]]*\([A-Z0-9_]*\)[[:space:]]*\(0x'"$type"'..\).*/ { "\1", "\2", \3 },/p' \ + sed -ne "s,$asm/,asm/,g"' +s/^\(.*\):[[:space:]]*#[[:space:]]*define[[:space:]]*\([A-Z0-9_]*\)[[:space:]]*\(0x'"$type"'..\).*/ { "\1", "\2", \3 },/p' \ >> ioctls.h } @@ -71,7 +72,7 @@ files="linux/* $asm/* scsi/* sound/*" # Build the list of all ioctls regexp='^[[:space:]]*#[[:space:]]*define[[:space:]]\+[A-Z][A-Z0-9_]*[[:space:]]\+_S\?\(IO\|IOW\|IOR\|IOWR\)\>' (cd $dir ; grep $regexp $files 2>/dev/null ) | \ - sed -ne "s,$asm/,asm/,"' + sed -ne "s,$asm/,asm/,g"' s/^\(.*\):[[:space:]]*#[[:space:]]*define[[:space:]]*\([A-Z0-9_]*\)[[:space:]]*_S\?I.*(\([^[,]*\)[[:space:]]*,[[:space:]]*\([^,)]*\).*/ { "\1", "\2", _IOC(_IOC_NONE,\3,\4,0) },/p' \ >> ioctls.h