Browse Source

Use <asm/unistd.h> instead of <sys/syscall.h>

There are no users of SYS_* macros provided by <sys/syscall.h>,
and definitions of __NR_* macros could be obtained directly
from <asm/unistd.h>.

* defs.h: Include <asm/unistd.h> instead of <sys/syscall.h>.
* test/seccomp.c: Likewise.
* test/threaded_execve.c: Likewise.
* test/x32_lseek.c: Likewise.
* test/x32_mmap.c: Likewise.
* tests/_newselect.c: Likewise.
* tests/access.c: Likewise.
* tests/acct.c: Likewise.
* tests/aio.c: Likewise.
* tests/alarm.c: Likewise.
* tests/attach-f-p.c: Likewise.
* tests/bpf.c: Likewise.
* tests/brk.c: Likewise.
* tests/chmod.c: Likewise.
* tests/chown.c: Likewise.
* tests/chown32.c: Likewise.
* tests/chroot.c: Likewise.
* tests/clock_adjtime.c: Likewise.
* tests/clock_nanosleep.c: Likewise.
* tests/clock_xettime.c: Likewise.
* tests/copy_file_range.c: Likewise.
* tests/creat.c: Likewise.
* tests/dup2.c: Likewise.
* tests/dup3.c: Likewise.
* tests/epoll_create.c: Likewise.
* tests/epoll_create1.c: Likewise.
* tests/epoll_ctl.c: Likewise.
* tests/epoll_pwait.c: Likewise.
* tests/epoll_wait.c: Likewise.
* tests/eventfd.c: Likewise.
* tests/execveat.c: Likewise.
* tests/faccessat.c: Likewise.
* tests/fchdir.c: Likewise.
* tests/fchmod.c: Likewise.
* tests/fchmodat.c: Likewise.
* tests/fchown.c: Likewise.
* tests/fchown32.c: Likewise.
* tests/fchownat.c: Likewise.
* tests/fcntl.c: Likewise.
* tests/fcntl64.c: Likewise.
* tests/fdatasync.c: Likewise.
* tests/flock.c: Likewise.
* tests/fstat.c: Likewise.
* tests/fstat64.c: Likewise.
* tests/fstatat64.c: Likewise.
* tests/fstatfs.c: Likewise.
* tests/fstatfs64.c: Likewise.
* tests/fsync.c: Likewise.
* tests/ftruncate.c: Likewise.
* tests/ftruncate64.c: Likewise.
* tests/futimesat.c: Likewise.
* tests/get_mempolicy.c: Likewise.
* tests/getcwd.c: Likewise.
* tests/getdents.c: Likewise.
* tests/getdents64.c: Likewise.
* tests/getegid.c: Likewise.
* tests/getegid32.c: Likewise.
* tests/geteuid.c: Likewise.
* tests/geteuid32.c: Likewise.
* tests/getgid.c: Likewise.
* tests/getgid32.c: Likewise.
* tests/getgroups.c: Likewise.
* tests/getgroups32.c: Likewise.
* tests/getpgrp.c: Likewise.
* tests/getrandom.c: Likewise.
* tests/getresgid.c: Likewise.
* tests/getresgid32.c: Likewise.
* tests/getresuid.c: Likewise.
* tests/getresuid32.c: Likewise.
* tests/getrlimit.c: Likewise.
* tests/getrusage.c: Likewise.
* tests/getuid.c: Likewise.
* tests/getuid32.c: Likewise.
* tests/getxxid.c: Likewise.
* tests/ioctl_uffdio.c: Likewise.
* tests/ioperm.c: Likewise.
* tests/iopl.c: Likewise.
* tests/ipc.c: Likewise.
* tests/kill.c: Likewise.
* tests/lchown.c: Likewise.
* tests/lchown32.c: Likewise.
* tests/libmmsg.c: Likewise.
* tests/libsocketcall.c: Likewise.
* tests/link.c: Likewise.
* tests/linkat.c: Likewise.
* tests/llseek.c: Likewise.
* tests/lseek.c: Likewise.
* tests/lstat.c: Likewise.
* tests/lstat64.c: Likewise.
* tests/mbind.c: Likewise.
* tests/membarrier.c: Likewise.
* tests/memfd_create.c: Likewise.
* tests/migrate_pages.c: Likewise.
* tests/mkdir.c: Likewise.
* tests/mkdirat.c: Likewise.
* tests/mknod.c: Likewise.
* tests/mknodat.c: Likewise.
* tests/mlock.c: Likewise.
* tests/mlock2.c: Likewise.
* tests/move_pages.c: Likewise.
* tests/newfstatat.c: Likewise.
* tests/nsyscalls.c: Likewise.
* tests/old_mmap.c: Likewise.
* tests/oldselect.c: Likewise.
* tests/open.c: Likewise.
* tests/openat.c: Likewise.
* tests/pause.c: Likewise.
* tests/poll.c: Likewise.
* tests/prctl-seccomp-filter-v.c: Likewise.
* tests/prctl-seccomp-strict.c: Likewise.
* tests/preadv2-pwritev2.c: Likewise.
* tests/prlimit64.c: Likewise.
* tests/pselect6.c: Likewise.
* tests/ptrace.c: Likewise.
* tests/readdir.c: Likewise.
* tests/readlink.c: Likewise.
* tests/readlinkat.c: Likewise.
* tests/reboot.c: Likewise.
* tests/remap_file_pages.c: Likewise.
* tests/rename.c: Likewise.
* tests/renameat.c: Likewise.
* tests/renameat2.c: Likewise.
* tests/rmdir.c: Likewise.
* tests/rt_sigpending.c: Likewise.
* tests/rt_sigprocmask.c: Likewise.
* tests/rt_sigsuspend.c: Likewise.
* tests/rt_sigtimedwait.c: Likewise.
* tests/rt_tgsigqueueinfo.c: Likewise.
* tests/sched_get_priority_mxx.c: Likewise.
* tests/sched_rr_get_interval.c: Likewise.
* tests/sched_xetaffinity.c: Likewise.
* tests/sched_xetattr.c: Likewise.
* tests/sched_xetparam.c: Likewise.
* tests/sched_xetscheduler.c: Likewise.
* tests/sched_yield.c: Likewise.
* tests/seccomp-filter-v.c: Likewise.
* tests/seccomp-filter.c: Likewise.
* tests/seccomp-strict.c: Likewise.
* tests/select.c: Likewise.
* tests/sendfile.c: Likewise.
* tests/sendfile64.c: Likewise.
* tests/set_mempolicy.c: Likewise.
* tests/setdomainname.c: Likewise.
* tests/setfsgid.c: Likewise.
* tests/setfsgid32.c: Likewise.
* tests/setfsuid.c: Likewise.
* tests/setfsuid32.c: Likewise.
* tests/setgid.c: Likewise.
* tests/setgid32.c: Likewise.
* tests/setgroups.c: Likewise.
* tests/setgroups32.c: Likewise.
* tests/sethostname.c: Likewise.
* tests/setregid.c: Likewise.
* tests/setregid32.c: Likewise.
* tests/setresgid.c: Likewise.
* tests/setresgid32.c: Likewise.
* tests/setresuid.c: Likewise.
* tests/setresuid32.c: Likewise.
* tests/setreuid.c: Likewise.
* tests/setreuid32.c: Likewise.
* tests/setrlimit.c: Likewise.
* tests/setuid.c: Likewise.
* tests/setuid32.c: Likewise.
* tests/signalfd4.c: Likewise.
* tests/socketcall.c: Likewise.
* tests/splice.c: Likewise.
* tests/stat.c: Likewise.
* tests/stat64.c: Likewise.
* tests/statfs.c: Likewise.
* tests/statfs64.c: Likewise.
* tests/swap.c: Likewise.
* tests/symlink.c: Likewise.
* tests/symlinkat.c: Likewise.
* tests/sync.c: Likewise.
* tests/sync_file_range.c: Likewise.
* tests/sync_file_range2.c: Likewise.
* tests/syslog.c: Likewise.
* tests/tee.c: Likewise.
* tests/time.c: Likewise.
* tests/timer_create.c: Likewise.
* tests/timer_xettime.c: Likewise.
* tests/timerfd_xettime.c: Likewise.
* tests/times-fail.c: Likewise.
* tests/times.c: Likewise.
* tests/truncate.c: Likewise.
* tests/truncate64.c: Likewise.
* tests/ugetrlimit.c: Likewise.
* tests/umount.c: Likewise.
* tests/umount2.c: Likewise.
* tests/uname.c: Likewise.
* tests/unix-pair-send-recv.c: Likewise.
* tests/unlink.c: Likewise.
* tests/unlinkat.c: Likewise.
* tests/userfaultfd.c: Likewise.
* tests/utimes.c: Likewise.
* tests/vhangup.c: Likewise.
* tests/vmsplice.c: Likewise.
* tests/waitid.c: Likewise.
* tests/waitpid.c: Likewise.
* tests/xet_robust_list.c: Likewise.
* tests/xetpgid.c: Likewise.
* tests/xetpriority.c: Likewise.
* tests/xettimeofday.c: Likewise.
Dmitry V. Levin 3 years ago
parent
commit
6a2f43ce64
100 changed files with 99 additions and 99 deletions
  1. 1
    1
      defs.h
  2. 1
    1
      test/seccomp.c
  3. 1
    1
      test/threaded_execve.c
  4. 1
    1
      test/x32_lseek.c
  5. 1
    1
      test/x32_mmap.c
  6. 1
    1
      tests/_newselect.c
  7. 1
    1
      tests/access.c
  8. 1
    1
      tests/acct.c
  9. 1
    1
      tests/aio.c
  10. 1
    1
      tests/alarm.c
  11. 1
    1
      tests/attach-f-p.c
  12. 1
    1
      tests/bpf.c
  13. 1
    1
      tests/brk.c
  14. 1
    1
      tests/chmod.c
  15. 1
    1
      tests/chown.c
  16. 1
    1
      tests/chown32.c
  17. 1
    1
      tests/chroot.c
  18. 1
    1
      tests/clock_adjtime.c
  19. 1
    1
      tests/clock_nanosleep.c
  20. 1
    1
      tests/clock_xettime.c
  21. 1
    1
      tests/copy_file_range.c
  22. 1
    1
      tests/creat.c
  23. 1
    1
      tests/dup2.c
  24. 1
    1
      tests/dup3.c
  25. 1
    1
      tests/epoll_create.c
  26. 1
    1
      tests/epoll_create1.c
  27. 1
    1
      tests/epoll_ctl.c
  28. 1
    1
      tests/epoll_pwait.c
  29. 1
    1
      tests/epoll_wait.c
  30. 1
    1
      tests/eventfd.c
  31. 1
    1
      tests/execveat.c
  32. 1
    1
      tests/faccessat.c
  33. 1
    1
      tests/fchdir.c
  34. 1
    1
      tests/fchmod.c
  35. 1
    1
      tests/fchmodat.c
  36. 1
    1
      tests/fchown.c
  37. 1
    1
      tests/fchown32.c
  38. 1
    1
      tests/fchownat.c
  39. 1
    1
      tests/fcntl.c
  40. 1
    1
      tests/fcntl64.c
  41. 1
    1
      tests/fdatasync.c
  42. 1
    1
      tests/flock.c
  43. 1
    1
      tests/fstat.c
  44. 1
    1
      tests/fstat64.c
  45. 1
    1
      tests/fstatat64.c
  46. 1
    1
      tests/fstatfs.c
  47. 1
    1
      tests/fstatfs64.c
  48. 1
    1
      tests/fsync.c
  49. 1
    1
      tests/ftruncate.c
  50. 1
    1
      tests/ftruncate64.c
  51. 1
    1
      tests/futimesat.c
  52. 1
    1
      tests/get_mempolicy.c
  53. 1
    1
      tests/getcwd.c
  54. 1
    1
      tests/getdents.c
  55. 1
    1
      tests/getdents64.c
  56. 1
    1
      tests/getegid.c
  57. 1
    1
      tests/getegid32.c
  58. 1
    1
      tests/geteuid.c
  59. 1
    1
      tests/geteuid32.c
  60. 1
    1
      tests/getgid.c
  61. 1
    1
      tests/getgid32.c
  62. 1
    1
      tests/getgroups.c
  63. 1
    1
      tests/getgroups32.c
  64. 1
    1
      tests/getpgrp.c
  65. 1
    1
      tests/getrandom.c
  66. 1
    1
      tests/getresgid.c
  67. 1
    1
      tests/getresgid32.c
  68. 1
    1
      tests/getresuid.c
  69. 1
    1
      tests/getresuid32.c
  70. 1
    1
      tests/getrlimit.c
  71. 1
    1
      tests/getrusage.c
  72. 1
    1
      tests/getuid.c
  73. 1
    1
      tests/getuid32.c
  74. 1
    1
      tests/getxxid.c
  75. 1
    1
      tests/ioctl_uffdio.c
  76. 1
    1
      tests/ioperm.c
  77. 1
    1
      tests/iopl.c
  78. 1
    1
      tests/ipc.c
  79. 1
    1
      tests/kill.c
  80. 1
    1
      tests/lchown.c
  81. 1
    1
      tests/lchown32.c
  82. 1
    1
      tests/libmmsg.c
  83. 1
    1
      tests/libsocketcall.c
  84. 1
    1
      tests/link.c
  85. 1
    1
      tests/linkat.c
  86. 1
    1
      tests/llseek.c
  87. 1
    1
      tests/lseek.c
  88. 1
    1
      tests/lstat.c
  89. 1
    1
      tests/lstat64.c
  90. 1
    1
      tests/mbind.c
  91. 1
    1
      tests/membarrier.c
  92. 1
    1
      tests/memfd_create.c
  93. 1
    1
      tests/migrate_pages.c
  94. 1
    1
      tests/mkdir.c
  95. 1
    1
      tests/mkdirat.c
  96. 1
    1
      tests/mknod.c
  97. 1
    1
      tests/mknodat.c
  98. 1
    1
      tests/mlock.c
  99. 1
    1
      tests/mlock2.c
  100. 0
    0
      tests/move_pages.c

