]> granicus.if.org Git - strace/commitdiff
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)
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

index 402540b20767e5237693134ab784564fd512f002..2920db504dd7fe7e9e7daea5d09eda403f75706e 100644 (file)
@@ -3,7 +3,6 @@
 
 #ifdef __NR_access
 
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index b85968119b6655944f9bfc09d7079670b94ca096..4591fe0f5d1aee2bb8f11677c547fc3d43c640bb 100644 (file)
@@ -4,7 +4,6 @@
 #ifdef __NR_acct
 
 # include <assert.h>
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index 9bcf23b99795f322a5bb8e8e2f3e68bf1d850eef..5418f8c84b91d38a272636bf88dd2c1a6ddaf6e6 100644 (file)
@@ -27,7 +27,6 @@
 
 #include "tests.h"
 #include <assert.h>
-#include <errno.h>
 #include <fcntl.h>
 #include <inttypes.h>
 #include <stdio.h>
index 40300b90436f8c46553c5e1293b7c92cf72267fa..fb9548c7018862ae381dfcca77a710821461e8d5 100644 (file)
@@ -3,7 +3,6 @@
 
 #ifdef __NR_chroot
 
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index bde64d71b27d8dc542d2c29011dd3adc7e871b83..91afc6711fdba53cbb75f504a7e0cf08837d4b9a 100644 (file)
@@ -33,7 +33,6 @@
 #if defined __NR_copy_file_range
 
 # include <assert.h>
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index 759c77837a44b5aaa89c296c01b984d298d06395..8572e7f4f22a2200bf4d306dcf757e211ec4e8c0 100644 (file)
@@ -3,7 +3,6 @@
 
 #ifdef __NR_creat
 
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index 0407097f3d106962b8882a20310a1af58ad562b7..62157e2ff8ffc828c3f1eca0f7a8fce95b5864bb 100644 (file)
@@ -1,5 +1,4 @@
 #include "tests.h"
-#include <errno.h>
 #include <stdio.h>
 #include <unistd.h>
 
index dde4e51f0d47c37078c3f11fd201818422b30b09..70d8f3e5969739b128063b83df8a169145193872 100644 (file)
@@ -3,7 +3,6 @@
 
 #ifdef __NR_dup2
 
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index c979fcf34b1afe9930ddc666c9a987d552a7df75..884331a2445239cbe67e6eabece0cca104e1bd5d 100644 (file)
@@ -4,7 +4,6 @@
 
 #if defined __NR_dup3 && defined O_CLOEXEC
 
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index 0efb2803f1e049f65d41739bfdbd5c50c645d98d..4be06c435bd17692225126025d703f0d08b15b12 100644 (file)
@@ -3,7 +3,6 @@
 
 #ifdef __NR_epoll_create
 
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index bb86154fc65d3231dd9cfc2c8f197ed5a101438f..f646840c2377b99a2a82e079ad73cd2aeee19d2b 100644 (file)
@@ -32,7 +32,6 @@
 #if defined __NR_epoll_create1 && defined O_CLOEXEC
 
 # include <assert.h>
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index 13ca3b69b009cb8beb1f8d6f3f392c6c8f0b464b..ffb12ac53850f26752fcdf95f4b2631e124dbb43 100644 (file)
@@ -3,7 +3,6 @@
 
 #if defined __NR_epoll_ctl && defined HAVE_SYS_EPOLL_H
 
-# include <errno.h>
 # include <inttypes.h>
 # include <stdio.h>
 # include <sys/epoll.h>
index 01bbe8ef3b15d9e03bf8707ea00a9f009cbc9fed..df1d3c2e5b2460a31185c184c2ade735b105d629 100644 (file)
@@ -3,7 +3,6 @@
 
 #if defined __NR_epoll_wait && defined HAVE_SYS_EPOLL_H
 
-# include <errno.h>
 # include <stdio.h>
 # include <sys/epoll.h>
 # include <unistd.h>
index 82e32c6062382150e0042fc35f0e07404732751f..852eebfaabe624b21971908fd8101095af064ec0 100644 (file)
@@ -28,7 +28,6 @@
  */
 
 #include "tests.h"
-#include <errno.h>
 #include <stdio.h>
 #include <unistd.h>
 
