]> granicus.if.org Git - strace/commit
tests: do not include <errno.h> unnecessarily
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 21 Apr 2016 18:20:47 +0000 (18:20 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 21 Apr 2016 22:05:57 +0000 (22:05 +0000)
commit96a9ff5746563f46cf3c59709509ad44d6d959ce
tree26c3914e4384565679279be1a836e16a5e76a698
parente5297aeb131a408637d6dbc6b5308d390d7588a6
tests: do not include <errno.h> unnecessarily

Automatically change tests/*.c files using the following script:

for f in tests/*.c; do
grep -Fv errno.h "$f" |
grep -Ewq '(si_)?errno|SOCK_FILTER_DENY_SYSCALL' ||
sed -i '/# *include *<errno\.h>/d' "$f"
done
70 files changed:
tests/access.c
tests/acct.c
tests/aio.c
tests/chroot.c
tests/copy_file_range.c
tests/creat.c
tests/dup.c
tests/dup2.c
tests/dup3.c
tests/epoll_create.c
tests/epoll_create1.c
tests/epoll_ctl.c
tests/epoll_wait.c
tests/execve.c
tests/execveat.c
tests/faccessat.c
tests/fchdir.c
tests/fchmod.c
tests/fchmodat.c
tests/fchownat.c
tests/fdatasync.c
tests/flock.c
tests/fsync.c
tests/ftruncate.c
tests/ftruncate64.c
tests/getgroups.c
tests/getresugid.c
tests/inet-cmsg.c
tests/ioperm.c
tests/iopl.c
tests/linkat.c
tests/llseek.c
tests/lseek.c
tests/mkdir.c
tests/mkdirat.c
tests/mknod.c
tests/mlock2.c
tests/mlockall.c
tests/open.c
tests/openat.c
tests/prctl-seccomp-strict.c
tests/preadv-pwritev.c
tests/pwritev.c
tests/readv.c
tests/rename.c
tests/renameat.c
tests/sched_xetparam.c
tests/sched_xetscheduler.c
tests/scm_rights.c
tests/seccomp-filter.c
tests/seccomp-strict.c
tests/setgroups.c
tests/sethostname.c
tests/shmxt.c
tests/sleep.c
tests/splice.c
tests/struct_flock.c
tests/swap.c
tests/symlinkat.c
tests/sync_file_range.c
tests/sync_file_range2.c
tests/syslog.c
tests/tee.c
tests/truncate.c
tests/truncate64.c
tests/umount.c
tests/unlinkat.c
tests/userfaultfd.c
tests/xetpriority.c
tests/xstatx.c