+ 1
- 1
defs.h View File

@@ -55,7 +55,7 @@
55 55
 #include <errno.h>
56 56
 #include <time.h>
57 57
 #include <sys/time.h>
58
-#include <sys/syscall.h>
58
+#include <asm/unistd.h>
59 59
 
60 60
 #include "mpers_type.h"
61 61
 #include "gcc_compat.h"

+ 1
- 1
test/seccomp.c View File

@@ -2,7 +2,7 @@
2 2
 #include <unistd.h>
3 3
 #include <errno.h>
4 4
 #include <sys/prctl.h>
5
-#include <sys/syscall.h>
5
+#include <asm/unistd.h>
6 6
 #include <linux/audit.h>
7 7
 #include <linux/filter.h>
8 8
 #include <linux/seccomp.h>

+ 1
- 1
test/threaded_execve.c View File

@@ -47,7 +47,7 @@
47 47
 #include <fcntl.h>
48 48
 #include <sys/types.h>
49 49
 #include <sys/wait.h>
50
-#include <sys/syscall.h>
50
+#include <asm/unistd.h>
51 51
 
52 52
 /* Define clone2 for all arches */
53 53
 #ifdef __ia64__

+ 1
- 1
test/x32_lseek.c View File

@@ -15,7 +15,7 @@
15 15
 #include <sys/stat.h>