index ec0dc768f70776815949cdaa7cc45d962d34014e..972fc1731b7ad414b593f04b3a9a63b045cb15ef 100644 (file)
@@ -28,7 +28,6 @@
  */
 
 #include "tests.h"
-#include <errno.h>
 #include <stdio.h>
 #include <unistd.h>
 #include <sys/syscall.h>
index e4c3ca97bc095e6e8103708e5582e264880536bf..06a6ae36954824ce3c98b5225179da0140f6e0e1 100644 (file)
@@ -3,7 +3,6 @@
 
 #ifdef __NR_faccessat
 
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index 40511173d1af04fb99412bc7e780adc6a9f3a658..7306d4d09e98f6db4f2e1b530bf36032401b956a 100644 (file)
@@ -3,7 +3,6 @@
 
 #ifdef __NR_fchdir
 
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index 13fd4d073f4f688600571f298d270d283930b204..57fefa10715f33f196db1d539a4f54fe089172ac 100644 (file)
@@ -34,7 +34,6 @@
 #include <sys/stat.h>
 #include <stdio.h>
 #include <unistd.h>
-#include <errno.h>
 
 int
 main(void)
index 11883600fe608b885514f2d1350002eae9cb634a..2ae613e7bf916bca328fe6a3bef61115f61bd0e7 100644 (file)
@@ -32,7 +32,6 @@
 
 #ifdef __NR_fchmodat
 
-# include <errno.h>
 # include <fcntl.h>
 # include <stdio.h>
 # include <unistd.h>
index 542b68c95fffe5d56e23a4d341903fae4ede54bb..9a0ecc84a6dcc766e253975117efff42377adb6f 100644 (file)
@@ -33,7 +33,6 @@
 
 #if defined __NR_fchownat && defined AT_FDCWD && defined AT_SYMLINK_NOFOLLOW
 
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index 1c11640dd3a85cd03187142f9238d2d630a78d1d..86f1cfaf7155dbb6b47b5de4d6abe27a17a89168 100644 (file)
@@ -3,7 +3,6 @@
 
 #ifdef __NR_fdatasync
 
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index ef6eeea109155264f2a74468c02ae45ea2c76747..d6e20089e9d039357df6c5c64dadfbb505b58b9d 100644 (file)
@@ -3,7 +3,6 @@
 
 #ifdef __NR_flock
 
-# include <errno.h>
 # include <stdio.h>
 # include <sys/file.h>
 # include <unistd.h>
index bd0cb1ea511af7ea07f09c7bce49f14897449379..911c167577fc8eb9872f2a5731329e9cf5642b2c 100644 (file)
@@ -3,7 +3,6 @@
 
 #ifdef __NR_fsync
 
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index 65ef4b110825112a94813dca76c9d4edb311ac34..7f11771cba4d7f67fc01cfbdce0aef6a2a09500e 100644 (file)
@@ -31,7 +31,6 @@
 #ifdef __NR_ftruncate
 
 # include <assert.h>
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index 2e28d9d4f1c5bf08296487c727e8ba55894e47e2..accc5417b83a21c1b85010d5b57fa06ca7a313ba 100644 (file)
@@ -31,7 +31,6 @@
 #ifdef __NR_ftruncate64
 
 # include <assert.h>
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index c99b70ccdc2eea791b94fa59eaf340e806d93b31..f3611fb7b6882d432962c0d918243a318b87e8fa 100644 (file)
@@ -54,7 +54,6 @@
 
 #ifdef GID_TYPE
 
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index 13501ba741ace9e07660218040f6f1201b6ceead..1ed134ff20b8fe28948ae7af20b3e5693505a2bc 100644 (file)
@@ -28,7 +28,6 @@
  */
 
 #include <assert.h>
-#include <errno.h>
 #include <stdio.h>
 #include <unistd.h>
 
index dd6f5c45cbff851bf5569f3a148bd6cf052fa42c..d21d5d2036a0eb7e094211f85c458d1b1b62f483 100644 (file)
@@ -27,7 +27,6 @@
 
 #include "tests.h"
 #include <assert.h>
-#include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
 #include <stdint.h>
