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