16 16
 #include <fcntl.h>
17 17
 #include <stdio.h>
18
-#include <sys/syscall.h>
18
+#include <asm/unistd.h>
19 19
 // Ensure we are compiling to 64 bits
20 20
 struct bug { int t[sizeof(long) > 4 ? 1 : -1]; };
21 21
 int main(int argc, char **argv)

+ 1
- 1
test/x32_mmap.c View File

@@ -15,7 +15,7 @@
15 15
 #include <sys/stat.h>
16 16
 #include <fcntl.h>
17 17
 #include <stdio.h>
18
-#include <sys/syscall.h>
18
+#include <asm/unistd.h>
19 19
 // Ensure we are compiling to 64 bits
20 20
 struct bug { int t[sizeof(long) > 4 ? 1 : -1]; };
21 21
 int main(int argc, char **argv)

+ 1
- 1
tests/_newselect.c View File

@@ -26,7 +26,7 @@
26 26
  */
27 27
 
28 28
 #include "tests.h"
29
-#include <sys/syscall.h>
29
+#include <asm/unistd.h>
30 30
 
31 31
 #ifdef __NR__newselect
32 32
 

+ 1
- 1
tests/access.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_access
5 5
 

+ 1
- 1
tests/acct.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_acct
5 5
 

+ 1
- 1
tests/aio.c View File

