]> granicus.if.org Git - strace/commitdiff
ioctlent.sh: handle linux/aufs_type.h properly
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 8 Jan 2015 19:11:05 +0000 (19:11 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 8 Jan 2015 20:59:44 +0000 (20:59 +0000)
Before this change, ioctlent.sh could not recognize unusual constants
defined by linux/aufs_type.h, resulting to ioctls.h with references to
these constants without appropriate definitions in ioctldefs.h.

* linux/ioctlent.sh: Update the regexp that is used to lookup constants
referenced by generated ioctls.h.

linux/ioctlent.sh

index 5e79510472c9bfcc9d70f41134fd67751f69e899..e2830698d3781e4d46010a85aed9a56577e7e434 100755 (executable)
@@ -106,8 +106,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-Z0-9_]\+\)[[:space:]]*,[[:space:]]*\([A-Z][A-Z0-9_]\+\)[[:space:]+,].*/\1\n\2/p' \
-       -e 's/.*_IOC_NONE.*,[[:space:]]*\([A-Z][A-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