vadvise depend of COMPAT_43.
[dragonfly.git] / sys / sys / syscall.h
CommitLineData
984263bc
MD
1/*
2 * System call numbers.
3 *
4 * DO NOT EDIT-- this file is automatically generated.
984263bc
MD
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_mknod 14
22#define SYS_chmod 15
23#define SYS_chown 16
24#define SYS_break 17
25#define SYS_getfsstat 18
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_pipe 42
50#define SYS_getegid 43
51#define SYS_profil 44
52#define SYS_ktrace 45
65957d54 53 /* 46 is obsolete freebsd3_sigaction */
984263bc 54#define SYS_getgid 47
65957d54 55 /* 48 is obsolete freebsd3_sigprocmask */
984263bc
MD
56#define SYS_getlogin 49
57#define SYS_setlogin 50
58#define SYS_acct 51
65957d54 59 /* 52 is obsolete freebsd3_sigpending */
984263bc
MD
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#define SYS_sbrk 69
77#define SYS_sstk 70
78 /* 71 is old mmap */
7bcb63e3 79 /* 72 is old vadvise */
984263bc
MD
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 */
65957d54 108 /* 103 is obsolete freebsd3_sigreturn */
984263bc
MD
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 */
65957d54 116 /* 111 is obsolete freebsd3_sigsuspend */
984263bc
MD
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 4.2 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_nfssvc 155
156 /* 156 is old getdirentries */
157#define SYS_statfs 157
158#define SYS_fstatfs 158
159#define SYS_getfh 161
160#define SYS_getdomainname 162
161#define SYS_setdomainname 163
162#define SYS_uname 164
163#define SYS_sysarch 165
164#define SYS_rtprio 166
165#define SYS_semsys 169
166#define SYS_msgsys 170
167#define SYS_shmsys 171
b09fd398
MD
168#define SYS_extpread 173
169#define SYS_extpwrite 174
984263bc
MD
170#define SYS_ntp_adjtime 176
171#define SYS_setgid 181
172#define SYS_setegid 182
173#define SYS_seteuid 183
f1787048
JS
174 /* 188 is old stat */
175 /* 189 is old fstat */
176 /* 190 is old lstat */
984263bc
MD
177#define SYS_pathconf 191
178#define SYS_fpathconf 192
179#define SYS_getrlimit 194
180#define SYS_setrlimit 195
01f31ab3 181 /* 196 is old getdirentries */
984263bc
MD
182#define SYS_mmap 197
183#define SYS___syscall 198
184#define SYS_lseek 199
185#define SYS_truncate 200
186#define SYS_ftruncate 201
187#define SYS___sysctl 202
188#define SYS_mlock 203
189#define SYS_munlock 204
190#define SYS_undelete 205
191#define SYS_futimes 206
192#define SYS_getpgid 207
193#define SYS_poll 209
194#define SYS___semctl 220
195#define SYS_semget 221
196#define SYS_semop 222
197#define SYS_msgctl 224
198#define SYS_msgget 225
199#define SYS_msgsnd 226
200#define SYS_msgrcv 227
201#define SYS_shmat 228
202#define SYS_shmctl 229
203#define SYS_shmdt 230
204#define SYS_shmget 231
205#define SYS_clock_gettime 232
206#define SYS_clock_settime 233
207#define SYS_clock_getres 234
208#define SYS_nanosleep 240
209#define SYS_minherit 250
210#define SYS_rfork 251
211#define SYS_openbsd_poll 252
212#define SYS_issetugid 253
213#define SYS_lchown 254
01f31ab3 214 /* 272 is old getdents */
984263bc
MD
215#define SYS_lchmod 274
216#define SYS_netbsd_lchown 275
217#define SYS_lutimes 276
218#define SYS_netbsd_msync 277
d06e0be9
JS
219 /* 278 is obsolete { */
220 /* 279 is obsolete { */
221 /* 280 is obsolete { */
b09fd398
MD
222#define SYS_extpreadv 289
223#define SYS_extpwritev 290
984263bc
MD
224#define SYS_fhstatfs 297
225#define SYS_fhopen 298
f1787048 226 /* 299 is old fhstat */
984263bc
MD
227#define SYS_modnext 300
228#define SYS_modstat 301
229#define SYS_modfnext 302
230#define SYS_modfind 303
231#define SYS_kldload 304
232#define SYS_kldunload 305
233#define SYS_kldfind 306
234#define SYS_kldnext 307
235#define SYS_kldstat 308
236#define SYS_kldfirstmod 309
237#define SYS_getsid 310
238#define SYS_setresuid 311
239#define SYS_setresgid 312
240 /* 313 is obsolete signanosleep */
241#define SYS_aio_return 314
242#define SYS_aio_suspend 315
243#define SYS_aio_cancel 316
244#define SYS_aio_error 317
245#define SYS_aio_read 318
246#define SYS_aio_write 319
247#define SYS_lio_listio 320
248#define SYS_yield 321
984263bc
MD
249#define SYS_mlockall 324
250#define SYS_munlockall 325
251#define SYS___getcwd 326
252#define SYS_sched_setparam 327
253#define SYS_sched_getparam 328
254#define SYS_sched_setscheduler 329
255#define SYS_sched_getscheduler 330
256#define SYS_sched_yield 331
257#define SYS_sched_get_priority_max 332
258#define SYS_sched_get_priority_min 333
259#define SYS_sched_rr_get_interval 334
260#define SYS_utrace 335
75a872f8 261 /* 336 is obsolete freebsd4_sendfile */
984263bc
MD
262#define SYS_kldsym 337
263#define SYS_jail 338
264#define SYS_sigprocmask 340
265#define SYS_sigsuspend 341
266#define SYS_sigaction 342
267#define SYS_sigpending 343
268#define SYS_sigreturn 344
3a59f0f7
DX
269#define SYS_sigtimedwait 345
270#define SYS_sigwaitinfo 346
984263bc
MD
271#define SYS___acl_get_file 347
272#define SYS___acl_set_file 348
273#define SYS___acl_get_fd 349
274#define SYS___acl_set_fd 350
275#define SYS___acl_delete_file 351
276#define SYS___acl_delete_fd 352
277#define SYS___acl_aclcheck_file 353
278#define SYS___acl_aclcheck_fd 354
279#define SYS_extattrctl 355
280#define SYS_extattr_set_file 356
281#define SYS_extattr_get_file 357
282#define SYS_extattr_delete_file 358
283#define SYS_aio_waitcomplete 359
284#define SYS_getresuid 360
285#define SYS_getresgid 361
286#define SYS_kqueue 362
287#define SYS_kevent 363
78812139 288#define SYS_sctp_peeloff 364
91fdc001 289#define SYS_lchflags 391
2a0783db 290#define SYS_uuidgen 392
984263bc 291#define SYS_sendfile 393
98a7f915
MD
292#define SYS_varsym_set 450
293#define SYS_varsym_get 451
0a004aa2 294#define SYS_varsym_list 452
a722be49
MD
295#define SYS_upc_register 453
296#define SYS_upc_control 454
1bc8e992
MD
297#define SYS_caps_sys_service 455
298#define SYS_caps_sys_client 456
299#define SYS_caps_sys_close 457
300#define SYS_caps_sys_put 458
301#define SYS_caps_sys_reply 459
302#define SYS_caps_sys_get 460
303#define SYS_caps_sys_wait 461
304#define SYS_caps_sys_abort 462
e30f9e2c
MD
305#define SYS_caps_sys_getgen 463
306#define SYS_caps_sys_setgen 464
29802dbb
MD
307#define SYS_exec_sys_register 465
308#define SYS_exec_sys_unregister 466
0ba6fbbf 309#define SYS_sys_checkpoint 467
949ecb9b 310#define SYS_mountctl 468
da5fb9ef
MD
311#define SYS_umtx_sleep 469
312#define SYS_umtx_wakeup 470
b9fca94d 313#define SYS_jail_attach 471
ba491dfb
MD
314#define SYS_set_tls_area 472
315#define SYS_get_tls_area 473
ae5995b9 316#define SYS_closefrom 474
f1787048
JS
317#define SYS_stat 475
318#define SYS_fstat 476
319#define SYS_lstat 477
320#define SYS_fhstat 478
01f31ab3
JS
321#define SYS_getdirentries 479
322#define SYS_getdents 480
cb7f4ab1 323#define SYS_usched_set 481
b09fd398
MD
324#define SYS_extaccept 482
325#define SYS_extconnect 483
e143cb06 326#define SYS_syslink 484
d3313941
MD
327#define SYS_mcontrol 485
328#define SYS_vmspace_create 486
329#define SYS_vmspace_destroy 487
330#define SYS_vmspace_ctl 488
331#define SYS_vmspace_mmap 489
332#define SYS_vmspace_munmap 490
333#define SYS_vmspace_mcontrol 491
021a4ed4
MD
334#define SYS_vmspace_pread 492
335#define SYS_vmspace_pwrite 493
a704dbd9 336#define SYS_extexit 494
a0a27cfb 337#define SYS_lwp_create 495
c2e552b5
SS
338#define SYS_lwp_gettid 496
339#define SYS_lwp_kill 497
649d3bd2 340#define SYS_lwp_rtprio 498
ae7cb1b5 341#define SYS_pselect 499
d9fad06e
MD
342#define SYS_statvfs 500
343#define SYS_fstatvfs 501
344#define SYS_fhstatvfs 502
00fe9d48 345#define SYS_getvfsstat 503
83a11774 346#define SYS_openat 504
e101a3f4 347#define SYS_fstatat 505
8cde3c79 348#define SYS_fchmodat 506
32013176 349#define SYS_fchownat 507
3a6d8629 350#define SYS_unlinkat 508
18cf460b 351#define SYS_faccessat 509
0b96c93b
SK
352#define SYS_mq_open 510
353#define SYS_mq_close 511
354#define SYS_mq_unlink 512
355#define SYS_mq_getattr 513
356#define SYS_mq_setattr 514
357#define SYS_mq_notify 515
358#define SYS_mq_send 516
359#define SYS_mq_receive 517
360#define SYS_mq_timedsend 518
361#define SYS_mq_timedreceive 519
362#define SYS_MAXSYSCALL 520