xref: /openbmc/linux/arch/s390/include/asm/unistd.h (revision a4679373cf4ee0e7792dc56205365732b725c2c1)
1c6557e7fSMartin Schwidefsky /*
2c6557e7fSMartin Schwidefsky  *  include/asm-s390/unistd.h
3c6557e7fSMartin Schwidefsky  *
4c6557e7fSMartin Schwidefsky  *  S390 version
5c6557e7fSMartin Schwidefsky  *
6c6557e7fSMartin Schwidefsky  *  Derived from "include/asm-i386/unistd.h"
7c6557e7fSMartin Schwidefsky  */
8c6557e7fSMartin Schwidefsky 
9c6557e7fSMartin Schwidefsky #ifndef _ASM_S390_UNISTD_H_
10c6557e7fSMartin Schwidefsky #define _ASM_S390_UNISTD_H_
11c6557e7fSMartin Schwidefsky 
12c6557e7fSMartin Schwidefsky /*
13c6557e7fSMartin Schwidefsky  * This file contains the system call numbers.
14c6557e7fSMartin Schwidefsky  */
15c6557e7fSMartin Schwidefsky 
16c6557e7fSMartin Schwidefsky #define __NR_exit                 1
17c6557e7fSMartin Schwidefsky #define __NR_fork                 2
18c6557e7fSMartin Schwidefsky #define __NR_read                 3
19c6557e7fSMartin Schwidefsky #define __NR_write                4
20c6557e7fSMartin Schwidefsky #define __NR_open                 5
21c6557e7fSMartin Schwidefsky #define __NR_close                6
22c6557e7fSMartin Schwidefsky #define __NR_restart_syscall	  7
23c6557e7fSMartin Schwidefsky #define __NR_creat                8
24c6557e7fSMartin Schwidefsky #define __NR_link                 9
25c6557e7fSMartin Schwidefsky #define __NR_unlink              10
26c6557e7fSMartin Schwidefsky #define __NR_execve              11
27c6557e7fSMartin Schwidefsky #define __NR_chdir               12
28c6557e7fSMartin Schwidefsky #define __NR_mknod               14
29c6557e7fSMartin Schwidefsky #define __NR_chmod               15
30c6557e7fSMartin Schwidefsky #define __NR_lseek               19
31c6557e7fSMartin Schwidefsky #define __NR_getpid              20
32c6557e7fSMartin Schwidefsky #define __NR_mount               21
33c6557e7fSMartin Schwidefsky #define __NR_umount              22
34c6557e7fSMartin Schwidefsky #define __NR_ptrace              26
35c6557e7fSMartin Schwidefsky #define __NR_alarm               27
36c6557e7fSMartin Schwidefsky #define __NR_pause               29
37c6557e7fSMartin Schwidefsky #define __NR_utime               30
38c6557e7fSMartin Schwidefsky #define __NR_access              33
39c6557e7fSMartin Schwidefsky #define __NR_nice                34
40c6557e7fSMartin Schwidefsky #define __NR_sync                36
41c6557e7fSMartin Schwidefsky #define __NR_kill                37
42c6557e7fSMartin Schwidefsky #define __NR_rename              38
43c6557e7fSMartin Schwidefsky #define __NR_mkdir               39
44c6557e7fSMartin Schwidefsky #define __NR_rmdir               40
45c6557e7fSMartin Schwidefsky #define __NR_dup                 41
46c6557e7fSMartin Schwidefsky #define __NR_pipe                42
47c6557e7fSMartin Schwidefsky #define __NR_times               43
48c6557e7fSMartin Schwidefsky #define __NR_brk                 45
49c6557e7fSMartin Schwidefsky #define __NR_signal              48
50c6557e7fSMartin Schwidefsky #define __NR_acct                51
51c6557e7fSMartin Schwidefsky #define __NR_umount2             52
52c6557e7fSMartin Schwidefsky #define __NR_ioctl               54
53c6557e7fSMartin Schwidefsky #define __NR_fcntl               55
54c6557e7fSMartin Schwidefsky #define __NR_setpgid             57
55c6557e7fSMartin Schwidefsky #define __NR_umask               60
56c6557e7fSMartin Schwidefsky #define __NR_chroot              61
57c6557e7fSMartin Schwidefsky #define __NR_ustat               62
58c6557e7fSMartin Schwidefsky #define __NR_dup2                63
59c6557e7fSMartin Schwidefsky #define __NR_getppid             64
60c6557e7fSMartin Schwidefsky #define __NR_getpgrp             65
61c6557e7fSMartin Schwidefsky #define __NR_setsid              66
62c6557e7fSMartin Schwidefsky #define __NR_sigaction           67
63c6557e7fSMartin Schwidefsky #define __NR_sigsuspend          72
64c6557e7fSMartin Schwidefsky #define __NR_sigpending          73
65c6557e7fSMartin Schwidefsky #define __NR_sethostname         74
66c6557e7fSMartin Schwidefsky #define __NR_setrlimit           75
67c6557e7fSMartin Schwidefsky #define __NR_getrusage           77
68c6557e7fSMartin Schwidefsky #define __NR_gettimeofday        78
69c6557e7fSMartin Schwidefsky #define __NR_settimeofday        79
70c6557e7fSMartin Schwidefsky #define __NR_symlink             83
71c6557e7fSMartin Schwidefsky #define __NR_readlink            85
72c6557e7fSMartin Schwidefsky #define __NR_uselib              86
73c6557e7fSMartin Schwidefsky #define __NR_swapon              87
74c6557e7fSMartin Schwidefsky #define __NR_reboot              88
75c6557e7fSMartin Schwidefsky #define __NR_readdir             89
76c6557e7fSMartin Schwidefsky #define __NR_mmap                90
77c6557e7fSMartin Schwidefsky #define __NR_munmap              91
78c6557e7fSMartin Schwidefsky #define __NR_truncate            92
79c6557e7fSMartin Schwidefsky #define __NR_ftruncate           93
80c6557e7fSMartin Schwidefsky #define __NR_fchmod              94
81c6557e7fSMartin Schwidefsky #define __NR_getpriority         96
82c6557e7fSMartin Schwidefsky #define __NR_setpriority         97
83c6557e7fSMartin Schwidefsky #define __NR_statfs              99
84c6557e7fSMartin Schwidefsky #define __NR_fstatfs            100
85c6557e7fSMartin Schwidefsky #define __NR_socketcall         102
86c6557e7fSMartin Schwidefsky #define __NR_syslog             103
87c6557e7fSMartin Schwidefsky #define __NR_setitimer          104
88c6557e7fSMartin Schwidefsky #define __NR_getitimer          105
89c6557e7fSMartin Schwidefsky #define __NR_stat               106
90c6557e7fSMartin Schwidefsky #define __NR_lstat              107
91c6557e7fSMartin Schwidefsky #define __NR_fstat              108
92c6557e7fSMartin Schwidefsky #define __NR_lookup_dcookie     110
93c6557e7fSMartin Schwidefsky #define __NR_vhangup            111
94c6557e7fSMartin Schwidefsky #define __NR_idle               112
95c6557e7fSMartin Schwidefsky #define __NR_wait4              114
96c6557e7fSMartin Schwidefsky #define __NR_swapoff            115
97c6557e7fSMartin Schwidefsky #define __NR_sysinfo            116
98c6557e7fSMartin Schwidefsky #define __NR_ipc                117
99c6557e7fSMartin Schwidefsky #define __NR_fsync              118
100c6557e7fSMartin Schwidefsky #define __NR_sigreturn          119
101c6557e7fSMartin Schwidefsky #define __NR_clone              120
102c6557e7fSMartin Schwidefsky #define __NR_setdomainname      121
103c6557e7fSMartin Schwidefsky #define __NR_uname              122
104c6557e7fSMartin Schwidefsky #define __NR_adjtimex           124
105c6557e7fSMartin Schwidefsky #define __NR_mprotect           125
106c6557e7fSMartin Schwidefsky #define __NR_sigprocmask        126
107c6557e7fSMartin Schwidefsky #define __NR_create_module      127
108c6557e7fSMartin Schwidefsky #define __NR_init_module        128
109c6557e7fSMartin Schwidefsky #define __NR_delete_module      129
110c6557e7fSMartin Schwidefsky #define __NR_get_kernel_syms    130
111c6557e7fSMartin Schwidefsky #define __NR_quotactl           131
112c6557e7fSMartin Schwidefsky #define __NR_getpgid            132
113c6557e7fSMartin Schwidefsky #define __NR_fchdir             133
114c6557e7fSMartin Schwidefsky #define __NR_bdflush            134
115c6557e7fSMartin Schwidefsky #define __NR_sysfs              135
116c6557e7fSMartin Schwidefsky #define __NR_personality        136
117c6557e7fSMartin Schwidefsky #define __NR_afs_syscall        137 /* Syscall for Andrew File System */
118c6557e7fSMartin Schwidefsky #define __NR_getdents           141
119c6557e7fSMartin Schwidefsky #define __NR_flock              143
120c6557e7fSMartin Schwidefsky #define __NR_msync              144
121c6557e7fSMartin Schwidefsky #define __NR_readv              145
122c6557e7fSMartin Schwidefsky #define __NR_writev             146
123c6557e7fSMartin Schwidefsky #define __NR_getsid             147
124c6557e7fSMartin Schwidefsky #define __NR_fdatasync          148
125c6557e7fSMartin Schwidefsky #define __NR__sysctl            149
126c6557e7fSMartin Schwidefsky #define __NR_mlock              150
127c6557e7fSMartin Schwidefsky #define __NR_munlock            151
128c6557e7fSMartin Schwidefsky #define __NR_mlockall           152
129c6557e7fSMartin Schwidefsky #define __NR_munlockall         153
130c6557e7fSMartin Schwidefsky #define __NR_sched_setparam             154
131c6557e7fSMartin Schwidefsky #define __NR_sched_getparam             155
132c6557e7fSMartin Schwidefsky #define __NR_sched_setscheduler         156
133c6557e7fSMartin Schwidefsky #define __NR_sched_getscheduler         157
134c6557e7fSMartin Schwidefsky #define __NR_sched_yield                158
135c6557e7fSMartin Schwidefsky #define __NR_sched_get_priority_max     159
136c6557e7fSMartin Schwidefsky #define __NR_sched_get_priority_min     160
137c6557e7fSMartin Schwidefsky #define __NR_sched_rr_get_interval      161
138c6557e7fSMartin Schwidefsky #define __NR_nanosleep          162
139c6557e7fSMartin Schwidefsky #define __NR_mremap             163
140c6557e7fSMartin Schwidefsky #define __NR_query_module       167
141c6557e7fSMartin Schwidefsky #define __NR_poll               168
142c6557e7fSMartin Schwidefsky #define __NR_nfsservctl         169
143c6557e7fSMartin Schwidefsky #define __NR_prctl              172
144c6557e7fSMartin Schwidefsky #define __NR_rt_sigreturn       173
145c6557e7fSMartin Schwidefsky #define __NR_rt_sigaction       174
146c6557e7fSMartin Schwidefsky #define __NR_rt_sigprocmask     175
147c6557e7fSMartin Schwidefsky #define __NR_rt_sigpending      176
148c6557e7fSMartin Schwidefsky #define __NR_rt_sigtimedwait    177
149c6557e7fSMartin Schwidefsky #define __NR_rt_sigqueueinfo    178
150c6557e7fSMartin Schwidefsky #define __NR_rt_sigsuspend      179
151c6557e7fSMartin Schwidefsky #define __NR_pread64            180
152c6557e7fSMartin Schwidefsky #define __NR_pwrite64           181
153c6557e7fSMartin Schwidefsky #define __NR_getcwd             183
154c6557e7fSMartin Schwidefsky #define __NR_capget             184
155c6557e7fSMartin Schwidefsky #define __NR_capset             185
156c6557e7fSMartin Schwidefsky #define __NR_sigaltstack        186
157c6557e7fSMartin Schwidefsky #define __NR_sendfile           187
158c6557e7fSMartin Schwidefsky #define __NR_getpmsg		188
159c6557e7fSMartin Schwidefsky #define __NR_putpmsg		189
160c6557e7fSMartin Schwidefsky #define __NR_vfork		190
161c6557e7fSMartin Schwidefsky #define __NR_pivot_root         217
162c6557e7fSMartin Schwidefsky #define __NR_mincore            218
163c6557e7fSMartin Schwidefsky #define __NR_madvise            219
164c6557e7fSMartin Schwidefsky #define __NR_getdents64		220
165c6557e7fSMartin Schwidefsky #define __NR_readahead		222
166c6557e7fSMartin Schwidefsky #define __NR_setxattr		224
167c6557e7fSMartin Schwidefsky #define __NR_lsetxattr		225
168c6557e7fSMartin Schwidefsky #define __NR_fsetxattr		226
169c6557e7fSMartin Schwidefsky #define __NR_getxattr		227
170c6557e7fSMartin Schwidefsky #define __NR_lgetxattr		228
171c6557e7fSMartin Schwidefsky #define __NR_fgetxattr		229
172c6557e7fSMartin Schwidefsky #define __NR_listxattr		230
173c6557e7fSMartin Schwidefsky #define __NR_llistxattr		231
174c6557e7fSMartin Schwidefsky #define __NR_flistxattr		232
175c6557e7fSMartin Schwidefsky #define __NR_removexattr	233
176c6557e7fSMartin Schwidefsky #define __NR_lremovexattr	234
177c6557e7fSMartin Schwidefsky #define __NR_fremovexattr	235
178c6557e7fSMartin Schwidefsky #define __NR_gettid		236
179c6557e7fSMartin Schwidefsky #define __NR_tkill		237
180c6557e7fSMartin Schwidefsky #define __NR_futex		238
181c6557e7fSMartin Schwidefsky #define __NR_sched_setaffinity	239
182c6557e7fSMartin Schwidefsky #define __NR_sched_getaffinity	240
183c6557e7fSMartin Schwidefsky #define __NR_tgkill		241
184c6557e7fSMartin Schwidefsky /* Number 242 is reserved for tux */
185c6557e7fSMartin Schwidefsky #define __NR_io_setup		243
186c6557e7fSMartin Schwidefsky #define __NR_io_destroy		244
187c6557e7fSMartin Schwidefsky #define __NR_io_getevents	245
188c6557e7fSMartin Schwidefsky #define __NR_io_submit		246
189c6557e7fSMartin Schwidefsky #define __NR_io_cancel		247
190c6557e7fSMartin Schwidefsky #define __NR_exit_group		248
191c6557e7fSMartin Schwidefsky #define __NR_epoll_create	249
192c6557e7fSMartin Schwidefsky #define __NR_epoll_ctl		250
193c6557e7fSMartin Schwidefsky #define __NR_epoll_wait		251
194c6557e7fSMartin Schwidefsky #define __NR_set_tid_address	252
195c6557e7fSMartin Schwidefsky #define __NR_fadvise64		253
196c6557e7fSMartin Schwidefsky #define __NR_timer_create	254
197c6557e7fSMartin Schwidefsky #define __NR_timer_settime	(__NR_timer_create+1)
198c6557e7fSMartin Schwidefsky #define __NR_timer_gettime	(__NR_timer_create+2)
199c6557e7fSMartin Schwidefsky #define __NR_timer_getoverrun	(__NR_timer_create+3)
200c6557e7fSMartin Schwidefsky #define __NR_timer_delete	(__NR_timer_create+4)
201c6557e7fSMartin Schwidefsky #define __NR_clock_settime	(__NR_timer_create+5)
202c6557e7fSMartin Schwidefsky #define __NR_clock_gettime	(__NR_timer_create+6)
203c6557e7fSMartin Schwidefsky #define __NR_clock_getres	(__NR_timer_create+7)
204c6557e7fSMartin Schwidefsky #define __NR_clock_nanosleep	(__NR_timer_create+8)
205c6557e7fSMartin Schwidefsky /* Number 263 is reserved for vserver */
206c6557e7fSMartin Schwidefsky #define __NR_statfs64		265
207c6557e7fSMartin Schwidefsky #define __NR_fstatfs64		266
208c6557e7fSMartin Schwidefsky #define __NR_remap_file_pages	267
209c6557e7fSMartin Schwidefsky /* Number 268 is reserved for new sys_mbind */
210c6557e7fSMartin Schwidefsky /* Number 269 is reserved for new sys_get_mempolicy */
211c6557e7fSMartin Schwidefsky /* Number 270 is reserved for new sys_set_mempolicy */
212c6557e7fSMartin Schwidefsky #define __NR_mq_open		271
213c6557e7fSMartin Schwidefsky #define __NR_mq_unlink		272
214c6557e7fSMartin Schwidefsky #define __NR_mq_timedsend	273
215c6557e7fSMartin Schwidefsky #define __NR_mq_timedreceive	274
216c6557e7fSMartin Schwidefsky #define __NR_mq_notify		275
217c6557e7fSMartin Schwidefsky #define __NR_mq_getsetattr	276
218c6557e7fSMartin Schwidefsky #define __NR_kexec_load		277
219c6557e7fSMartin Schwidefsky #define __NR_add_key		278
220c6557e7fSMartin Schwidefsky #define __NR_request_key	279
221c6557e7fSMartin Schwidefsky #define __NR_keyctl		280
222c6557e7fSMartin Schwidefsky #define __NR_waitid		281
223c6557e7fSMartin Schwidefsky #define __NR_ioprio_set		282
224c6557e7fSMartin Schwidefsky #define __NR_ioprio_get		283
225c6557e7fSMartin Schwidefsky #define __NR_inotify_init	284
226c6557e7fSMartin Schwidefsky #define __NR_inotify_add_watch	285
227c6557e7fSMartin Schwidefsky #define __NR_inotify_rm_watch	286
228c6557e7fSMartin Schwidefsky /* Number 287 is reserved for new sys_migrate_pages */
229c6557e7fSMartin Schwidefsky #define __NR_openat		288
230c6557e7fSMartin Schwidefsky #define __NR_mkdirat		289
231c6557e7fSMartin Schwidefsky #define __NR_mknodat		290
232c6557e7fSMartin Schwidefsky #define __NR_fchownat		291
233c6557e7fSMartin Schwidefsky #define __NR_futimesat		292
234c6557e7fSMartin Schwidefsky #define __NR_unlinkat		294
235c6557e7fSMartin Schwidefsky #define __NR_renameat		295
236c6557e7fSMartin Schwidefsky #define __NR_linkat		296
237c6557e7fSMartin Schwidefsky #define __NR_symlinkat		297
238c6557e7fSMartin Schwidefsky #define __NR_readlinkat		298
239c6557e7fSMartin Schwidefsky #define __NR_fchmodat		299
240c6557e7fSMartin Schwidefsky #define __NR_faccessat		300
241c6557e7fSMartin Schwidefsky #define __NR_pselect6		301
242c6557e7fSMartin Schwidefsky #define __NR_ppoll		302
243c6557e7fSMartin Schwidefsky #define __NR_unshare		303
244c6557e7fSMartin Schwidefsky #define __NR_set_robust_list	304
245c6557e7fSMartin Schwidefsky #define __NR_get_robust_list	305
246c6557e7fSMartin Schwidefsky #define __NR_splice		306
247c6557e7fSMartin Schwidefsky #define __NR_sync_file_range	307
248c6557e7fSMartin Schwidefsky #define __NR_tee		308
249c6557e7fSMartin Schwidefsky #define __NR_vmsplice		309
250c6557e7fSMartin Schwidefsky /* Number 310 is reserved for new sys_move_pages */
251c6557e7fSMartin Schwidefsky #define __NR_getcpu		311
252c6557e7fSMartin Schwidefsky #define __NR_epoll_pwait	312
253c6557e7fSMartin Schwidefsky #define __NR_utimes		313
254c6557e7fSMartin Schwidefsky #define __NR_fallocate		314
255c6557e7fSMartin Schwidefsky #define __NR_utimensat		315
256c6557e7fSMartin Schwidefsky #define __NR_signalfd		316
257c6557e7fSMartin Schwidefsky #define __NR_timerfd		317
258c6557e7fSMartin Schwidefsky #define __NR_eventfd		318
259c6557e7fSMartin Schwidefsky #define __NR_timerfd_create	319
260c6557e7fSMartin Schwidefsky #define __NR_timerfd_settime	320
261c6557e7fSMartin Schwidefsky #define __NR_timerfd_gettime	321
262c6557e7fSMartin Schwidefsky #define __NR_signalfd4		322
263c6557e7fSMartin Schwidefsky #define __NR_eventfd2		323
264c6557e7fSMartin Schwidefsky #define __NR_inotify_init1	324
265c6557e7fSMartin Schwidefsky #define __NR_pipe2		325
266c6557e7fSMartin Schwidefsky #define __NR_dup3		326
267c6557e7fSMartin Schwidefsky #define __NR_epoll_create1	327
268a93e11f9SHeiko Carstens #define	__NR_preadv		328
269a93e11f9SHeiko Carstens #define	__NR_pwritev		329
270fc39453dSHeiko Carstens #define __NR_rt_tgsigqueueinfo	330
271cdd6c482SIngo Molnar #define __NR_perf_event_open	331
27294e587f6SHeiko Carstens #define NR_syscalls 332
273c6557e7fSMartin Schwidefsky 
274c6557e7fSMartin Schwidefsky /*
275c6557e7fSMartin Schwidefsky  * There are some system calls that are not present on 64 bit, some
276c6557e7fSMartin Schwidefsky  * have a different name although they do the same (e.g. __NR_chown32
277c6557e7fSMartin Schwidefsky  * is __NR_chown on 64 bit).
278c6557e7fSMartin Schwidefsky  */
279c6557e7fSMartin Schwidefsky #ifndef __s390x__
280c6557e7fSMartin Schwidefsky 
281c6557e7fSMartin Schwidefsky #define __NR_time		 13
282c6557e7fSMartin Schwidefsky #define __NR_lchown		 16
283c6557e7fSMartin Schwidefsky #define __NR_setuid		 23
284c6557e7fSMartin Schwidefsky #define __NR_getuid		 24
285c6557e7fSMartin Schwidefsky #define __NR_stime		 25
286c6557e7fSMartin Schwidefsky #define __NR_setgid		 46
287c6557e7fSMartin Schwidefsky #define __NR_getgid		 47
288c6557e7fSMartin Schwidefsky #define __NR_geteuid		 49
289c6557e7fSMartin Schwidefsky #define __NR_getegid		 50
290c6557e7fSMartin Schwidefsky #define __NR_setreuid		 70
291c6557e7fSMartin Schwidefsky #define __NR_setregid		 71
292c6557e7fSMartin Schwidefsky #define __NR_getrlimit		 76
293c6557e7fSMartin Schwidefsky #define __NR_getgroups		 80
294c6557e7fSMartin Schwidefsky #define __NR_setgroups		 81
295c6557e7fSMartin Schwidefsky #define __NR_fchown		 95
296c6557e7fSMartin Schwidefsky #define __NR_ioperm		101
297c6557e7fSMartin Schwidefsky #define __NR_setfsuid		138
298c6557e7fSMartin Schwidefsky #define __NR_setfsgid		139
299c6557e7fSMartin Schwidefsky #define __NR__llseek		140
300c6557e7fSMartin Schwidefsky #define __NR__newselect 	142
301c6557e7fSMartin Schwidefsky #define __NR_setresuid		164
302c6557e7fSMartin Schwidefsky #define __NR_getresuid		165
303c6557e7fSMartin Schwidefsky #define __NR_setresgid		170
304c6557e7fSMartin Schwidefsky #define __NR_getresgid		171
305c6557e7fSMartin Schwidefsky #define __NR_chown		182
306c6557e7fSMartin Schwidefsky #define __NR_ugetrlimit		191	/* SuS compliant getrlimit */
307c6557e7fSMartin Schwidefsky #define __NR_mmap2		192
308c6557e7fSMartin Schwidefsky #define __NR_truncate64		193
309c6557e7fSMartin Schwidefsky #define __NR_ftruncate64	194
310c6557e7fSMartin Schwidefsky #define __NR_stat64		195
311c6557e7fSMartin Schwidefsky #define __NR_lstat64		196
312c6557e7fSMartin Schwidefsky #define __NR_fstat64		197
313c6557e7fSMartin Schwidefsky #define __NR_lchown32		198
314c6557e7fSMartin Schwidefsky #define __NR_getuid32		199
315c6557e7fSMartin Schwidefsky #define __NR_getgid32		200
316c6557e7fSMartin Schwidefsky #define __NR_geteuid32		201
317c6557e7fSMartin Schwidefsky #define __NR_getegid32		202
318c6557e7fSMartin Schwidefsky #define __NR_setreuid32		203
319c6557e7fSMartin Schwidefsky #define __NR_setregid32		204
320c6557e7fSMartin Schwidefsky #define __NR_getgroups32	205
321c6557e7fSMartin Schwidefsky #define __NR_setgroups32	206
322c6557e7fSMartin Schwidefsky #define __NR_fchown32		207
323c6557e7fSMartin Schwidefsky #define __NR_setresuid32	208
324c6557e7fSMartin Schwidefsky #define __NR_getresuid32	209
325c6557e7fSMartin Schwidefsky #define __NR_setresgid32	210
326c6557e7fSMartin Schwidefsky #define __NR_getresgid32	211
327c6557e7fSMartin Schwidefsky #define __NR_chown32		212
328c6557e7fSMartin Schwidefsky #define __NR_setuid32		213
329c6557e7fSMartin Schwidefsky #define __NR_setgid32		214
330c6557e7fSMartin Schwidefsky #define __NR_setfsuid32		215
331c6557e7fSMartin Schwidefsky #define __NR_setfsgid32		216
332c6557e7fSMartin Schwidefsky #define __NR_fcntl64		221
333c6557e7fSMartin Schwidefsky #define __NR_sendfile64		223
334c6557e7fSMartin Schwidefsky #define __NR_fadvise64_64	264
335c6557e7fSMartin Schwidefsky #define __NR_fstatat64		293
336c6557e7fSMartin Schwidefsky 
337c6557e7fSMartin Schwidefsky #else
338c6557e7fSMartin Schwidefsky 
339c6557e7fSMartin Schwidefsky #define __NR_select		142
340c6557e7fSMartin Schwidefsky #define __NR_getrlimit		191	/* SuS compliant getrlimit */
341c6557e7fSMartin Schwidefsky #define __NR_lchown  		198
342c6557e7fSMartin Schwidefsky #define __NR_getuid  		199
343c6557e7fSMartin Schwidefsky #define __NR_getgid  		200
344c6557e7fSMartin Schwidefsky #define __NR_geteuid  		201
345c6557e7fSMartin Schwidefsky #define __NR_getegid  		202
346c6557e7fSMartin Schwidefsky #define __NR_setreuid  		203
347c6557e7fSMartin Schwidefsky #define __NR_setregid  		204
348c6557e7fSMartin Schwidefsky #define __NR_getgroups  	205
349c6557e7fSMartin Schwidefsky #define __NR_setgroups  	206
350c6557e7fSMartin Schwidefsky #define __NR_fchown  		207
351c6557e7fSMartin Schwidefsky #define __NR_setresuid  	208
352c6557e7fSMartin Schwidefsky #define __NR_getresuid  	209
353c6557e7fSMartin Schwidefsky #define __NR_setresgid  	210
354c6557e7fSMartin Schwidefsky #define __NR_getresgid  	211
355c6557e7fSMartin Schwidefsky #define __NR_chown  		212
356c6557e7fSMartin Schwidefsky #define __NR_setuid  		213
357c6557e7fSMartin Schwidefsky #define __NR_setgid  		214
358c6557e7fSMartin Schwidefsky #define __NR_setfsuid  		215
359c6557e7fSMartin Schwidefsky #define __NR_setfsgid  		216
360c6557e7fSMartin Schwidefsky #define __NR_newfstatat		293
361c6557e7fSMartin Schwidefsky 
362c6557e7fSMartin Schwidefsky #endif
363c6557e7fSMartin Schwidefsky 
364c6557e7fSMartin Schwidefsky #ifdef __KERNEL__
365c6557e7fSMartin Schwidefsky 
366c6557e7fSMartin Schwidefsky #ifndef CONFIG_64BIT
367c6557e7fSMartin Schwidefsky #define __IGNORE_select
368c6557e7fSMartin Schwidefsky #else
369c6557e7fSMartin Schwidefsky #define __IGNORE_time
370c6557e7fSMartin Schwidefsky #endif
371c6557e7fSMartin Schwidefsky 
372c6557e7fSMartin Schwidefsky /* Ignore NUMA system calls. Not wired up on s390. */
373c6557e7fSMartin Schwidefsky #define __IGNORE_mbind
374c6557e7fSMartin Schwidefsky #define __IGNORE_get_mempolicy
375c6557e7fSMartin Schwidefsky #define __IGNORE_set_mempolicy
376c6557e7fSMartin Schwidefsky #define __IGNORE_migrate_pages
377c6557e7fSMartin Schwidefsky #define __IGNORE_move_pages
378c6557e7fSMartin Schwidefsky 
37994e587f6SHeiko Carstens /* Ignore system calls that are also reachable via sys_socket */
38094e587f6SHeiko Carstens #define __IGNORE_recvmmsg
38194e587f6SHeiko Carstens 
382c6557e7fSMartin Schwidefsky #define __ARCH_WANT_IPC_PARSE_VERSION
383c6557e7fSMartin Schwidefsky #define __ARCH_WANT_OLD_READDIR
384c6557e7fSMartin Schwidefsky #define __ARCH_WANT_SYS_ALARM
385c6557e7fSMartin Schwidefsky #define __ARCH_WANT_SYS_GETHOSTNAME
386c6557e7fSMartin Schwidefsky #define __ARCH_WANT_SYS_PAUSE
387c6557e7fSMartin Schwidefsky #define __ARCH_WANT_SYS_SIGNAL
388c6557e7fSMartin Schwidefsky #define __ARCH_WANT_SYS_UTIME
389c6557e7fSMartin Schwidefsky #define __ARCH_WANT_SYS_SOCKETCALL
390c6557e7fSMartin Schwidefsky #define __ARCH_WANT_SYS_FADVISE64
391c6557e7fSMartin Schwidefsky #define __ARCH_WANT_SYS_GETPGRP
392c6557e7fSMartin Schwidefsky #define __ARCH_WANT_SYS_LLSEEK
393c6557e7fSMartin Schwidefsky #define __ARCH_WANT_SYS_NICE
394c6557e7fSMartin Schwidefsky #define __ARCH_WANT_SYS_OLD_GETRLIMIT
395*a4679373SChristoph Hellwig #define __ARCH_WANT_SYS_OLD_MMAP
396c6557e7fSMartin Schwidefsky #define __ARCH_WANT_SYS_OLDUMOUNT
397c6557e7fSMartin Schwidefsky #define __ARCH_WANT_SYS_SIGPENDING
398c6557e7fSMartin Schwidefsky #define __ARCH_WANT_SYS_SIGPROCMASK
399c6557e7fSMartin Schwidefsky #define __ARCH_WANT_SYS_RT_SIGACTION
400c6557e7fSMartin Schwidefsky #define __ARCH_WANT_SYS_RT_SIGSUSPEND
401c6557e7fSMartin Schwidefsky # ifndef CONFIG_64BIT
402c6557e7fSMartin Schwidefsky #   define __ARCH_WANT_STAT64
403c6557e7fSMartin Schwidefsky #   define __ARCH_WANT_SYS_TIME
404c6557e7fSMartin Schwidefsky # endif
405c6557e7fSMartin Schwidefsky # ifdef CONFIG_COMPAT
406c6557e7fSMartin Schwidefsky #   define __ARCH_WANT_COMPAT_SYS_TIME
407c6557e7fSMartin Schwidefsky #   define __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND
408c6557e7fSMartin Schwidefsky # endif
409c6557e7fSMartin Schwidefsky 
410c6557e7fSMartin Schwidefsky /*
411c6557e7fSMartin Schwidefsky  * "Conditional" syscalls
412c6557e7fSMartin Schwidefsky  *
413c6557e7fSMartin Schwidefsky  * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
414c6557e7fSMartin Schwidefsky  * but it doesn't work on all toolchains, so we just do it by hand
415c6557e7fSMartin Schwidefsky  */
416c6557e7fSMartin Schwidefsky #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
417c6557e7fSMartin Schwidefsky 
418c6557e7fSMartin Schwidefsky #endif /* __KERNEL__ */
419c6557e7fSMartin Schwidefsky #endif /* _ASM_S390_UNISTD_H_ */
420