@@ -32,7 +32,7 @@
32 32
 #include <stdio.h>
33 33
 #include <time.h>
34 34
 #include <unistd.h>
35
-#include <sys/syscall.h>
35
+#include <asm/unistd.h>
36 36
 
37 37
 #if defined __NR_io_setup \
38 38
  && defined __NR_io_submit \

+ 1
- 1
tests/alarm.c View File

@@ -28,7 +28,7 @@
28 28
  */
29 29
 
30 30
 #include "tests.h"
31
-#include <sys/syscall.h>
31
+#include <asm/unistd.h>
32 32
 
33 33
 #ifdef __NR_alarm
34 34
 

+ 1
- 1
tests/attach-f-p.c View File

@@ -33,7 +33,7 @@
33 33
 #include <pthread.h>
34 34
 #include <stdio.h>
35 35
 #include <stdlib.h>
36
-#include <sys/syscall.h>
36
+#include <asm/unistd.h>
37 37
 #include <unistd.h>
38 38
 
39 39
 #define N 3

+ 1
- 1
tests/bpf.c View File

@@ -29,7 +29,7 @@
29 29
 #include <stdio.h>
30 30
 #include <stdint.h>
31 31
 #include <unistd.h>
32
-#include <sys/syscall.h>
32
+#include <asm/unistd.h>
33 33
 