index 1deaa156caf772f429e01494922663b7cf666567..f39bdf0d029fb715e40a6ace33bb27e39abda3d5 100644 (file)
@@ -3,7 +3,6 @@
 
 #ifdef __NR_ioperm
 
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index a3e982729b160b5e64eba54e8a4f28f2479d0d58..b547f3c3e46619ff59e8a2058be9ae7154be16ed 100644 (file)
@@ -3,7 +3,6 @@
 
 #ifdef __NR_iopl
 
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index 2b88db75f25937c10c1a030842b94a814b843931..06d550ed76e422df16714499f30e8bd33c808822 100644 (file)
@@ -3,7 +3,6 @@
 
 #ifdef __NR_linkat
 
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index 9df2c088d7f4a2637c5c3744be4ab52c4b2eb9d0..56a73ecce7ea1657f5cc48d4d1cf3d5d0e99cd70 100644 (file)
@@ -31,7 +31,6 @@
 #ifdef __NR__llseek
 
 # include <assert.h>
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index 72efc6e2c75492404a3b74375397890536424df5..c49720210c840f4f9c9acce385f5732b7ca6dde1 100644 (file)
@@ -31,7 +31,6 @@
 #ifdef __NR_lseek
 
 # include <assert.h>
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 # include "kernel_types.h"
index 2ff449475a0ed187c895d89ef1196294c570cfd5..dbb43c3bf247c62ef4d43201c5abbf1c582eb523 100644 (file)
@@ -3,7 +3,6 @@
 
 #ifdef __NR_mkdir
 
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index c87c5b33204c94d00f892bad0ec5184517526f18..cbdf16c5ed37f6b0ecf59063e628bdf19085ad85 100644 (file)
@@ -3,7 +3,6 @@
 
 #ifdef __NR_mkdirat
 
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index 4ccc405ce82d7c39c3ddf45648fa4f6654127b6d..b7e02443dbcb7c104385116cf7572c35d4d1f5a3 100644 (file)
@@ -3,7 +3,6 @@
 
 #ifdef __NR_mknod
 
-# include <errno.h>
 # include <stdio.h>
 # include <sys/stat.h>
 # include <unistd.h>
index 47c47ed2a4599fe6bd25d1fa0be94d3ad6760493..c1734a41b21d45a5010ea191669f8c46dcb44181 100644 (file)
@@ -31,7 +31,6 @@
 #ifdef __NR_mlock2
 
 # include <assert.h>
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index 10c86676436a077cf42cb0507e4db45fe3ccae62..cafa4d65b9da17992f9ffab42125be12a2bffdbc 100644 (file)
@@ -29,7 +29,6 @@
 
 #include "tests.h"
 
-#include <errno.h>
 #include <stdio.h>
 #include <sys/mman.h>
 
index e7c845934157468003fdad306a1af329f72a9a48..726b1ec2a19723434a5a62898309edc0782f5396 100644 (file)
@@ -30,7 +30,6 @@
 
 #ifdef __NR_open
 
-# include <errno.h>
 # include <fcntl.h>
 # include <stdio.h>
 # include <unistd.h>
index e7f9fbedae38e9d80014c9adb4ddc5f65cded57d..a3de1dd7097c42e047ca846fd04a1821ef2b091d 100644 (file)
@@ -33,7 +33,6 @@
 # include <fcntl.h>
 # include <stdio.h>
 # include <unistd.h>
-# include <errno.h>
 
 int
 main(void)
index 1944745076a3f96a4b6c8312e3b5234e358a3361..ff8d89f203a779fb06d12c49e6da8db6ba039b35 100644 (file)
@@ -34,7 +34,6 @@
 #if defined HAVE_PRCTL && defined PR_SET_SECCOMP && defined __NR_exit
 
 # include <assert.h>
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index 3e9a669a0734beecbc3ad9bdd19df8c2f32696e5..38a0dd84f10a19f93f6fa976cd175e897c85db92 100644 (file)
@@ -31,7 +31,6 @@
 
 #if defined HAVE_PREADV && defined HAVE_PWRITEV
 
-# include <errno.h>
 # include <fcntl.h>
 # include <stdio.h>
 # include <sys/uio.h>
index 6bfd58ed9a95d8e63830986c3b48f52fb0079a30..beac680fde56e2621156ff2673867b4781564ae4 100644 (file)
@@ -29,7 +29,6 @@
 
 #ifdef HAVE_PWRITEV
 
-# include <errno.h>
 # include <fcntl.h>
 # include <stdio.h>
 # include <sys/uio.h>
