xref: /freebsd/sys/sys/syscall.h (revision 927f379180cd2f3d3460d2f3506d0059ea1c6cf8)
1 /*
2  * System call numbers.
3  *
4  * DO NOT EDIT-- this file is automatically @generated.
5  */
6 
7 #define	SYS_syscall	0
8 #define	SYS_exit	1
9 #define	SYS_fork	2
10 #define	SYS_read	3
11 #define	SYS_write	4
12 #define	SYS_open	5
13 #define	SYS_close	6
14 #define	SYS_wait4	7
15 				/* 8 is old creat */
16 #define	SYS_link	9
17 #define	SYS_unlink	10
18 				/* 11 is obsolete execv */
19 #define	SYS_chdir	12
20 #define	SYS_fchdir	13
21 #define	SYS_freebsd11_mknod	14
22 #define	SYS_chmod	15
23 #define	SYS_chown	16
24 #define	SYS_break	17
25 				/* 18 is freebsd4 getfsstat */
26 				/* 19 is old lseek */
27 #define	SYS_getpid	20
28 #define	SYS_mount	21
29 #define	SYS_unmount	22
30 #define	SYS_setuid	23
31 #define	SYS_getuid	24
32 #define	SYS_geteuid	25
33 #define	SYS_ptrace	26
34 #define	SYS_recvmsg	27
35 #define	SYS_sendmsg	28
36 #define	SYS_recvfrom	29
37 #define	SYS_accept	30
38 #define	SYS_getpeername	31
39 #define	SYS_getsockname	32
40 #define	SYS_access	33
41 #define	SYS_chflags	34
42 #define	SYS_fchflags	35
43 #define	SYS_sync	36
44 #define	SYS_kill	37
45 				/* 38 is old stat */
46 #define	SYS_getppid	39
47 				/* 40 is old lstat */
48 #define	SYS_dup	41
49 #define	SYS_freebsd10_pipe	42
50 #define	SYS_getegid	43
51 #define	SYS_profil	44
52 #define	SYS_ktrace	45
53 				/* 46 is old sigaction */
54 #define	SYS_getgid	47
55 				/* 48 is old sigprocmask */
56 #define	SYS_getlogin	49
57 #define	SYS_setlogin	50
58 #define	SYS_acct	51
59 				/* 52 is old sigpending */
60 #define	SYS_sigaltstack	53
61 #define	SYS_ioctl	54
62 #define	SYS_reboot	55
63 #define	SYS_revoke	56
64 #define	SYS_symlink	57
65 #define	SYS_readlink	58
66 #define	SYS_execve	59
67 #define	SYS_umask	60
68 #define	SYS_chroot	61
69 				/* 62 is old fstat */
70 				/* 63 is old getkerninfo */
71 				/* 64 is old getpagesize */
72 #define	SYS_msync	65
73 #define	SYS_vfork	66
74 				/* 67 is obsolete vread */
75 				/* 68 is obsolete vwrite */
76 				/* 69 is obsolete sbrk */
77 				/* 70 is obsolete sstk */
78 				/* 71 is old mmap */
79 #define	SYS_freebsd11_vadvise	72
80 #define	SYS_munmap	73
81 #define	SYS_mprotect	74
82 #define	SYS_madvise	75
83 				/* 76 is obsolete vhangup */
84 				/* 77 is obsolete vlimit */
85 #define	SYS_mincore	78
86 #define	SYS_getgroups	79
87 #define	SYS_setgroups	80
88 #define	SYS_getpgrp	81
89 #define	SYS_setpgid	82
90 #define	SYS_setitimer	83
91 				/* 84 is old wait */
92 #define	SYS_swapon	85
93 #define	SYS_getitimer	86
94 				/* 87 is old gethostname */
95 				/* 88 is old sethostname */
96 #define	SYS_getdtablesize	89
97 #define	SYS_dup2	90
98 #define	SYS_fcntl	92
99 #define	SYS_select	93
100 #define	SYS_fsync	95
101 #define	SYS_setpriority	96
102 #define	SYS_socket	97
103 #define	SYS_connect	98
104 				/* 99 is old accept */
105 #define	SYS_getpriority	100
106 				/* 101 is old send */
107 				/* 102 is old recv */
108 				/* 103 is old sigreturn */
109 #define	SYS_bind	104
110 #define	SYS_setsockopt	105
111 #define	SYS_listen	106
112 				/* 107 is obsolete vtimes */
113 				/* 108 is old sigvec */
114 				/* 109 is old sigblock */
115 				/* 110 is old sigsetmask */
116 				/* 111 is old sigsuspend */
117 				/* 112 is old sigstack */
118 				/* 113 is old recvmsg */
119 				/* 114 is old sendmsg */
120 				/* 115 is obsolete vtrace */
121 #define	SYS_gettimeofday	116
122 #define	SYS_getrusage	117
123 #define	SYS_getsockopt	118
124 #define	SYS_readv	120
125 #define	SYS_writev	121
126 #define	SYS_settimeofday	122
127 #define	SYS_fchown	123
128 #define	SYS_fchmod	124
129 				/* 125 is old recvfrom */
130 #define	SYS_setreuid	126
131 #define	SYS_setregid	127
132 #define	SYS_rename	128
133 				/* 129 is old truncate */
134 				/* 130 is old ftruncate */
135 #define	SYS_flock	131
136 #define	SYS_mkfifo	132
137 #define	SYS_sendto	133
138 #define	SYS_shutdown	134
139 #define	SYS_socketpair	135
140 #define	SYS_mkdir	136
141 #define	SYS_rmdir	137
142 #define	SYS_utimes	138
143 				/* 139 is obsolete sigreturn */
144 #define	SYS_adjtime	140
145 				/* 141 is old getpeername */
146 				/* 142 is old gethostid */
147 				/* 143 is old sethostid */
148 				/* 144 is old getrlimit */
149 				/* 145 is old setrlimit */
150 				/* 146 is old killpg */
151 #define	SYS_setsid	147
152 #define	SYS_quotactl	148
153 				/* 149 is old quota */
154 				/* 150 is old getsockname */
155 #define	SYS_nlm_syscall	154
156 #define	SYS_nfssvc	155
157 				/* 156 is old getdirentries */
158 				/* 157 is freebsd4 statfs */
159 				/* 158 is freebsd4 fstatfs */
160 #define	SYS_lgetfh	160
161 #define	SYS_getfh	161
162 				/* 162 is freebsd4 getdomainname */
163 				/* 163 is freebsd4 setdomainname */
164 				/* 164 is freebsd4 uname */
165 #define	SYS_sysarch	165
166 #define	SYS_rtprio	166
167 #define	SYS_semsys	169
168 #define	SYS_msgsys	170
169 #define	SYS_shmsys	171
170 				/* 173 is freebsd6 pread */
171 				/* 174 is freebsd6 pwrite */
172 #define	SYS_setfib	175
173 #define	SYS_ntp_adjtime	176
174 #define	SYS_setgid	181
175 #define	SYS_setegid	182
176 #define	SYS_seteuid	183
177 				/* 184 is obsolete lfs_bmapv */
178 				/* 185 is obsolete lfs_markv */
179 				/* 186 is obsolete lfs_segclean */
180 				/* 187 is obsolete lfs_segwait */
181 #define	SYS_freebsd11_stat	188
182 #define	SYS_freebsd11_fstat	189
183 #define	SYS_freebsd11_lstat	190
184 #define	SYS_pathconf	191
185 #define	SYS_fpathconf	192
186 #define	SYS_getrlimit	194
187 #define	SYS_setrlimit	195
188 #define	SYS_freebsd11_getdirentries	196
189 				/* 197 is freebsd6 mmap */
190 #define	SYS___syscall	198
191 				/* 199 is freebsd6 lseek */
192 				/* 200 is freebsd6 truncate */
193 				/* 201 is freebsd6 ftruncate */
194 #define	SYS___sysctl	202
195 #define	SYS_mlock	203
196 #define	SYS_munlock	204
197 #define	SYS_undelete	205
198 #define	SYS_futimes	206
199 #define	SYS_getpgid	207
200 #define	SYS_poll	209
201 #define	SYS_freebsd7___semctl	220
202 #define	SYS_semget	221
203 #define	SYS_semop	222
204 				/* 223 is obsolete semconfig */
205 #define	SYS_freebsd7_msgctl	224
206 #define	SYS_msgget	225
207 #define	SYS_msgsnd	226
208 #define	SYS_msgrcv	227
209 #define	SYS_shmat	228
210 #define	SYS_freebsd7_shmctl	229
211 #define	SYS_shmdt	230
212 #define	SYS_shmget	231
213 #define	SYS_clock_gettime	232
214 #define	SYS_clock_settime	233
215 #define	SYS_clock_getres	234
216 #define	SYS_ktimer_create	235
217 #define	SYS_ktimer_delete	236
218 #define	SYS_ktimer_settime	237
219 #define	SYS_ktimer_gettime	238
220 #define	SYS_ktimer_getoverrun	239
221 #define	SYS_nanosleep	240
222 #define	SYS_ffclock_getcounter	241
223 #define	SYS_ffclock_setestimate	242
224 #define	SYS_ffclock_getestimate	243
225 #define	SYS_clock_nanosleep	244
226 #define	SYS_clock_getcpuclockid2	247
227 #define	SYS_ntp_gettime	248
228 #define	SYS_minherit	250
229 #define	SYS_rfork	251
230 				/* 252 is obsolete openbsd_poll */
231 #define	SYS_issetugid	253
232 #define	SYS_lchown	254
233 #define	SYS_aio_read	255
234 #define	SYS_aio_write	256
235 #define	SYS_lio_listio	257
236 #define	SYS_freebsd11_getdents	272
237 #define	SYS_lchmod	274
238 				/* 275 is obsolete netbsd_lchown */
239 #define	SYS_lutimes	276
240 				/* 277 is obsolete netbsd_msync */
241 #define	SYS_freebsd11_nstat	278
242 #define	SYS_freebsd11_nfstat	279
243 #define	SYS_freebsd11_nlstat	280
244 #define	SYS_preadv	289
245 #define	SYS_pwritev	290
246 				/* 297 is freebsd4 fhstatfs */
247 #define	SYS_fhopen	298
248 #define	SYS_freebsd11_fhstat	299
249 #define	SYS_modnext	300
250 #define	SYS_modstat	301
251 #define	SYS_modfnext	302
252 #define	SYS_modfind	303
253 #define	SYS_kldload	304
254 #define	SYS_kldunload	305
255 #define	SYS_kldfind	306
256 #define	SYS_kldnext	307
257 #define	SYS_kldstat	308
258 #define	SYS_kldfirstmod	309
259 #define	SYS_getsid	310
260 #define	SYS_setresuid	311
261 #define	SYS_setresgid	312
262 				/* 313 is obsolete signanosleep */
263 #define	SYS_aio_return	314
264 #define	SYS_aio_suspend	315
265 #define	SYS_aio_cancel	316
266 #define	SYS_aio_error	317
267 				/* 318 is freebsd6 aio_read */
268 				/* 319 is freebsd6 aio_write */
269 				/* 320 is freebsd6 lio_listio */
270 #define	SYS_yield	321
271 				/* 322 is obsolete thr_sleep */
272 				/* 323 is obsolete thr_wakeup */
273 #define	SYS_mlockall	324
274 #define	SYS_munlockall	325
275 #define	SYS___getcwd	326
276 #define	SYS_sched_setparam	327
277 #define	SYS_sched_getparam	328
278 #define	SYS_sched_setscheduler	329
279 #define	SYS_sched_getscheduler	330
280 #define	SYS_sched_yield	331
281 #define	SYS_sched_get_priority_max	332
282 #define	SYS_sched_get_priority_min	333
283 #define	SYS_sched_rr_get_interval	334
284 #define	SYS_utrace	335
285 				/* 336 is freebsd4 sendfile */
286 #define	SYS_kldsym	337
287 #define	SYS_jail	338
288 #define	SYS_nnpfs_syscall	339
289 #define	SYS_sigprocmask	340
290 #define	SYS_sigsuspend	341
291 				/* 342 is freebsd4 sigaction */
292 #define	SYS_sigpending	343
293 				/* 344 is freebsd4 sigreturn */
294 #define	SYS_sigtimedwait	345
295 #define	SYS_sigwaitinfo	346
296 #define	SYS___acl_get_file	347
297 #define	SYS___acl_set_file	348
298 #define	SYS___acl_get_fd	349
299 #define	SYS___acl_set_fd	350
300 #define	SYS___acl_delete_file	351
301 #define	SYS___acl_delete_fd	352
302 #define	SYS___acl_aclcheck_file	353
303 #define	SYS___acl_aclcheck_fd	354
304 #define	SYS_extattrctl	355
305 #define	SYS_extattr_set_file	356
306 #define	SYS_extattr_get_file	357
307 #define	SYS_extattr_delete_file	358
308 #define	SYS_aio_waitcomplete	359
309 #define	SYS_getresuid	360
310 #define	SYS_getresgid	361
311 #define	SYS_kqueue	362
312 #define	SYS_freebsd11_kevent	363
313 				/* 364 is obsolete __cap_get_proc */
314 				/* 365 is obsolete __cap_set_proc */
315 				/* 366 is obsolete __cap_get_fd */
316 				/* 367 is obsolete __cap_get_file */
317 				/* 368 is obsolete __cap_set_fd */
318 				/* 369 is obsolete __cap_set_file */
319 #define	SYS_extattr_set_fd	371
320 #define	SYS_extattr_get_fd	372
321 #define	SYS_extattr_delete_fd	373
322 #define	SYS___setugid	374
323 				/* 375 is obsolete nfsclnt */
324 #define	SYS_eaccess	376
325 #define	SYS_afs3_syscall	377
326 #define	SYS_nmount	378
327 				/* 379 is obsolete kse_exit */
328 				/* 380 is obsolete kse_wakeup */
329 				/* 381 is obsolete kse_create */
330 				/* 382 is obsolete kse_thr_interrupt */
331 				/* 383 is obsolete kse_release */
332 #define	SYS___mac_get_proc	384
333 #define	SYS___mac_set_proc	385
334 #define	SYS___mac_get_fd	386
335 #define	SYS___mac_get_file	387
336 #define	SYS___mac_set_fd	388
337 #define	SYS___mac_set_file	389
338 #define	SYS_kenv	390
339 #define	SYS_lchflags	391
340 #define	SYS_uuidgen	392
341 #define	SYS_sendfile	393
342 #define	SYS_mac_syscall	394
343 #define	SYS_freebsd11_getfsstat	395
344 #define	SYS_freebsd11_statfs	396
345 #define	SYS_freebsd11_fstatfs	397
346 #define	SYS_freebsd11_fhstatfs	398
347 #define	SYS_ksem_close	400
348 #define	SYS_ksem_post	401
349 #define	SYS_ksem_wait	402
350 #define	SYS_ksem_trywait	403
351 #define	SYS_ksem_init	404
352 #define	SYS_ksem_open	405
353 #define	SYS_ksem_unlink	406
354 #define	SYS_ksem_getvalue	407
355 #define	SYS_ksem_destroy	408
356 #define	SYS___mac_get_pid	409
357 #define	SYS___mac_get_link	410
358 #define	SYS___mac_set_link	411
359 #define	SYS_extattr_set_link	412
360 #define	SYS_extattr_get_link	413
361 #define	SYS_extattr_delete_link	414
362 #define	SYS___mac_execve	415
363 #define	SYS_sigaction	416
364 #define	SYS_sigreturn	417
365 #define	SYS_getcontext	421
366 #define	SYS_setcontext	422
367 #define	SYS_swapcontext	423
368 #define	SYS_freebsd13_swapoff	424
369 #define	SYS___acl_get_link	425
370 #define	SYS___acl_set_link	426
371 #define	SYS___acl_delete_link	427
372 #define	SYS___acl_aclcheck_link	428
373 #define	SYS_sigwait	429
374 #define	SYS_thr_create	430
375 #define	SYS_thr_exit	431
376 #define	SYS_thr_self	432
377 #define	SYS_thr_kill	433
378 #define	SYS_freebsd10__umtx_lock	434
379 #define	SYS_freebsd10__umtx_unlock	435
380 #define	SYS_jail_attach	436
381 #define	SYS_extattr_list_fd	437
382 #define	SYS_extattr_list_file	438
383 #define	SYS_extattr_list_link	439
384 				/* 440 is obsolete kse_switchin */
385 #define	SYS_ksem_timedwait	441
386 #define	SYS_thr_suspend	442
387 #define	SYS_thr_wake	443
388 #define	SYS_kldunloadf	444
389 #define	SYS_audit	445
390 #define	SYS_auditon	446
391 #define	SYS_getauid	447
392 #define	SYS_setauid	448
393 #define	SYS_getaudit	449
394 #define	SYS_setaudit	450
395 #define	SYS_getaudit_addr	451
396 #define	SYS_setaudit_addr	452
397 #define	SYS_auditctl	453
398 #define	SYS__umtx_op	454
399 #define	SYS_thr_new	455
400 #define	SYS_sigqueue	456
401 #define	SYS_kmq_open	457
402 #define	SYS_kmq_setattr	458
403 #define	SYS_kmq_timedreceive	459
404 #define	SYS_kmq_timedsend	460
405 #define	SYS_kmq_notify	461
406 #define	SYS_kmq_unlink	462
407 #define	SYS_abort2	463
408 #define	SYS_thr_set_name	464
409 #define	SYS_aio_fsync	465
410 #define	SYS_rtprio_thread	466
411 #define	SYS_sctp_peeloff	471
412 #define	SYS_sctp_generic_sendmsg	472
413 #define	SYS_sctp_generic_sendmsg_iov	473
414 #define	SYS_sctp_generic_recvmsg	474
415 #define	SYS_pread	475
416 #define	SYS_pwrite	476
417 #define	SYS_mmap	477
418 #define	SYS_lseek	478
419 #define	SYS_truncate	479
420 #define	SYS_ftruncate	480
421 #define	SYS_thr_kill2	481
422 #define	SYS_freebsd12_shm_open	482
423 #define	SYS_shm_unlink	483
424 #define	SYS_cpuset	484
425 #define	SYS_cpuset_setid	485
426 #define	SYS_cpuset_getid	486
427 #define	SYS_cpuset_getaffinity	487
428 #define	SYS_cpuset_setaffinity	488
429 #define	SYS_faccessat	489
430 #define	SYS_fchmodat	490
431 #define	SYS_fchownat	491
432 #define	SYS_fexecve	492
433 #define	SYS_freebsd11_fstatat	493
434 #define	SYS_futimesat	494
435 #define	SYS_linkat	495
436 #define	SYS_mkdirat	496
437 #define	SYS_mkfifoat	497
438 #define	SYS_freebsd11_mknodat	498
439 #define	SYS_openat	499
440 #define	SYS_readlinkat	500
441 #define	SYS_renameat	501
442 #define	SYS_symlinkat	502
443 #define	SYS_unlinkat	503
444 #define	SYS_posix_openpt	504
445 #define	SYS_gssd_syscall	505
446 #define	SYS_jail_get	506
447 #define	SYS_jail_set	507
448 #define	SYS_jail_remove	508
449 #define	SYS_freebsd12_closefrom	509
450 #define	SYS___semctl	510
451 #define	SYS_msgctl	511
452 #define	SYS_shmctl	512
453 #define	SYS_lpathconf	513
454 				/* 514 is obsolete cap_new */
455 #define	SYS___cap_rights_get	515
456 #define	SYS_cap_enter	516
457 #define	SYS_cap_getmode	517
458 #define	SYS_pdfork	518
459 #define	SYS_pdkill	519
460 #define	SYS_pdgetpid	520
461 #define	SYS_pselect	522
462 #define	SYS_getloginclass	523
463 #define	SYS_setloginclass	524
464 #define	SYS_rctl_get_racct	525
465 #define	SYS_rctl_get_rules	526
466 #define	SYS_rctl_get_limits	527
467 #define	SYS_rctl_add_rule	528
468 #define	SYS_rctl_remove_rule	529
469 #define	SYS_posix_fallocate	530
470 #define	SYS_posix_fadvise	531
471 #define	SYS_wait6	532
472 #define	SYS_cap_rights_limit	533
473 #define	SYS_cap_ioctls_limit	534
474 #define	SYS_cap_ioctls_get	535
475 #define	SYS_cap_fcntls_limit	536
476 #define	SYS_cap_fcntls_get	537
477 #define	SYS_bindat	538
478 #define	SYS_connectat	539
479 #define	SYS_chflagsat	540
480 #define	SYS_accept4	541
481 #define	SYS_pipe2	542
482 #define	SYS_aio_mlock	543
483 #define	SYS_procctl	544
484 #define	SYS_ppoll	545
485 #define	SYS_futimens	546
486 #define	SYS_utimensat	547
487 				/* 548 is obsolete numa_getaffinity */
488 				/* 549 is obsolete numa_setaffinity */
489 #define	SYS_fdatasync	550
490 #define	SYS_fstat	551
491 #define	SYS_fstatat	552
492 #define	SYS_fhstat	553
493 #define	SYS_getdirentries	554
494 #define	SYS_statfs	555
495 #define	SYS_fstatfs	556
496 #define	SYS_getfsstat	557
497 #define	SYS_fhstatfs	558
498 #define	SYS_mknodat	559
499 #define	SYS_kevent	560
500 #define	SYS_cpuset_getdomain	561
501 #define	SYS_cpuset_setdomain	562
502 #define	SYS_getrandom	563
503 #define	SYS_getfhat	564
504 #define	SYS_fhlink	565
505 #define	SYS_fhlinkat	566
506 #define	SYS_fhreadlink	567
507 #define	SYS_funlinkat	568
508 #define	SYS_copy_file_range	569
509 #define	SYS___sysctlbyname	570
510 #define	SYS_shm_open2	571
511 #define	SYS_shm_rename	572
512 #define	SYS_sigfastblock	573
513 #define	SYS___realpathat	574
514 #define	SYS_close_range	575
515 #define	SYS_rpctls_syscall	576
516 #define	SYS___specialfd	577
517 #define	SYS_aio_writev	578
518 #define	SYS_aio_readv	579
519 #define	SYS_fspacectl	580
520 #define	SYS_sched_getcpu	581
521 #define	SYS_swapoff	582
522 #define	SYS_kqueuex	583
523 #define	SYS_membarrier	584
524 #define	SYS_timerfd_create	585
525 #define	SYS_timerfd_gettime	586
526 #define	SYS_timerfd_settime	587
527 #define	SYS_kcmp	588
528 #define	SYS_getrlimitusage	589
529 #define	SYS_MAXSYSCALL	590
530