34 34
 #if defined HAVE_UNION_BPF_ATTR_LOG_BUF && defined __NR_bpf
35 35
 # include <linux/bpf.h>

+ 1
- 1
tests/brk.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_brk
5 5
 

+ 1
- 1
tests/chmod.c View File

@@ -26,7 +26,7 @@
26 26
  */
27 27
 
28 28
 #include "tests.h"
29
-#include <sys/syscall.h>
29
+#include <asm/unistd.h>
30 30
 
31 31
 #if defined __NR_chmod
32 32
 

+ 1
- 1
tests/chown.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_chown
5 5
 

+ 1
- 1
tests/chown32.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_chown32
5 5
 

+ 1
- 1
tests/chroot.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_chroot
5 5
 

+ 1
- 1
tests/clock_adjtime.c View File

@@ -28,7 +28,7 @@
28 28
  */
29 29
 
30 30
 #include "tests.h"
31
-#include <sys/syscall.h>
31
+#include <asm/unistd.h>
32 32
 
33 33
 #ifdef __NR_clock_adjtime
34 34
 

+ 1
- 1
tests/clock_nanosleep.c View File

@@ -33,7 +33,7 @@
33 33
 #include <time.h>
34 34
 #include <unistd.h>
35 35
 #include <sys/time.h>
36
-#include <sys/syscall.h>
36
+#include <asm/unistd.h>
37 37
 
38 38
 static void
39 39
 handler(int signo)

+ 1
- 1
tests/clock_xettime.c View File

@@ -30,7 +30,7 @@
30 30
 #include <stdint.h>
31 31
 #include <time.h>
32 32
 #include <unistd.h>
33
-#include <sys/syscall.h>
33
+#include <asm/unistd.h>
34 34
 
35 35
 #if defined __NR_clock_getres \
36 36
  && defined __NR_clock_gettime \

+ 1
- 1
tests/copy_file_range.c View File

@@ -28,7 +28,7 @@
28 28
  */
29 29
 
30 30
 #include "tests.h"
31
-#include <sys/syscall.h>
31
+#include <asm/unistd.h>
32 32
 
33 33
 #if defined __NR_copy_file_range
34 34
 

+ 1
- 1
tests/creat.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_creat
5 5
 

+ 1
- 1
tests/dup2.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_dup2
5 5
 

+ 1
- 1
tests/dup3.c View File

@@ -1,6 +1,6 @@
1 1
 #include "tests.h"
2 2
 #include <fcntl.h>
3
-#include <sys/syscall.h>
3
+#include <asm/unistd.h>
4 4
 
5 5
 #if defined __NR_dup3 && defined O_CLOEXEC
6 6
 

+ 1
- 1
tests/epoll_create.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_epoll_create
5 5
 

+ 1
- 1
tests/epoll_create1.c View File

@@ -27,7 +27,7 @@
27 27
 
28 28
 #include "tests.h"
29 29
 #include <fcntl.h>
30
-#include <sys/syscall.h>
30
+#include <asm/unistd.h>
31 31
 
32 32
 #if defined __NR_epoll_create1 && defined O_CLOEXEC
33 33
 

+ 1
- 1
tests/epoll_ctl.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_epoll_ctl
5 5
 

+ 1
- 1
tests/epoll_pwait.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_epoll_pwait
5 5
 

+ 1
- 1
tests/epoll_wait.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_epoll_wait
5 5
 

+ 1
- 1
tests/eventfd.c View File

@@ -28,7 +28,7 @@
28 28
 #include "tests.h"
29 29
 #include <fcntl.h>
30 30
 #include <unistd.h>
31
-#include <sys/syscall.h>
31
+#include <asm/unistd.h>
32 32
 
33 33
 #if defined __NR_eventfd2 && defined O_CLOEXEC
34 34
 

+ 1
- 1
tests/execveat.c View File

@@ -30,7 +30,7 @@
30 30
 #include "tests.h"
31 31
 #include <stdio.h>
32 32
 #include <unistd.h>
33
-#include <sys/syscall.h>
33
+#include <asm/unistd.h>
34 34
 
35 35
 #ifdef __NR_execveat
36 36
 

+ 1
- 1
tests/faccessat.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_faccessat
5 5
 

+ 1
- 1
tests/fchdir.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_fchdir
5 5
 

+ 1
- 1
tests/fchmod.c View File

@@ -26,7 +26,7 @@
26 26
  */
27 27
 
28 28
 #include "tests.h"
29
-#include <sys/syscall.h>
29
+#include <asm/unistd.h>
30 30
 
