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