From: Dmitry V. Levin Date: Fri, 16 Jan 2015 20:19:39 +0000 (+0000) Subject: ioctlent.sh: cleanup regexps that are used to fetch bases X-Git-Tag: v4.10~186 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74932976ba16aee08b49e5ca0669dc4c6305405f;p=strace ioctlent.sh: cleanup regexps that are used to fetch bases --- diff --git a/linux/ioctlent.sh b/linux/ioctlent.sh index 10b7fb9e..5a56270b 100755 --- a/linux/ioctlent.sh +++ b/linux/ioctlent.sh @@ -105,8 +105,8 @@ sort -u -o ioctls.h ioctls.h # Some use a special base to offset their ioctls on. Extract that as well. # Some use 2 defines: _IOC(_IOC_NONE,DM_IOCTL,DM_LIST_DEVICES_CMD,....) bases=$(sed -n \ - -e 's/.*_IOC_NONE.*,[[:space:]]*\([A-Z][A-Za-z0-9_]\+\)[[:space:]]*,[[:space:]]*\([A-Z][A-Za-z0-9_]\+\)[[:space:]+,].*/\1\n\2/p' \ - -e 's/.*_IOC_NONE.*,[[:space:]]*\([A-Z][A-Za-z0-9_]\+\)[[:space:]+,].*/\1/p' \ + -e 's/.*_IOC_NONE.*,[[:space:]]*\([A-Z][A-Za-z0-9_]\+\)[[:space:]]*,[[:space:]]*\([A-Z][A-Za-z0-9_]\+\)[[:space:]]*[+,)].*/\1\n\2/p' \ + -e 's/.*_IOC_NONE.*,[[:space:]]*\([A-Z][A-Za-z0-9_]\+\)[[:space:]]*[+,)].*/\1/p' \ ioctls.h | sort -u) for base in $bases; do