31 31
 #if defined __NR_fchmod
32 32
 

+ 1
- 1
tests/fchmodat.c View File

@@ -28,7 +28,7 @@
28 28
  */
29 29
 
30 30
 #include "tests.h"
31
-#include <sys/syscall.h>
31
+#include <asm/unistd.h>
32 32
 
33 33
 #ifdef __NR_fchmodat
34 34
 

+ 1
- 1
tests/fchown.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_fchown
5 5
 

+ 1
- 1
tests/fchown32.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_fchown32
5 5
 

+ 1
- 1
tests/fchownat.c View File

@@ -28,7 +28,7 @@
28 28
  */
29 29
 
30 30
 #include "tests.h"
31
-#include <sys/syscall.h>
31
+#include <asm/unistd.h>
32 32
 #include <fcntl.h>
33 33
 
34 34
 #if defined __NR_fchownat && defined AT_FDCWD && defined AT_SYMLINK_NOFOLLOW

+ 1
- 1
tests/fcntl.c View File

@@ -26,7 +26,7 @@
26 26
  */
27 27
 
28 28
 #include "tests.h"
29
-#include <sys/syscall.h>
29
+#include <asm/unistd.h>
30 30
 
31 31
 #ifdef __NR_fcntl
32 32
 

+ 1
- 1
tests/fcntl64.c View File

@@ -26,7 +26,7 @@
26 26
  */
27 27
 
28 28
 #include "tests.h"
29
-#include <sys/syscall.h>
29
+#include <asm/unistd.h>
30 30
 
31 31
 #ifdef __NR_fcntl64
32 32
 

+ 1
- 1
tests/fdatasync.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_fdatasync
5 5
 

+ 1
- 1
tests/flock.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_flock
5 5
 

+ 1
- 1
tests/fstat.c View File

@@ -26,7 +26,7 @@
26 26
  */
27 27
 
28 28
 #include "tests.h"
29
-#include <sys/syscall.h>
29
+#include <asm/unistd.h>
30 30
 
31 31
 #ifdef __NR_fstat
32 32
 

+ 1
- 1
tests/fstat64.c View File

@@ -26,7 +26,7 @@
26 26
  */
27 27
 
28 28
 #include "tests.h"
29
-#include <sys/syscall.h>
29
+#include <asm/unistd.h>
30 30
 
31 31
 #ifdef __NR_fstat64
32 32
 

+ 1
- 1
tests/fstatat64.c View File

@@ -26,7 +26,7 @@
26 26
  */
27 27
 
28 28
 #include "tests.h"
29
-#include <sys/syscall.h>
29
+#include <asm/unistd.h>
30 30
 
31 31
 #ifdef __NR_fstatat64
32 32
 

+ 1
- 1
tests/fstatfs.c View File

@@ -26,7 +26,7 @@
26 26
  */
27 27
 
28 28
 #include "tests.h"
29
-#include <sys/syscall.h>
29
+#include <asm/unistd.h>
30 30
 
31 31
 #ifdef __NR_fstatfs
32 32
 

+ 1
- 1
tests/fstatfs64.c View File

@@ -26,7 +26,7 @@
26 26
  */
27 27
 
28 28
 #include "tests.h"
29
-#include <sys/syscall.h>
29
+#include <asm/unistd.h>
30 30
 
31 31
 #ifdef __NR_fstatfs64
32 32
 

+ 1
- 1
tests/fsync.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_fsync
5 5
 

+ 1
- 1
tests/ftruncate.c View File

@@ -26,7 +26,7 @@
26 26
  */
27 27
 
28 28
 #include "tests.h"
29
-#include <sys/syscall.h>
29
+#include <asm/unistd.h>
30 30
 
31 31
 #ifdef __NR_ftruncate
32 32
 

+ 1
- 1
tests/ftruncate64.c View File

@@ -26,7 +26,7 @@
26 26
  */
27 27
 
28 28
 #include "tests.h"
29
-#include <sys/syscall.h>
29
+#include <asm/unistd.h>
30 30
 
31 31
 #ifdef __NR_ftruncate64
32 32
 

+ 1
- 1
tests/futimesat.c View File

@@ -28,7 +28,7 @@
28 28
  */
29 29
 
30 30
 #include "tests.h"
31
-#include <sys/syscall.h>
31
+#include <asm/unistd.h>
32 32
 
33 33
 #ifdef __NR_futimesat
34 34
 

+ 1
- 1
tests/get_mempolicy.c View File

@@ -28,7 +28,7 @@
28 28
  */
29 29
 
30 30
 #include "tests.h"
