xref: /openbmc/linux/arch/powerpc/include/asm/unistd.h (revision 8f9c0119d7ba94c3ad13876acc240d7f12b6d8e1)
1b8b572e1SStephen Rothwell #ifndef _ASM_POWERPC_UNISTD_H_
2b8b572e1SStephen Rothwell #define _ASM_POWERPC_UNISTD_H_
3b8b572e1SStephen Rothwell 
4b8b572e1SStephen Rothwell /*
5b8b572e1SStephen Rothwell  * This file contains the system call numbers.
6b8b572e1SStephen Rothwell  *
7b8b572e1SStephen Rothwell  * This program is free software; you can redistribute it and/or
8b8b572e1SStephen Rothwell  * modify it under the terms of the GNU General Public License
9b8b572e1SStephen Rothwell  * as published by the Free Software Foundation; either version
10b8b572e1SStephen Rothwell  * 2 of the License, or (at your option) any later version.
11b8b572e1SStephen Rothwell  */
12b8b572e1SStephen Rothwell 
13b8b572e1SStephen Rothwell #define __NR_restart_syscall	  0
14b8b572e1SStephen Rothwell #define __NR_exit		  1
15b8b572e1SStephen Rothwell #define __NR_fork		  2
16b8b572e1SStephen Rothwell #define __NR_read		  3
17b8b572e1SStephen Rothwell #define __NR_write		  4
18b8b572e1SStephen Rothwell #define __NR_open		  5
19b8b572e1SStephen Rothwell #define __NR_close		  6
20b8b572e1SStephen Rothwell #define __NR_waitpid		  7
21b8b572e1SStephen Rothwell #define __NR_creat		  8
22b8b572e1SStephen Rothwell #define __NR_link		  9
23b8b572e1SStephen Rothwell #define __NR_unlink		 10
24b8b572e1SStephen Rothwell #define __NR_execve		 11
25b8b572e1SStephen Rothwell #define __NR_chdir		 12
26b8b572e1SStephen Rothwell #define __NR_time		 13
27b8b572e1SStephen Rothwell #define __NR_mknod		 14
28b8b572e1SStephen Rothwell #define __NR_chmod		 15
29b8b572e1SStephen Rothwell #define __NR_lchown		 16
30b8b572e1SStephen Rothwell #define __NR_break		 17
31b8b572e1SStephen Rothwell #define __NR_oldstat		 18
32b8b572e1SStephen Rothwell #define __NR_lseek		 19
33b8b572e1SStephen Rothwell #define __NR_getpid		 20
34b8b572e1SStephen Rothwell #define __NR_mount		 21
35b8b572e1SStephen Rothwell #define __NR_umount		 22
36b8b572e1SStephen Rothwell #define __NR_setuid		 23
37b8b572e1SStephen Rothwell #define __NR_getuid		 24
38b8b572e1SStephen Rothwell #define __NR_stime		 25
39b8b572e1SStephen Rothwell #define __NR_ptrace		 26
40b8b572e1SStephen Rothwell #define __NR_alarm		 27
41b8b572e1SStephen Rothwell #define __NR_oldfstat		 28
42b8b572e1SStephen Rothwell #define __NR_pause		 29
43b8b572e1SStephen Rothwell #define __NR_utime		 30
44b8b572e1SStephen Rothwell #define __NR_stty		 31
45b8b572e1SStephen Rothwell #define __NR_gtty		 32
46b8b572e1SStephen Rothwell #define __NR_access		 33
47b8b572e1SStephen Rothwell #define __NR_nice		 34
48b8b572e1SStephen Rothwell #define __NR_ftime		 35
49b8b572e1SStephen Rothwell #define __NR_sync		 36
50b8b572e1SStephen Rothwell #define __NR_kill		 37
51b8b572e1SStephen Rothwell #define __NR_rename		 38
52b8b572e1SStephen Rothwell #define __NR_mkdir		 39
53b8b572e1SStephen Rothwell #define __NR_rmdir		 40
54b8b572e1SStephen Rothwell #define __NR_dup		 41
55b8b572e1SStephen Rothwell #define __NR_pipe		 42
56b8b572e1SStephen Rothwell #define __NR_times		 43
57b8b572e1SStephen Rothwell #define __NR_prof		 44
58b8b572e1SStephen Rothwell #define __NR_brk		 45
59b8b572e1SStephen Rothwell #define __NR_setgid		 46
60b8b572e1SStephen Rothwell #define __NR_getgid		 47
61b8b572e1SStephen Rothwell #define __NR_signal		 48
62b8b572e1SStephen Rothwell #define __NR_geteuid		 49
63b8b572e1SStephen Rothwell #define __NR_getegid		 50
64b8b572e1SStephen Rothwell #define __NR_acct		 51
65b8b572e1SStephen Rothwell #define __NR_umount2		 52
66b8b572e1SStephen Rothwell #define __NR_lock		 53
67b8b572e1SStephen Rothwell #define __NR_ioctl		 54
68b8b572e1SStephen Rothwell #define __NR_fcntl		 55
69b8b572e1SStephen Rothwell #define __NR_mpx		 56
70b8b572e1SStephen Rothwell #define __NR_setpgid		 57
71b8b572e1SStephen Rothwell #define __NR_ulimit		 58
72b8b572e1SStephen Rothwell #define __NR_oldolduname	 59
73b8b572e1SStephen Rothwell #define __NR_umask		 60
74b8b572e1SStephen Rothwell #define __NR_chroot		 61
75b8b572e1SStephen Rothwell #define __NR_ustat		 62
76b8b572e1SStephen Rothwell #define __NR_dup2		 63
77b8b572e1SStephen Rothwell #define __NR_getppid		 64
78b8b572e1SStephen Rothwell #define __NR_getpgrp		 65
79b8b572e1SStephen Rothwell #define __NR_setsid		 66
80b8b572e1SStephen Rothwell #define __NR_sigaction		 67
81b8b572e1SStephen Rothwell #define __NR_sgetmask		 68
82b8b572e1SStephen Rothwell #define __NR_ssetmask		 69
83b8b572e1SStephen Rothwell #define __NR_setreuid		 70
84b8b572e1SStephen Rothwell #define __NR_setregid		 71
85b8b572e1SStephen Rothwell #define __NR_sigsuspend		 72
86b8b572e1SStephen Rothwell #define __NR_sigpending		 73
87b8b572e1SStephen Rothwell #define __NR_sethostname	 74
88b8b572e1SStephen Rothwell #define __NR_setrlimit		 75
89b8b572e1SStephen Rothwell #define __NR_getrlimit		 76
90b8b572e1SStephen Rothwell #define __NR_getrusage		 77
91b8b572e1SStephen Rothwell #define __NR_gettimeofday	 78
92b8b572e1SStephen Rothwell #define __NR_settimeofday	 79
93b8b572e1SStephen Rothwell #define __NR_getgroups		 80
94b8b572e1SStephen Rothwell #define __NR_setgroups		 81
95b8b572e1SStephen Rothwell #define __NR_select		 82
96b8b572e1SStephen Rothwell #define __NR_symlink		 83
97b8b572e1SStephen Rothwell #define __NR_oldlstat		 84
98b8b572e1SStephen Rothwell #define __NR_readlink		 85
99b8b572e1SStephen Rothwell #define __NR_uselib		 86
100b8b572e1SStephen Rothwell #define __NR_swapon		 87
101b8b572e1SStephen Rothwell #define __NR_reboot		 88
102b8b572e1SStephen Rothwell #define __NR_readdir		 89
103b8b572e1SStephen Rothwell #define __NR_mmap		 90
104b8b572e1SStephen Rothwell #define __NR_munmap		 91
105b8b572e1SStephen Rothwell #define __NR_truncate		 92
106b8b572e1SStephen Rothwell #define __NR_ftruncate		 93
107b8b572e1SStephen Rothwell #define __NR_fchmod		 94
108b8b572e1SStephen Rothwell #define __NR_fchown		 95
109b8b572e1SStephen Rothwell #define __NR_getpriority	 96
110b8b572e1SStephen Rothwell #define __NR_setpriority	 97
111b8b572e1SStephen Rothwell #define __NR_profil		 98
112b8b572e1SStephen Rothwell #define __NR_statfs		 99
113b8b572e1SStephen Rothwell #define __NR_fstatfs		100
114b8b572e1SStephen Rothwell #define __NR_ioperm		101
115b8b572e1SStephen Rothwell #define __NR_socketcall		102
116b8b572e1SStephen Rothwell #define __NR_syslog		103
117b8b572e1SStephen Rothwell #define __NR_setitimer		104
118b8b572e1SStephen Rothwell #define __NR_getitimer		105
119b8b572e1SStephen Rothwell #define __NR_stat		106
120b8b572e1SStephen Rothwell #define __NR_lstat		107
121b8b572e1SStephen Rothwell #define __NR_fstat		108
122b8b572e1SStephen Rothwell #define __NR_olduname		109
123b8b572e1SStephen Rothwell #define __NR_iopl		110
124b8b572e1SStephen Rothwell #define __NR_vhangup		111
125b8b572e1SStephen Rothwell #define __NR_idle		112
126b8b572e1SStephen Rothwell #define __NR_vm86		113
127b8b572e1SStephen Rothwell #define __NR_wait4		114
128b8b572e1SStephen Rothwell #define __NR_swapoff		115
129b8b572e1SStephen Rothwell #define __NR_sysinfo		116
130b8b572e1SStephen Rothwell #define __NR_ipc		117
131b8b572e1SStephen Rothwell #define __NR_fsync		118
132b8b572e1SStephen Rothwell #define __NR_sigreturn		119
133b8b572e1SStephen Rothwell #define __NR_clone		120
134b8b572e1SStephen Rothwell #define __NR_setdomainname	121
135b8b572e1SStephen Rothwell #define __NR_uname		122
136b8b572e1SStephen Rothwell #define __NR_modify_ldt		123
137b8b572e1SStephen Rothwell #define __NR_adjtimex		124
138b8b572e1SStephen Rothwell #define __NR_mprotect		125
139b8b572e1SStephen Rothwell #define __NR_sigprocmask	126
140b8b572e1SStephen Rothwell #define __NR_create_module	127
141b8b572e1SStephen Rothwell #define __NR_init_module	128
142b8b572e1SStephen Rothwell #define __NR_delete_module	129
143b8b572e1SStephen Rothwell #define __NR_get_kernel_syms	130
144b8b572e1SStephen Rothwell #define __NR_quotactl		131
145b8b572e1SStephen Rothwell #define __NR_getpgid		132
146b8b572e1SStephen Rothwell #define __NR_fchdir		133
147b8b572e1SStephen Rothwell #define __NR_bdflush		134
148b8b572e1SStephen Rothwell #define __NR_sysfs		135
149b8b572e1SStephen Rothwell #define __NR_personality	136
150b8b572e1SStephen Rothwell #define __NR_afs_syscall	137 /* Syscall for Andrew File System */
151b8b572e1SStephen Rothwell #define __NR_setfsuid		138
152b8b572e1SStephen Rothwell #define __NR_setfsgid		139
153b8b572e1SStephen Rothwell #define __NR__llseek		140
154b8b572e1SStephen Rothwell #define __NR_getdents		141
155b8b572e1SStephen Rothwell #define __NR__newselect		142
156b8b572e1SStephen Rothwell #define __NR_flock		143
157b8b572e1SStephen Rothwell #define __NR_msync		144
158b8b572e1SStephen Rothwell #define __NR_readv		145
159b8b572e1SStephen Rothwell #define __NR_writev		146
160b8b572e1SStephen Rothwell #define __NR_getsid		147
161b8b572e1SStephen Rothwell #define __NR_fdatasync		148
162b8b572e1SStephen Rothwell #define __NR__sysctl		149
163b8b572e1SStephen Rothwell #define __NR_mlock		150
164b8b572e1SStephen Rothwell #define __NR_munlock		151
165b8b572e1SStephen Rothwell #define __NR_mlockall		152
166b8b572e1SStephen Rothwell #define __NR_munlockall		153
167b8b572e1SStephen Rothwell #define __NR_sched_setparam		154
168b8b572e1SStephen Rothwell #define __NR_sched_getparam		155
169b8b572e1SStephen Rothwell #define __NR_sched_setscheduler		156
170b8b572e1SStephen Rothwell #define __NR_sched_getscheduler		157
171b8b572e1SStephen Rothwell #define __NR_sched_yield		158
172b8b572e1SStephen Rothwell #define __NR_sched_get_priority_max	159
173b8b572e1SStephen Rothwell #define __NR_sched_get_priority_min	160
174b8b572e1SStephen Rothwell #define __NR_sched_rr_get_interval	161
175b8b572e1SStephen Rothwell #define __NR_nanosleep		162
176b8b572e1SStephen Rothwell #define __NR_mremap		163
177b8b572e1SStephen Rothwell #define __NR_setresuid		164
178b8b572e1SStephen Rothwell #define __NR_getresuid		165
179b8b572e1SStephen Rothwell #define __NR_query_module	166
180b8b572e1SStephen Rothwell #define __NR_poll		167
181b8b572e1SStephen Rothwell #define __NR_nfsservctl		168
182b8b572e1SStephen Rothwell #define __NR_setresgid		169
183b8b572e1SStephen Rothwell #define __NR_getresgid		170
184b8b572e1SStephen Rothwell #define __NR_prctl		171
185b8b572e1SStephen Rothwell #define __NR_rt_sigreturn	172
186b8b572e1SStephen Rothwell #define __NR_rt_sigaction	173
187b8b572e1SStephen Rothwell #define __NR_rt_sigprocmask	174
188b8b572e1SStephen Rothwell #define __NR_rt_sigpending	175
189b8b572e1SStephen Rothwell #define __NR_rt_sigtimedwait	176
190b8b572e1SStephen Rothwell #define __NR_rt_sigqueueinfo	177
191b8b572e1SStephen Rothwell #define __NR_rt_sigsuspend	178
192b8b572e1SStephen Rothwell #define __NR_pread64		179
193b8b572e1SStephen Rothwell #define __NR_pwrite64		180
194b8b572e1SStephen Rothwell #define __NR_chown		181
195b8b572e1SStephen Rothwell #define __NR_getcwd		182
196b8b572e1SStephen Rothwell #define __NR_capget		183
197b8b572e1SStephen Rothwell #define __NR_capset		184
198b8b572e1SStephen Rothwell #define __NR_sigaltstack	185
199b8b572e1SStephen Rothwell #define __NR_sendfile		186
200b8b572e1SStephen Rothwell #define __NR_getpmsg		187	/* some people actually want streams */
201b8b572e1SStephen Rothwell #define __NR_putpmsg		188	/* some people actually want streams */
202b8b572e1SStephen Rothwell #define __NR_vfork		189
203b8b572e1SStephen Rothwell #define __NR_ugetrlimit		190	/* SuS compliant getrlimit */
204b8b572e1SStephen Rothwell #define __NR_readahead		191
205b8b572e1SStephen Rothwell #ifndef __powerpc64__			/* these are 32-bit only */
206b8b572e1SStephen Rothwell #define __NR_mmap2		192
207b8b572e1SStephen Rothwell #define __NR_truncate64		193
208b8b572e1SStephen Rothwell #define __NR_ftruncate64	194
209b8b572e1SStephen Rothwell #define __NR_stat64		195
210b8b572e1SStephen Rothwell #define __NR_lstat64		196
211b8b572e1SStephen Rothwell #define __NR_fstat64		197
212b8b572e1SStephen Rothwell #endif
213b8b572e1SStephen Rothwell #define __NR_pciconfig_read	198
214b8b572e1SStephen Rothwell #define __NR_pciconfig_write	199
215b8b572e1SStephen Rothwell #define __NR_pciconfig_iobase	200
216b8b572e1SStephen Rothwell #define __NR_multiplexer	201
217b8b572e1SStephen Rothwell #define __NR_getdents64		202
218b8b572e1SStephen Rothwell #define __NR_pivot_root		203
219b8b572e1SStephen Rothwell #ifndef __powerpc64__
220b8b572e1SStephen Rothwell #define __NR_fcntl64		204
221b8b572e1SStephen Rothwell #endif
222b8b572e1SStephen Rothwell #define __NR_madvise		205
223b8b572e1SStephen Rothwell #define __NR_mincore		206
224b8b572e1SStephen Rothwell #define __NR_gettid		207
225b8b572e1SStephen Rothwell #define __NR_tkill		208
226b8b572e1SStephen Rothwell #define __NR_setxattr		209
227b8b572e1SStephen Rothwell #define __NR_lsetxattr		210
228b8b572e1SStephen Rothwell #define __NR_fsetxattr		211
229b8b572e1SStephen Rothwell #define __NR_getxattr		212
230b8b572e1SStephen Rothwell #define __NR_lgetxattr		213
231b8b572e1SStephen Rothwell #define __NR_fgetxattr		214
232b8b572e1SStephen Rothwell #define __NR_listxattr		215
233b8b572e1SStephen Rothwell #define __NR_llistxattr		216
234b8b572e1SStephen Rothwell #define __NR_flistxattr		217
235b8b572e1SStephen Rothwell #define __NR_removexattr	218
236b8b572e1SStephen Rothwell #define __NR_lremovexattr	219
237b8b572e1SStephen Rothwell #define __NR_fremovexattr	220
238b8b572e1SStephen Rothwell #define __NR_futex		221
239b8b572e1SStephen Rothwell #define __NR_sched_setaffinity	222
240b8b572e1SStephen Rothwell #define __NR_sched_getaffinity	223
241b8b572e1SStephen Rothwell /* 224 currently unused */
242b8b572e1SStephen Rothwell #define __NR_tuxcall		225
243b8b572e1SStephen Rothwell #ifndef __powerpc64__
244b8b572e1SStephen Rothwell #define __NR_sendfile64		226
245b8b572e1SStephen Rothwell #endif
246b8b572e1SStephen Rothwell #define __NR_io_setup		227
247b8b572e1SStephen Rothwell #define __NR_io_destroy		228
248b8b572e1SStephen Rothwell #define __NR_io_getevents	229
249b8b572e1SStephen Rothwell #define __NR_io_submit		230
250b8b572e1SStephen Rothwell #define __NR_io_cancel		231
251b8b572e1SStephen Rothwell #define __NR_set_tid_address	232
252b8b572e1SStephen Rothwell #define __NR_fadvise64		233
253b8b572e1SStephen Rothwell #define __NR_exit_group		234
254b8b572e1SStephen Rothwell #define __NR_lookup_dcookie	235
255b8b572e1SStephen Rothwell #define __NR_epoll_create	236
256b8b572e1SStephen Rothwell #define __NR_epoll_ctl		237
257b8b572e1SStephen Rothwell #define __NR_epoll_wait		238
258b8b572e1SStephen Rothwell #define __NR_remap_file_pages	239
259b8b572e1SStephen Rothwell #define __NR_timer_create	240
260b8b572e1SStephen Rothwell #define __NR_timer_settime	241
261b8b572e1SStephen Rothwell #define __NR_timer_gettime	242
262b8b572e1SStephen Rothwell #define __NR_timer_getoverrun	243
263b8b572e1SStephen Rothwell #define __NR_timer_delete	244
264b8b572e1SStephen Rothwell #define __NR_clock_settime	245
265b8b572e1SStephen Rothwell #define __NR_clock_gettime	246
266b8b572e1SStephen Rothwell #define __NR_clock_getres	247
267b8b572e1SStephen Rothwell #define __NR_clock_nanosleep	248
268b8b572e1SStephen Rothwell #define __NR_swapcontext	249
269b8b572e1SStephen Rothwell #define __NR_tgkill		250
270b8b572e1SStephen Rothwell #define __NR_utimes		251
271b8b572e1SStephen Rothwell #define __NR_statfs64		252
272b8b572e1SStephen Rothwell #define __NR_fstatfs64		253
273b8b572e1SStephen Rothwell #ifndef __powerpc64__
274b8b572e1SStephen Rothwell #define __NR_fadvise64_64	254
275b8b572e1SStephen Rothwell #endif
276b8b572e1SStephen Rothwell #define __NR_rtas		255
277b8b572e1SStephen Rothwell #define __NR_sys_debug_setcontext 256
278b8b572e1SStephen Rothwell /* Number 257 is reserved for vserver */
279b8b572e1SStephen Rothwell #define __NR_migrate_pages	258
280b8b572e1SStephen Rothwell #define __NR_mbind		259
281b8b572e1SStephen Rothwell #define __NR_get_mempolicy	260
282b8b572e1SStephen Rothwell #define __NR_set_mempolicy	261
283b8b572e1SStephen Rothwell #define __NR_mq_open		262
284b8b572e1SStephen Rothwell #define __NR_mq_unlink		263
285b8b572e1SStephen Rothwell #define __NR_mq_timedsend	264
286b8b572e1SStephen Rothwell #define __NR_mq_timedreceive	265
287b8b572e1SStephen Rothwell #define __NR_mq_notify		266
288b8b572e1SStephen Rothwell #define __NR_mq_getsetattr	267
289b8b572e1SStephen Rothwell #define __NR_kexec_load		268
290b8b572e1SStephen Rothwell #define __NR_add_key		269
291b8b572e1SStephen Rothwell #define __NR_request_key	270
292b8b572e1SStephen Rothwell #define __NR_keyctl		271
293b8b572e1SStephen Rothwell #define __NR_waitid		272
294b8b572e1SStephen Rothwell #define __NR_ioprio_set		273
295b8b572e1SStephen Rothwell #define __NR_ioprio_get		274
296b8b572e1SStephen Rothwell #define __NR_inotify_init	275
297b8b572e1SStephen Rothwell #define __NR_inotify_add_watch	276
298b8b572e1SStephen Rothwell #define __NR_inotify_rm_watch	277
299b8b572e1SStephen Rothwell #define __NR_spu_run		278
300b8b572e1SStephen Rothwell #define __NR_spu_create		279
301b8b572e1SStephen Rothwell #define __NR_pselect6		280
302b8b572e1SStephen Rothwell #define __NR_ppoll		281
303b8b572e1SStephen Rothwell #define __NR_unshare		282
304b8b572e1SStephen Rothwell #define __NR_splice		283
305b8b572e1SStephen Rothwell #define __NR_tee		284
306b8b572e1SStephen Rothwell #define __NR_vmsplice		285
307b8b572e1SStephen Rothwell #define __NR_openat		286
308b8b572e1SStephen Rothwell #define __NR_mkdirat		287
309b8b572e1SStephen Rothwell #define __NR_mknodat		288
310b8b572e1SStephen Rothwell #define __NR_fchownat		289
311b8b572e1SStephen Rothwell #define __NR_futimesat		290
312b8b572e1SStephen Rothwell #ifdef __powerpc64__
313b8b572e1SStephen Rothwell #define __NR_newfstatat		291
314b8b572e1SStephen Rothwell #else
315b8b572e1SStephen Rothwell #define __NR_fstatat64		291
316b8b572e1SStephen Rothwell #endif
317b8b572e1SStephen Rothwell #define __NR_unlinkat		292
318b8b572e1SStephen Rothwell #define __NR_renameat		293
319b8b572e1SStephen Rothwell #define __NR_linkat		294
320b8b572e1SStephen Rothwell #define __NR_symlinkat		295
321b8b572e1SStephen Rothwell #define __NR_readlinkat		296
322b8b572e1SStephen Rothwell #define __NR_fchmodat		297
323b8b572e1SStephen Rothwell #define __NR_faccessat		298
324b8b572e1SStephen Rothwell #define __NR_get_robust_list	299
325b8b572e1SStephen Rothwell #define __NR_set_robust_list	300
326b8b572e1SStephen Rothwell #define __NR_move_pages		301
327b8b572e1SStephen Rothwell #define __NR_getcpu		302
328b8b572e1SStephen Rothwell #define __NR_epoll_pwait	303
329b8b572e1SStephen Rothwell #define __NR_utimensat		304
330b8b572e1SStephen Rothwell #define __NR_signalfd		305
331b8b572e1SStephen Rothwell #define __NR_timerfd_create	306
332b8b572e1SStephen Rothwell #define __NR_eventfd		307
333b8b572e1SStephen Rothwell #define __NR_sync_file_range2	308
334b8b572e1SStephen Rothwell #define __NR_fallocate		309
335b8b572e1SStephen Rothwell #define __NR_subpage_prot	310
336b8b572e1SStephen Rothwell #define __NR_timerfd_settime	311
337b8b572e1SStephen Rothwell #define __NR_timerfd_gettime	312
338b8b572e1SStephen Rothwell #define __NR_signalfd4		313
339b8b572e1SStephen Rothwell #define __NR_eventfd2		314
340b8b572e1SStephen Rothwell #define __NR_epoll_create1	315
341b8b572e1SStephen Rothwell #define __NR_dup3		316
342b8b572e1SStephen Rothwell #define __NR_pipe2		317
343b8b572e1SStephen Rothwell #define __NR_inotify_init1	318
344cdd6c482SIngo Molnar #define __NR_perf_event_open	319
3451a917bb5SStephen Rothwell #define __NR_preadv		320
3461a917bb5SStephen Rothwell #define __NR_pwritev		321
3473240776cSStephen Rothwell #define __NR_rt_tgsigqueueinfo	322
348bcc30d37SAndreas Schwab #define __NR_fanotify_init	323
349bcc30d37SAndreas Schwab #define __NR_fanotify_mark	324
350bcc30d37SAndreas Schwab #define __NR_prlimit64		325
35186250b9dSIan Munsie #define __NR_socket		326
35286250b9dSIan Munsie #define __NR_bind		327
35386250b9dSIan Munsie #define __NR_connect		328
35486250b9dSIan Munsie #define __NR_listen		329
35586250b9dSIan Munsie #define __NR_accept		330
35686250b9dSIan Munsie #define __NR_getsockname	331
35786250b9dSIan Munsie #define __NR_getpeername	332
35886250b9dSIan Munsie #define __NR_socketpair		333
35986250b9dSIan Munsie #define __NR_send		334
36086250b9dSIan Munsie #define __NR_sendto		335
36186250b9dSIan Munsie #define __NR_recv		336
36286250b9dSIan Munsie #define __NR_recvfrom		337
36386250b9dSIan Munsie #define __NR_shutdown		338
36486250b9dSIan Munsie #define __NR_setsockopt		339
36586250b9dSIan Munsie #define __NR_getsockopt		340
36686250b9dSIan Munsie #define __NR_sendmsg		341
36786250b9dSIan Munsie #define __NR_recvmsg		342
36886250b9dSIan Munsie #define __NR_recvmmsg		343
36986250b9dSIan Munsie #define __NR_accept4		344
370834796a8SStephen Rothwell #define __NR_name_to_handle_at	345
371834796a8SStephen Rothwell #define __NR_open_by_handle_at	346
372834796a8SStephen Rothwell #define __NR_clock_adjtime	347
373834796a8SStephen Rothwell #define __NR_syncfs		348
374228e548eSAnton Blanchard #define __NR_sendmmsg		349
3757b21fdddSEric W. Biederman #define __NR_setns		350
376fcf63409SChristopher Yeoh #define __NR_process_vm_readv	351
377fcf63409SChristopher Yeoh #define __NR_process_vm_writev	352
378b8b572e1SStephen Rothwell 
379b8b572e1SStephen Rothwell #ifdef __KERNEL__
380b8b572e1SStephen Rothwell 
381fcf63409SChristopher Yeoh #define __NR_syscalls		353
382b8b572e1SStephen Rothwell 
383b8b572e1SStephen Rothwell #define __NR__exit __NR_exit
384b8b572e1SStephen Rothwell #define NR_syscalls	__NR_syscalls
385b8b572e1SStephen Rothwell 
386b8b572e1SStephen Rothwell #ifndef __ASSEMBLY__
387b8b572e1SStephen Rothwell 
388b8b572e1SStephen Rothwell #include <linux/types.h>
389b8b572e1SStephen Rothwell #include <linux/compiler.h>
390b8b572e1SStephen Rothwell #include <linux/linkage.h>
391b8b572e1SStephen Rothwell 
392b8b572e1SStephen Rothwell #define __ARCH_WANT_OLD_READDIR
393b8b572e1SStephen Rothwell #define __ARCH_WANT_STAT64
394b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_ALARM
395b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_GETHOSTNAME
396baed7fc9SChristoph Hellwig #define __ARCH_WANT_SYS_IPC
397b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_PAUSE
398b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_SGETMASK
399b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_SIGNAL
400b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_TIME
401b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_UTIME
402b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_WAITPID
403b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_SOCKETCALL
404b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_FADVISE64
405b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_GETPGRP
406b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_LLSEEK
407b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_NICE
408b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_OLD_GETRLIMIT
4095cacdb4aSChristoph Hellwig #define __ARCH_WANT_SYS_OLD_UNAME
410b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_OLDUMOUNT
411b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_SIGPENDING
412b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_SIGPROCMASK
413b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_RT_SIGACTION
414b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_RT_SIGSUSPEND
415b8b572e1SStephen Rothwell #ifdef CONFIG_PPC32
416b8b572e1SStephen Rothwell #define __ARCH_WANT_OLD_STAT
417b8b572e1SStephen Rothwell #endif
418b8b572e1SStephen Rothwell #ifdef CONFIG_PPC64
419b8b572e1SStephen Rothwell #define __ARCH_WANT_COMPAT_SYS_TIME
420b8b572e1SStephen Rothwell #define __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND
421b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_NEWFSTATAT
422*8f9c0119SCatalin Marinas #define __ARCH_WANT_COMPAT_SYS_SENDFILE
423b8b572e1SStephen Rothwell #endif
424b8b572e1SStephen Rothwell 
425b8b572e1SStephen Rothwell /*
426b8b572e1SStephen Rothwell  * "Conditional" syscalls
427b8b572e1SStephen Rothwell  */
428b8b572e1SStephen Rothwell #define cond_syscall(x) \
429b8b572e1SStephen Rothwell 	asmlinkage long x (void) __attribute__((weak,alias("sys_ni_syscall")))
430b8b572e1SStephen Rothwell 
431b8b572e1SStephen Rothwell #endif		/* __ASSEMBLY__ */
432b8b572e1SStephen Rothwell #endif		/* __KERNEL__ */
433b8b572e1SStephen Rothwell 
434b8b572e1SStephen Rothwell #endif /* _ASM_POWERPC_UNISTD_H_ */
435