xref: /freebsd/sys/compat/freebsd32/freebsd32_syscall.h (revision 51334c8257a7f5ad1323185d837a48c531c69fa3)
1 /*
2  * System call numbers.
3  *
4  * DO NOT EDIT-- this file is automatically generated.
5  * $FreeBSD$
6  * created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 195468 2009-07-08 16:26:43Z trasz
7  */
8 
9 #define	FREEBSD32_SYS_syscall	0
10 #define	FREEBSD32_SYS_exit	1
11 #define	FREEBSD32_SYS_fork	2
12 #define	FREEBSD32_SYS_read	3
13 #define	FREEBSD32_SYS_write	4
14 #define	FREEBSD32_SYS_open	5
15 #define	FREEBSD32_SYS_close	6
16 #define	FREEBSD32_SYS_freebsd32_wait4	7
17 				/* 8 is obsolete old creat */
18 #define	FREEBSD32_SYS_link	9
19 #define	FREEBSD32_SYS_unlink	10
20 				/* 11 is obsolete execv */
21 #define	FREEBSD32_SYS_chdir	12
22 #define	FREEBSD32_SYS_fchdir	13
23 #define	FREEBSD32_SYS_mknod	14
24 #define	FREEBSD32_SYS_chmod	15
25 #define	FREEBSD32_SYS_chown	16
26 #define	FREEBSD32_SYS_break	17
27 #define	FREEBSD32_SYS_freebsd4_freebsd32_getfsstat	18
28 				/* 19 is obsolete olseek */
29 #define	FREEBSD32_SYS_getpid	20
30 #define	FREEBSD32_SYS_mount	21
31 #define	FREEBSD32_SYS_unmount	22
32 #define	FREEBSD32_SYS_setuid	23
33 #define	FREEBSD32_SYS_getuid	24
34 #define	FREEBSD32_SYS_geteuid	25
35 #define	FREEBSD32_SYS_ptrace	26
36 #define	FREEBSD32_SYS_freebsd32_recvmsg	27
37 #define	FREEBSD32_SYS_freebsd32_sendmsg	28
38 #define	FREEBSD32_SYS_freebsd32_recvfrom	29
39 #define	FREEBSD32_SYS_accept	30
40 #define	FREEBSD32_SYS_getpeername	31
41 #define	FREEBSD32_SYS_getsockname	32
42 #define	FREEBSD32_SYS_access	33
43 #define	FREEBSD32_SYS_chflags	34
44 #define	FREEBSD32_SYS_fchflags	35
45 #define	FREEBSD32_SYS_sync	36
46 #define	FREEBSD32_SYS_kill	37
47 #define	FREEBSD32_SYS_getppid	39
48 #define	FREEBSD32_SYS_dup	41
49 #define	FREEBSD32_SYS_pipe	42
50 #define	FREEBSD32_SYS_getegid	43
51 #define	FREEBSD32_SYS_profil	44
52 #define	FREEBSD32_SYS_ktrace	45
53 				/* 46 is old freebsd32_sigaction */
54 #define	FREEBSD32_SYS_getgid	47
55 				/* 48 is old freebsd32_sigprocmask */
56 #define	FREEBSD32_SYS_getlogin	49
57 #define	FREEBSD32_SYS_setlogin	50
58 #define	FREEBSD32_SYS_acct	51
59 				/* 52 is old freebsd32_sigpending */
60 #define	FREEBSD32_SYS_freebsd32_sigaltstack	53
61 #define	FREEBSD32_SYS_freebsd32_ioctl	54
62 #define	FREEBSD32_SYS_reboot	55
63 #define	FREEBSD32_SYS_revoke	56
64 #define	FREEBSD32_SYS_symlink	57
65 #define	FREEBSD32_SYS_readlink	58
66 #define	FREEBSD32_SYS_freebsd32_execve	59
67 #define	FREEBSD32_SYS_umask	60
68 #define	FREEBSD32_SYS_chroot	61
69 				/* 62 is obsolete ofstat */
70 				/* 63 is obsolete ogetkerninfo */
71 				/* 64 is obsolete ogetpagesize */
72 #define	FREEBSD32_SYS_msync	65
73 #define	FREEBSD32_SYS_vfork	66
74 				/* 67 is obsolete vread */
75 				/* 68 is obsolete vwrite */
76 #define	FREEBSD32_SYS_sbrk	69
77 #define	FREEBSD32_SYS_sstk	70
78 				/* 71 is obsolete ommap */
79 #define	FREEBSD32_SYS_vadvise	72
80 #define	FREEBSD32_SYS_munmap	73
81 #define	FREEBSD32_SYS_mprotect	74
82 #define	FREEBSD32_SYS_madvise	75
83 				/* 76 is obsolete vhangup */
84 				/* 77 is obsolete vlimit */
85 #define	FREEBSD32_SYS_mincore	78
86 #define	FREEBSD32_SYS_getgroups	79
87 #define	FREEBSD32_SYS_setgroups	80
88 #define	FREEBSD32_SYS_getpgrp	81
89 #define	FREEBSD32_SYS_setpgid	82
90 #define	FREEBSD32_SYS_freebsd32_setitimer	83
91 				/* 84 is obsolete owait */
92 #define	FREEBSD32_SYS_swapon	85
93 #define	FREEBSD32_SYS_freebsd32_getitimer	86
94 				/* 87 is obsolete ogethostname */
95 				/* 88 is obsolete osethostname */
96 #define	FREEBSD32_SYS_getdtablesize	89
97 #define	FREEBSD32_SYS_dup2	90
98 #define	FREEBSD32_SYS_fcntl	92
99 #define	FREEBSD32_SYS_freebsd32_select	93
100 #define	FREEBSD32_SYS_fsync	95
101 #define	FREEBSD32_SYS_setpriority	96
102 #define	FREEBSD32_SYS_socket	97
103 #define	FREEBSD32_SYS_connect	98
104 				/* 99 is obsolete oaccept */
105 #define	FREEBSD32_SYS_getpriority	100
106 				/* 101 is obsolete osend */
107 				/* 102 is obsolete orecv */
108 				/* 103 is obsolete osigreturn */
109 #define	FREEBSD32_SYS_bind	104
110 #define	FREEBSD32_SYS_setsockopt	105
111 #define	FREEBSD32_SYS_listen	106
112 				/* 107 is obsolete vtimes */
113 				/* 108 is old freebsd32_sigvec */
114 				/* 109 is old freebsd32_sigblock */
115 				/* 110 is old freebsd32_sigsetmask */
116 				/* 111 is old freebsd32_sigsuspend */
117 				/* 112 is old freebsd32_sigstack */
118 				/* 113 is obsolete orecvmsg */
119 				/* 114 is obsolete osendmsg */
120 				/* 115 is obsolete vtrace */
121 #define	FREEBSD32_SYS_freebsd32_gettimeofday	116
122 #define	FREEBSD32_SYS_freebsd32_getrusage	117
123 #define	FREEBSD32_SYS_getsockopt	118
124 #define	FREEBSD32_SYS_freebsd32_readv	120
125 #define	FREEBSD32_SYS_freebsd32_writev	121
126 #define	FREEBSD32_SYS_freebsd32_settimeofday	122
127 #define	FREEBSD32_SYS_fchown	123
128 #define	FREEBSD32_SYS_fchmod	124
129 				/* 125 is obsolete orecvfrom */
130 #define	FREEBSD32_SYS_setreuid	126
131 #define	FREEBSD32_SYS_setregid	127
132 #define	FREEBSD32_SYS_rename	128
133 				/* 129 is obsolete otruncate */
134 				/* 130 is obsolete ftruncate */
135 #define	FREEBSD32_SYS_flock	131
136 #define	FREEBSD32_SYS_mkfifo	132
137 #define	FREEBSD32_SYS_sendto	133
138 #define	FREEBSD32_SYS_shutdown	134
139 #define	FREEBSD32_SYS_socketpair	135
140 #define	FREEBSD32_SYS_mkdir	136
141 #define	FREEBSD32_SYS_rmdir	137
142 #define	FREEBSD32_SYS_freebsd32_utimes	138
143 				/* 139 is obsolete 4.2 sigreturn */
144 #define	FREEBSD32_SYS_freebsd32_adjtime	140
145 				/* 141 is obsolete ogetpeername */
146 				/* 142 is obsolete ogethostid */
147 				/* 143 is obsolete sethostid */
148 				/* 144 is obsolete getrlimit */
149 				/* 145 is obsolete setrlimit */
150 				/* 146 is obsolete killpg */
151 #define	FREEBSD32_SYS_setsid	147
152 #define	FREEBSD32_SYS_quotactl	148
153 				/* 149 is obsolete oquota */
154 				/* 150 is obsolete ogetsockname */
155 				/* 156 is obsolete ogetdirentries */
156 #define	FREEBSD32_SYS_freebsd4_freebsd32_statfs	157
157 #define	FREEBSD32_SYS_freebsd4_freebsd32_fstatfs	158
158 #define	FREEBSD32_SYS_getfh	161
159 				/* 162 is obsolete getdomainname */
160 				/* 163 is obsolete setdomainname */
161 				/* 164 is obsolete uname */
162 #define	FREEBSD32_SYS_freebsd32_sysarch	165
163 #define	FREEBSD32_SYS_rtprio	166
164 #define	FREEBSD32_SYS_freebsd32_semsys	169
165 #define	FREEBSD32_SYS_freebsd32_msgsys	170
166 #define	FREEBSD32_SYS_freebsd32_shmsys	171
167 #define	FREEBSD32_SYS_freebsd6_freebsd32_pread	173
168 #define	FREEBSD32_SYS_freebsd6_freebsd32_pwrite	174
169 #define	FREEBSD32_SYS_ntp_adjtime	176
170 #define	FREEBSD32_SYS_setgid	181
171 #define	FREEBSD32_SYS_setegid	182
172 #define	FREEBSD32_SYS_seteuid	183
173 #define	FREEBSD32_SYS_freebsd32_stat	188
174 #define	FREEBSD32_SYS_freebsd32_fstat	189
175 #define	FREEBSD32_SYS_freebsd32_lstat	190
176 #define	FREEBSD32_SYS_pathconf	191
177 #define	FREEBSD32_SYS_fpathconf	192
178 #define	FREEBSD32_SYS_getrlimit	194
179 #define	FREEBSD32_SYS_setrlimit	195
180 #define	FREEBSD32_SYS_freebsd32_getdirentries	196
181 #define	FREEBSD32_SYS_freebsd6_freebsd32_mmap	197
182 #define	FREEBSD32_SYS___syscall	198
183 #define	FREEBSD32_SYS_freebsd6_freebsd32_lseek	199
184 #define	FREEBSD32_SYS_freebsd6_freebsd32_truncate	200
185 #define	FREEBSD32_SYS_freebsd6_freebsd32_ftruncate	201
186 #define	FREEBSD32_SYS_freebsd32_sysctl	202
187 #define	FREEBSD32_SYS_mlock	203
188 #define	FREEBSD32_SYS_munlock	204
189 #define	FREEBSD32_SYS_undelete	205
190 #define	FREEBSD32_SYS_freebsd32_futimes	206
191 #define	FREEBSD32_SYS_getpgid	207
192 #define	FREEBSD32_SYS_poll	209
193 #define	FREEBSD32_SYS_freebsd7_freebsd32_semctl	220
194 #define	FREEBSD32_SYS_semget	221
195 #define	FREEBSD32_SYS_semop	222
196 #define	FREEBSD32_SYS_freebsd7_freebsd32_msgctl	224
197 #define	FREEBSD32_SYS_msgget	225
198 #define	FREEBSD32_SYS_freebsd32_msgsnd	226
199 #define	FREEBSD32_SYS_freebsd32_msgrcv	227
200 #define	FREEBSD32_SYS_shmat	228
201 #define	FREEBSD32_SYS_freebsd7_freebsd32_shmctl	229
202 #define	FREEBSD32_SYS_shmdt	230
203 #define	FREEBSD32_SYS_shmget	231
204 #define	FREEBSD32_SYS_freebsd32_clock_gettime	232
205 #define	FREEBSD32_SYS_freebsd32_clock_settime	233
206 #define	FREEBSD32_SYS_freebsd32_clock_getres	234
207 #define	FREEBSD32_SYS_freebsd32_nanosleep	240
208 #define	FREEBSD32_SYS_minherit	250
209 #define	FREEBSD32_SYS_rfork	251
210 #define	FREEBSD32_SYS_openbsd_poll	252
211 #define	FREEBSD32_SYS_issetugid	253
212 #define	FREEBSD32_SYS_lchown	254
213 #define	FREEBSD32_SYS_freebsd32_aio_read	255
214 #define	FREEBSD32_SYS_freebsd32_aio_write	256
215 #define	FREEBSD32_SYS_freebsd32_lio_listio	257
216 #define	FREEBSD32_SYS_getdents	272
217 #define	FREEBSD32_SYS_lchmod	274
218 #define	FREEBSD32_SYS_netbsd_lchown	275
219 #define	FREEBSD32_SYS_freebsd32_lutimes	276
220 #define	FREEBSD32_SYS_netbsd_msync	277
221 #define	FREEBSD32_SYS_nstat	278
222 #define	FREEBSD32_SYS_nfstat	279
223 #define	FREEBSD32_SYS_nlstat	280
224 #define	FREEBSD32_SYS_freebsd32_preadv	289
225 #define	FREEBSD32_SYS_freebsd32_pwritev	290
226 #define	FREEBSD32_SYS_freebsd4_freebsd32_fhstatfs	297
227 #define	FREEBSD32_SYS_fhopen	298
228 #define	FREEBSD32_SYS_fhstat	299
229 #define	FREEBSD32_SYS_modnext	300
230 #define	FREEBSD32_SYS_freebsd32_modstat	301
231 #define	FREEBSD32_SYS_modfnext	302
232 #define	FREEBSD32_SYS_modfind	303
233 #define	FREEBSD32_SYS_kldload	304
234 #define	FREEBSD32_SYS_kldunload	305
235 #define	FREEBSD32_SYS_kldfind	306
236 #define	FREEBSD32_SYS_kldnext	307
237 #define	FREEBSD32_SYS_kldstat	308
238 #define	FREEBSD32_SYS_kldfirstmod	309
239 #define	FREEBSD32_SYS_getsid	310
240 #define	FREEBSD32_SYS_setresuid	311
241 #define	FREEBSD32_SYS_setresgid	312
242 				/* 313 is obsolete signanosleep */
243 #define	FREEBSD32_SYS_freebsd32_aio_return	314
244 #define	FREEBSD32_SYS_freebsd32_aio_suspend	315
245 #define	FREEBSD32_SYS_freebsd32_aio_cancel	316
246 #define	FREEBSD32_SYS_freebsd32_aio_error	317
247 #define	FREEBSD32_SYS_freebsd32_oaio_read	318
248 #define	FREEBSD32_SYS_freebsd32_oaio_write	319
249 #define	FREEBSD32_SYS_freebsd32_olio_listio	320
250 #define	FREEBSD32_SYS_yield	321
251 				/* 322 is obsolete thr_sleep */
252 				/* 323 is obsolete thr_wakeup */
253 #define	FREEBSD32_SYS_mlockall	324
254 #define	FREEBSD32_SYS_munlockall	325
255 #define	FREEBSD32_SYS___getcwd	326
256 #define	FREEBSD32_SYS_sched_setparam	327
257 #define	FREEBSD32_SYS_sched_getparam	328
258 #define	FREEBSD32_SYS_sched_setscheduler	329
259 #define	FREEBSD32_SYS_sched_getscheduler	330
260 #define	FREEBSD32_SYS_sched_yield	331
261 #define	FREEBSD32_SYS_sched_get_priority_max	332
262 #define	FREEBSD32_SYS_sched_get_priority_min	333
263 #define	FREEBSD32_SYS_sched_rr_get_interval	334
264 #define	FREEBSD32_SYS_utrace	335
265 #define	FREEBSD32_SYS_freebsd4_freebsd32_sendfile	336
266 #define	FREEBSD32_SYS_kldsym	337
267 #define	FREEBSD32_SYS_freebsd32_jail	338
268 #define	FREEBSD32_SYS_sigprocmask	340
269 #define	FREEBSD32_SYS_sigsuspend	341
270 #define	FREEBSD32_SYS_freebsd4_freebsd32_sigaction	342
271 #define	FREEBSD32_SYS_sigpending	343
272 #define	FREEBSD32_SYS_freebsd4_freebsd32_sigreturn	344
273 #define	FREEBSD32_SYS_freebsd32_sigtimedwait	345
274 #define	FREEBSD32_SYS_freebsd32_sigwaitinfo	346
275 #define	FREEBSD32_SYS___acl_get_file	347
276 #define	FREEBSD32_SYS___acl_set_file	348
277 #define	FREEBSD32_SYS___acl_get_fd	349
278 #define	FREEBSD32_SYS___acl_set_fd	350
279 #define	FREEBSD32_SYS___acl_delete_file	351
280 #define	FREEBSD32_SYS___acl_delete_fd	352
281 #define	FREEBSD32_SYS___acl_aclcheck_file	353
282 #define	FREEBSD32_SYS___acl_aclcheck_fd	354
283 #define	FREEBSD32_SYS_extattrctl	355
284 #define	FREEBSD32_SYS_extattr_set_file	356
285 #define	FREEBSD32_SYS_extattr_get_file	357
286 #define	FREEBSD32_SYS_extattr_delete_file	358
287 #define	FREEBSD32_SYS_freebsd32_aio_waitcomplete	359
288 #define	FREEBSD32_SYS_getresuid	360
289 #define	FREEBSD32_SYS_getresgid	361
290 #define	FREEBSD32_SYS_kqueue	362
291 #define	FREEBSD32_SYS_freebsd32_kevent	363
292 #define	FREEBSD32_SYS_extattr_set_fd	371
293 #define	FREEBSD32_SYS_extattr_get_fd	372
294 #define	FREEBSD32_SYS_extattr_delete_fd	373
295 #define	FREEBSD32_SYS___setugid	374
296 #define	FREEBSD32_SYS_eaccess	376
297 #define	FREEBSD32_SYS_freebsd32_nmount	378
298 #define	FREEBSD32_SYS_kenv	390
299 #define	FREEBSD32_SYS_lchflags	391
300 #define	FREEBSD32_SYS_uuidgen	392
301 #define	FREEBSD32_SYS_freebsd32_sendfile	393
302 #define	FREEBSD32_SYS_getfsstat	395
303 #define	FREEBSD32_SYS_statfs	396
304 #define	FREEBSD32_SYS_fstatfs	397
305 #define	FREEBSD32_SYS_fhstatfs	398
306 #define	FREEBSD32_SYS_extattr_set_link	412
307 #define	FREEBSD32_SYS_extattr_get_link	413
308 #define	FREEBSD32_SYS_extattr_delete_link	414
309 #define	FREEBSD32_SYS_freebsd32_sigaction	416
310 #define	FREEBSD32_SYS_freebsd32_sigreturn	417
311 #define	FREEBSD32_SYS_freebsd32_getcontext	421
312 #define	FREEBSD32_SYS_freebsd32_setcontext	422
313 #define	FREEBSD32_SYS_freebsd32_swapcontext	423
314 #define	FREEBSD32_SYS_sigwait	429
315 #define	FREEBSD32_SYS_thr_exit	431
316 #define	FREEBSD32_SYS_thr_self	432
317 #define	FREEBSD32_SYS_thr_kill	433
318 #define	FREEBSD32_SYS_freebsd32_umtx_lock	434
319 #define	FREEBSD32_SYS_freebsd32_umtx_unlock	435
320 #define	FREEBSD32_SYS_jail_attach	436
321 #define	FREEBSD32_SYS_extattr_list_fd	437
322 #define	FREEBSD32_SYS_extattr_list_file	438
323 #define	FREEBSD32_SYS_extattr_list_link	439
324 #define	FREEBSD32_SYS_freebsd32_thr_suspend	442
325 #define	FREEBSD32_SYS_thr_wake	443
326 #define	FREEBSD32_SYS_kldunloadf	444
327 #define	FREEBSD32_SYS_audit	445
328 #define	FREEBSD32_SYS_auditon	446
329 #define	FREEBSD32_SYS_getauid	447
330 #define	FREEBSD32_SYS_setauid	448
331 #define	FREEBSD32_SYS_getaudit	449
332 #define	FREEBSD32_SYS_setaudit	450
333 #define	FREEBSD32_SYS_getaudit_addr	451
334 #define	FREEBSD32_SYS_setaudit_addr	452
335 #define	FREEBSD32_SYS_auditctl	453
336 #define	FREEBSD32_SYS_freebsd32_umtx_op	454
337 #define	FREEBSD32_SYS_freebsd32_thr_new	455
338 #define	FREEBSD32_SYS_sigqueue	456
339 #define	FREEBSD32_SYS_abort2	463
340 #define	FREEBSD32_SYS_thr_set_name	464
341 #define	FREEBSD32_SYS_freebsd32_aio_fsync	465
342 #define	FREEBSD32_SYS_rtprio_thread	466
343 #define	FREEBSD32_SYS_sctp_peeloff	471
344 #define	FREEBSD32_SYS_sctp_generic_sendmsg	472
345 #define	FREEBSD32_SYS_sctp_generic_sendmsg_iov	473
346 #define	FREEBSD32_SYS_sctp_generic_recvmsg	474
347 #define	FREEBSD32_SYS_freebsd32_pread	475
348 #define	FREEBSD32_SYS_freebsd32_pwrite	476
349 #define	FREEBSD32_SYS_freebsd32_mmap	477
350 #define	FREEBSD32_SYS_freebsd32_lseek	478
351 #define	FREEBSD32_SYS_freebsd32_truncate	479
352 #define	FREEBSD32_SYS_freebsd32_ftruncate	480
353 #define	FREEBSD32_SYS_thr_kill2	481
354 #define	FREEBSD32_SYS_shm_open	482
355 #define	FREEBSD32_SYS_shm_unlink	483
356 #define	FREEBSD32_SYS_cpuset	484
357 #define	FREEBSD32_SYS_freebsd32_cpuset_setid	485
358 #define	FREEBSD32_SYS_freebsd32_cpuset_getid	486
359 #define	FREEBSD32_SYS_freebsd32_cpuset_getaffinity	487
360 #define	FREEBSD32_SYS_freebsd32_cpuset_setaffinity	488
361 #define	FREEBSD32_SYS_faccessat	489
362 #define	FREEBSD32_SYS_fchmodat	490
363 #define	FREEBSD32_SYS_fchownat	491
364 #define	FREEBSD32_SYS_freebsd32_fexecve	492
365 #define	FREEBSD32_SYS_freebsd32_fstatat	493
366 #define	FREEBSD32_SYS_freebsd32_futimesat	494
367 #define	FREEBSD32_SYS_linkat	495
368 #define	FREEBSD32_SYS_mkdirat	496
369 #define	FREEBSD32_SYS_mkfifoat	497
370 #define	FREEBSD32_SYS_mknodat	498
371 #define	FREEBSD32_SYS_openat	499
372 #define	FREEBSD32_SYS_readlinkat	500
373 #define	FREEBSD32_SYS_renameat	501
374 #define	FREEBSD32_SYS_symlinkat	502
375 #define	FREEBSD32_SYS_unlinkat	503
376 #define	FREEBSD32_SYS_posix_openpt	504
377 #define	FREEBSD32_SYS_freebsd32_jail_get	506
378 #define	FREEBSD32_SYS_freebsd32_jail_set	507
379 #define	FREEBSD32_SYS_jail_remove	508
380 #define	FREEBSD32_SYS_closefrom	509
381 #define	FREEBSD32_SYS_freebsd32_semctl	510
382 #define	FREEBSD32_SYS_freebsd32_msgctl	511
383 #define	FREEBSD32_SYS_freebsd32_shmctl	512
384 #define	FREEBSD32_SYS_lpathconf	513
385 #define	FREEBSD32_SYS_MAXSYSCALL	514
386