31
-#include <sys/syscall.h>
31
+#include <asm/unistd.h>
32 32
 
33 33
 #ifdef __NR_get_mempolicy
34 34
 

+ 1
- 1
tests/getcwd.c View File

@@ -1,6 +1,6 @@
1 1
 #include "tests.h"
2 2
 
3
-#include <sys/syscall.h>
3
+#include <asm/unistd.h>
4 4
 
5 5
 #ifdef __NR_getcwd
6 6
 

+ 1
- 1
tests/getdents.c View File

@@ -26,7 +26,7 @@
26 26
  */
27 27
 
28 28
 #include "tests.h"
29
-#include <sys/syscall.h>
29
+#include <asm/unistd.h>
30 30
 
31 31
 #ifdef __NR_getdents
32 32
 

+ 1
- 1
tests/getdents64.c View File

@@ -26,7 +26,7 @@
26 26
  */
27 27
 
28 28
 #include "tests.h"
29
-#include <sys/syscall.h>
29
+#include <asm/unistd.h>
30 30
 
31 31
 #ifdef __NR_getdents64
32 32
 

+ 1
- 1
tests/getegid.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_getegid
5 5
 

+ 1
- 1
tests/getegid32.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_getegid32
5 5
 

+ 1
- 1
tests/geteuid.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_geteuid
5 5
 

+ 1
- 1
tests/geteuid32.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_geteuid32
5 5
 

+ 1
- 1
tests/getgid.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_getgid
5 5
 

+ 1
- 1
tests/getgid32.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_getgid32
5 5
 

+ 1
- 1
tests/getgroups.c View File

@@ -36,7 +36,7 @@
36 36
 #else
37 37
 
38 38
 # include "tests.h"
39
-# include <sys/syscall.h>
39
+# include <asm/unistd.h>
40 40
 
41 41
 # ifdef __NR_getgroups
42 42
 

+ 1
- 1
tests/getgroups32.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_getgroups32
5 5
 

+ 1
- 1
tests/getpgrp.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_getpgrp
5 5
 

+ 1
- 1
tests/getrandom.c View File

@@ -26,7 +26,7 @@
26 26
  */
27 27
 
28 28
 #include "tests.h"
29
-#include <sys/syscall.h>
29
+#include <asm/unistd.h>
30 30
 
31 31
 #ifdef __NR_getrandom
32 32
 

+ 1
- 1
tests/getresgid.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_getresgid
5 5
 

+ 1
- 1
tests/getresgid32.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_getresgid32
5 5
 

+ 1
- 1
tests/getresuid.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_getresuid
5 5
 

+ 1
- 1
tests/getresuid32.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_getresuid32
5 5
 

+ 1
- 1
tests/getrlimit.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_getrlimit
5 5
 

+ 1
- 1
tests/getrusage.c View File

@@ -27,7 +27,7 @@
27 27
  */
28 28
 
29 29
 #include "tests.h"
30
-#include <sys/syscall.h>
30
+#include <asm/unistd.h>
31 31
 
32 32
 #ifdef __NR_getrusage
33 33
 

+ 1
- 1
tests/getuid.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_getuid
5 5
 

+ 1
- 1
tests/getuid32.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_getuid32
5 5
 

+ 1
- 1
tests/getxxid.c View File

@@ -26,7 +26,7 @@
26 26
  */
27 27
 
28 28
 #include "tests.h"
29
-#include <sys/syscall.h>
29
+#include <asm/unistd.h>
30 30
 
31 31
 #if defined __NR_getxpid && defined __NR_getxuid && defined __NR_getxgid
32 32
 

+ 1
- 1
tests/ioctl_uffdio.c View File

@@ -27,7 +27,7 @@
27 27
  */
28 28
 
29 29
 #include "tests.h"
30
-#include <sys/syscall.h>
30
+#include <asm/unistd.h>
31 31
 
32 32
 #if defined __NR_userfaultfd && defined HAVE_LINUX_USERFAULTFD_H
33 33
 

+ 1
- 1
tests/ioperm.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_ioperm
5 5
 

+ 1
- 1
tests/iopl.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_iopl
5 5
 

+ 1
- 1
tests/ipc.c View File

@@ -28,7 +28,7 @@
28 28
  */
29 29
 
30 30
 #include "tests.h"
31
-#include <sys/syscall.h>
31
+#include <asm/unistd.h>
32 32
 
33 33
 #if defined __NR_ipc && defined HAVE_LINUX_IPC_H
34 34
 

+ 1
- 1
tests/kill.c View File

@@ -29,7 +29,7 @@
29 29
  */