index d0a1dd0625e607094a83dd9381211706c2167c1d..93eef67812468c67d904eda18f29f6c6fa67c16c 100644 (file)
@@ -30,7 +30,6 @@
 #include "tests.h"
 
 #include <assert.h>
-#include <errno.h>
 #include <stdio.h>
 #include <unistd.h>
 #include <sys/uio.h>
index 5a54ca08e0b5413ac897bbfc983576dba991ead1..a2a9209eff083afef33891c3a26587cc45322aae 100644 (file)
@@ -1,5 +1,4 @@
 #include "tests.h"
-#include <errno.h>
 #include <sys/syscall.h>
 
 #ifdef __NR_rename
index b7460e70cb2903913cbfc8c65d2855efe8fd91f7..da38f2308bc4b90f79b6237e46d38706a93b8e33 100644 (file)
@@ -1,5 +1,4 @@
 #include "tests.h"
-#include <errno.h>
 #include <sys/syscall.h>
 
 #ifdef __NR_renameat
index e8e92e34624e66abbb47dddd942a13eafdc8b4e0..cb3081880810402185ec842ec386c28c82741a38 100644 (file)
@@ -3,7 +3,6 @@
 
 #if defined __NR_sched_getparam && defined __NR_sched_setparam
 
-# include <errno.h>
 # include <sched.h>
 # include <stdio.h>
 # include <unistd.h>
index 7a077a8c6c164c8b49dfcd85c27d89a692cccb5a..f86adfa257b39e55fe1ee98ec49fda58b454d751 100644 (file)
@@ -3,7 +3,6 @@
 
 #if defined __NR_sched_getscheduler && defined __NR_sched_setscheduler
 
-# include <errno.h>
 # include <sched.h>
 # include <stdio.h>
 # include <unistd.h>
index 00af4d55e50ec4909d387b46be1779d37b1c7d68..42caed7ca3ea3d3262ce781400533a65ed03b1b1 100644 (file)
@@ -27,7 +27,6 @@
 
 #include "tests.h"
 #include <assert.h>
-#include <errno.h>
 #include <fcntl.h>
 #include <stdlib.h>
 #include <string.h>
index 5f5bb025efa6e70b5bbee9958b974ec1ad041e06..664f4627d6f448c960e03076c60e5e9992bdeeed 100644 (file)
@@ -30,7 +30,6 @@
 #include "tests.h"
 
 #include <assert.h>
-#include <errno.h>
 #include <stdio.h>
 #include <sys/syscall.h>
 #include <unistd.h>
index c06f05aad905bc55330fb7cb7584e55f90b21517..2578e29e36b9d0b3168e75b8edf957ed18ff2b67 100644 (file)
@@ -33,7 +33,6 @@
 #if defined __NR_seccomp && defined __NR_exit
 
 # include <assert.h>
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index f46dc7edd105f592c4d6d8ed0e497634a85b589b..30f363a234b52a02fd0a7049620fee2f60f4a9ca 100644 (file)
@@ -54,7 +54,6 @@
 
 #ifdef GID_TYPE
 
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index 3e21d9fbe5f6c93e96a2dc2f76ae8e35f53d2a3f..65d0a78d75df21ede5d60893b3df1438567d81f7 100644 (file)
@@ -3,7 +3,6 @@
 
 #ifdef __NR_sethostname
 
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index 9662b9dade6c1fd5cd84317bd597eff37a70205e..fdfa6d7f1de1c5139944bdbde7d89f6b196c7dd5 100644 (file)
@@ -1,5 +1,4 @@
 #include "tests.h"
-#include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/shm.h>
index 725d0f233ea4f8efa3bf6fc19d183b6de978f3f4..f4bce3cdb00e545d922f46bf6637857f90552b2e 100644 (file)
@@ -28,7 +28,6 @@
  */
 
 #include "tests.h"
-#include <errno.h>
 #include <stdlib.h>
 #include <time.h>
 
index b3f3f08095786f72db0e69e1df05be84181226ba..ee7c6ad82f5c9accef1ca1c453ccf0e64d5d92a4 100644 (file)
@@ -33,7 +33,6 @@
 #if defined __NR_splice
 
 # include <assert.h>
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index f942909e11a614e0921a3db51903bb0b03e0fe62..fd42750111d4b309107fc89068a92122aa2d2fc0 100644 (file)
@@ -25,7 +25,6 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include <errno.h>
 #include <stdio.h>
 #include <stdint.h>
 #include <stdlib.h>
