]> granicus.if.org Git - strace/commit
xlat: print _IOC_NONE in symbolic form even if it is equal to 0
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 23 Sep 2018 09:54:55 +0000 (09:54 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 23 Sep 2018 09:54:55 +0000 (09:54 +0000)
commite78becf8b93d7cc7649864a1344ed1db0b86e50e
treec50aa26216d2d0cd7edf34ff1021ea26831c21fc
parent9eeab9844831ce0a80150eb3dd184badae703d21
xlat: print _IOC_NONE in symbolic form even if it is equal to 0

On some architectures _IOC_NONE equals to 1, on others it is 0.
Change the way how ioctl direction flags are printed so that
_IOC_NONE is printed in symbolic form even if it is equal to 0.

* xlat/ioctl_dirs.in (_IOC_NONE): Move to the head of the list.
* tests/ioctl_inotify.c (main): Update expected output.
* tests/ioctl_loop. (main): Likewise.c
* tests/ioctl_perf.c (main): Likewise.
* tests/ioctl_scsi.c (main): Likewise.
tests/ioctl_inotify.c
tests/ioctl_loop.c
tests/ioctl_perf.c
tests/ioctl_scsi.c
xlat/ioctl_dirs.in