30 30
 
31 31
 #include "tests.h"
32
-#include <sys/syscall.h>
32
+#include <asm/unistd.h>
33 33
 
34 34
 #ifdef __NR_kill
35 35
 

+ 1
- 1
tests/lchown.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_lchown
5 5
 

+ 1
- 1
tests/lchown32.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_lchown32
5 5
 

+ 1
- 1
tests/libmmsg.c View File

@@ -29,7 +29,7 @@
29 29
 
30 30
 #include "tests.h"
31 31
 #include <errno.h>
32
-#include <sys/syscall.h>
32
+#include <asm/unistd.h>
33 33
 
34 34
 #ifndef __NR_recvmmsg
35 35
 # define __NR_recvmmsg -1

+ 1
- 1
tests/libsocketcall.c View File

@@ -30,7 +30,7 @@
30 30
 #include "tests.h"
31 31
 #include <errno.h>
32 32
 #include <unistd.h>
33
-#include <sys/syscall.h>
33
+#include <asm/unistd.h>
34 34
 
35 35
 /*
36 36
  * Invoke a socket syscall, either directly or via __NR_socketcall.

+ 1
- 1
tests/link.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_link
5 5
 

+ 1
- 1
tests/linkat.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_linkat
5 5
 

+ 1
- 1
tests/llseek.c View File

@@ -26,7 +26,7 @@
26 26
  */
27 27
 
28 28
 #include "tests.h"
29
-#include <sys/syscall.h>
29
+#include <asm/unistd.h>
30 30
 
31 31
 #ifdef __NR__llseek
32 32
 

+ 1
- 1
tests/lseek.c View File

@@ -26,7 +26,7 @@
26 26
  */
27 27
 
28 28
 #include "tests.h"
29
-#include <sys/syscall.h>
29
+#include <asm/unistd.h>
30 30
 
31 31
 #ifdef __NR_lseek
32 32
 

+ 1
- 1
tests/lstat.c View File

@@ -26,7 +26,7 @@
26 26
  */
27 27
 
28 28
 #include "tests.h"
29
-#include <sys/syscall.h>
29
+#include <asm/unistd.h>
30 30
 
31 31
 #ifdef __NR_lstat
32 32
 

+ 1
- 1
tests/lstat64.c View File

@@ -26,7 +26,7 @@
26 26
  */
27 27
 
28 28
 #include "tests.h"
29
-#include <sys/syscall.h>
29
+#include <asm/unistd.h>
30 30
 
31 31
 #ifdef __NR_lstat64
32 32
 

+ 1
- 1
tests/mbind.c View File

@@ -28,7 +28,7 @@
28 28
  */
29 29
 
30 30
 #include "tests.h"
31
-#include <sys/syscall.h>
31
+#include <asm/unistd.h>
32 32
 
33 33
 #ifdef __NR_mbind
34 34
 

+ 1
- 1
tests/membarrier.c View File

@@ -26,7 +26,7 @@
26 26
  */
27 27
 
28 28
 #include "tests.h"
29
-#include <sys/syscall.h>
29
+#include <asm/unistd.h>
30 30
 
31 31
 #ifdef __NR_membarrier
32 32
 

+ 1
- 1
tests/memfd_create.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_memfd_create
5 5
 

+ 1
- 1
tests/migrate_pages.c View File

@@ -28,7 +28,7 @@
28 28
  */
29 29
 
30 30
 #include "tests.h"
31
-#include <sys/syscall.h>
31
+#include <asm/unistd.h>
32 32
 
33 33
 #ifdef __NR_migrate_pages
34 34
 

+ 1
- 1
tests/mkdir.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_mkdir
5 5
 

+ 1
- 1
tests/mkdirat.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_mkdirat
5 5
 

+ 1
- 1
tests/mknod.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_mknod
5 5
 

+ 1
- 1
tests/mknodat.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #ifdef __NR_mknodat
5 5
 

+ 1
- 1
tests/mlock.c View File

@@ -1,5 +1,5 @@
1 1
 #include "tests.h"
2
-#include <sys/syscall.h>
2
+#include <asm/unistd.h>
3 3
 
4 4
 #if defined __NR_mlock && defined __NR_munlock
5 5
 

+ 1
- 1
tests/mlock2.c View File

@@ -26,7 +26,7 @@
26 26
  */
27 27
 
28 28
 #include "tests.h"
29
-#include <sys/syscall.h>
29
+#include <asm/unistd.h>
30 30
 
31 31
 #ifdef __NR_mlock2
32 32
 

+ 0
- 0
tests/move_pages.c View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save