index 3ab916359e233672a3adaeca9cc40e4e05989735..065af4dc4ed7b82e341ecd55b15715151c548660 100644 (file)
@@ -3,7 +3,6 @@
 
 #if defined __NR_swapon && defined __NR_swapoff
 
-# include <errno.h>
 # include <stdio.h>
 # include <sys/swap.h>
 # include <unistd.h>
index e302d9493a0ea38ef24a4487e0dc4c1055ee1fef..3dfdd8076b2f7d7b8432e1cd5a720412baac8d39 100644 (file)
@@ -3,7 +3,6 @@
 
 #ifdef __NR_symlinkat
 
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index eea36d2aa04302fabd7069371e07f5bebd9530c0..dc640f403b4c52fa0cfd19dd4091178f23f05b1f 100644 (file)
@@ -34,7 +34,6 @@
 #if defined HAVE_SYNC_FILE_RANGE && defined __NR_sync_file_range
 
 # include <assert.h>
-# include <errno.h>
 # include <stdio.h>
 
 int
index db736c31683f9ebdb0ba6e0cead928671bb4b850..cf0e97bcf66765f79a57a5ee8fb039a46329c353 100644 (file)
@@ -34,7 +34,6 @@
 #if defined HAVE_SYNC_FILE_RANGE && defined  __NR_sync_file_range2
 
 # include <assert.h>
-# include <errno.h>
 # include <stdio.h>
 
 int
index b79789bb801a1be73690f4391b4e9d85c80379a0..8c6829836e22940a8450665e31eec70b035d08f7 100644 (file)
@@ -3,7 +3,6 @@
 
 #ifdef __NR_syslog
 
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index 4ad57e8b9f3cf874c5e04d5a4ce841b75eee2b11..b7a1f166a0bad65df162ced040629bbcf57974cb 100644 (file)
@@ -33,7 +33,6 @@
 #if defined __NR_tee
 
 # include <assert.h>
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index 0f65c3406bfa4b689e9bb6fc5de754f9d89cbaa0..2599bf2fc5040cddb44976dbb02ca6e359423e19 100644 (file)
@@ -31,7 +31,6 @@
 #ifdef __NR_truncate
 
 # include <assert.h>
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 # include "kernel_types.h"
index 55400c2fa880d317db1aa8bc4c0386153aa4a1ed..2e9487e62457660d53e54c7a17e4267ddcebd057 100644 (file)
@@ -31,7 +31,6 @@
 #ifdef __NR_truncate64
 
 # include <assert.h>
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index d5cde96bbda8a91434d14934717a37038ae7e20a..cc382fe030c708794047ea52334dec8be5760b3c 100644 (file)
@@ -26,7 +26,6 @@
  */
 
 #include "tests.h"
-#include <errno.h>
 #include <stdio.h>
 #include <sys/stat.h>
 #include <sys/mount.h>
index 81d690b3507bd92b08fc989cde4180e33cecb6b2..29eeb19fb7915caaa3d31c7910070783369d3b78 100644 (file)
@@ -3,7 +3,6 @@
 
 #ifdef __NR_unlinkat
 
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index de482360773d1c8db2fb68223cf130b7113cfc81..6f219ceb2822b60f5cf542a8501023da364f45ee 100644 (file)
@@ -32,7 +32,6 @@
 #if defined __NR_userfaultfd && defined O_CLOEXEC
 
 # include <assert.h>
-# include <errno.h>
 # include <stdio.h>
 # include <unistd.h>
 
index 714dde35273e5e1bc5b3662ca7597656e2e55479..a32b03160ccee0d71e05be90c295da080f3a2b6c 100644 (file)
@@ -3,7 +3,6 @@
 
 #if defined __NR_getpriority && defined __NR_setpriority
 
-# include <errno.h>
 # include <stdio.h>
 # include <sys/resource.h>
 # include <unistd.h>
index 8694f95529e1bc2398e24b1c870c4e67832ce19a..2883f167b874f89f9fe7a2595a8ebc9f0fd6ac33 100644 (file)
@@ -40,7 +40,6 @@
 #  error PRINT_SYSCALL_FOOTER must be defined
 # endif
 
-# include <errno.h>
 # include <stdio.h>
 # include <stddef.h>
 # include <time.h>