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