Project

General

Profile

Statistics
| Revision:

root / lab4 / .minix-src / include / sys / syscall.h @ 13

History | View | Annotate | Download (45.7 KB)

1 13 up20180614
/* $NetBSD: syscall.h,v 1.285 2015/10/10 03:30:17 pgoyette Exp $ */
2
3
/*
4
 * System call numbers.
5
 *
6
 * DO NOT EDIT-- this file is automatically generated.
7
 * created from        NetBSD: syscalls.master,v 1.280 2015/10/10 03:27:30 pgoyette Exp
8
 */
9
10
#ifndef _SYS_SYSCALL_H_
11
#define        _SYS_SYSCALL_H_
12
13
#define        SYS_MAXSYSARGS        8
14
15
/* syscall: "syscall" ret: "int" args: "int" "..." */
16
#define        SYS_syscall        0
17
18
/* syscall: "exit" ret: "void" args: "int" */
19
#define        SYS_exit        1
20
21
/* syscall: "fork" ret: "int" args: */
22
#define        SYS_fork        2
23
24
/* syscall: "read" ret: "ssize_t" args: "int" "void *" "size_t" */
25
#define        SYS_read        3
26
27
/* syscall: "write" ret: "ssize_t" args: "int" "const void *" "size_t" */
28
#define        SYS_write        4
29
30
/* syscall: "open" ret: "int" args: "const char *" "int" "..." */
31
#define        SYS_open        5
32
33
/* syscall: "close" ret: "int" args: "int" */
34
#define        SYS_close        6
35
36
/* syscall: "compat_50_wait4" ret: "int" args: "pid_t" "int *" "int" "struct rusage50 *" */
37
#define        SYS_compat_50_wait4        7
38
39
/* syscall: "compat_43_ocreat" ret: "int" args: "const char *" "mode_t" */
40
#define        SYS_compat_43_ocreat        8
41
42
/* syscall: "link" ret: "int" args: "const char *" "const char *" */
43
#define        SYS_link        9
44
45
/* syscall: "unlink" ret: "int" args: "const char *" */
46
#define        SYS_unlink        10
47
48
                                /* 11 is obsolete execv */
49
/* syscall: "chdir" ret: "int" args: "const char *" */
50
#define        SYS_chdir        12
51
52
/* syscall: "fchdir" ret: "int" args: "int" */
53
#define        SYS_fchdir        13
54
55
/* syscall: "compat_50_mknod" ret: "int" args: "const char *" "mode_t" "uint32_t" */
56
#define        SYS_compat_50_mknod        14
57
58
/* syscall: "chmod" ret: "int" args: "const char *" "mode_t" */
59
#define        SYS_chmod        15
60
61
/* syscall: "chown" ret: "int" args: "const char *" "uid_t" "gid_t" */
62
#define        SYS_chown        16
63
64
/* syscall: "break" ret: "int" args: "char *" */
65
#define        SYS_break        17
66
67
/* syscall: "compat_20_getfsstat" ret: "int" args: "struct statfs12 *" "long" "int" */
68
#define        SYS_compat_20_getfsstat        18
69
70
/* syscall: "compat_43_olseek" ret: "long" args: "int" "long" "int" */
71
#define        SYS_compat_43_olseek        19
72
73
/* syscall: "getpid" ret: "pid_t" args: */
74
#define        SYS_getpid        20
75
76
/* syscall: "compat_40_mount" ret: "int" args: "const char *" "const char *" "int" "void *" */
77
#define        SYS_compat_40_mount        21
78
79
/* syscall: "unmount" ret: "int" args: "const char *" "int" */
80
#define        SYS_unmount        22
81
82
/* syscall: "setuid" ret: "int" args: "uid_t" */
83
#define        SYS_setuid        23
84
85
/* syscall: "getuid" ret: "uid_t" args: */
86
#define        SYS_getuid        24
87
88
/* syscall: "geteuid" ret: "uid_t" args: */
89
#define        SYS_geteuid        25
90
91
/* syscall: "ptrace" ret: "int" args: "int" "pid_t" "void *" "int" */
92
#define        SYS_ptrace        26
93
94
/* syscall: "recvmsg" ret: "ssize_t" args: "int" "struct msghdr *" "int" */
95
#define        SYS_recvmsg        27
96
97
/* syscall: "sendmsg" ret: "ssize_t" args: "int" "const struct msghdr *" "int" */
98
#define        SYS_sendmsg        28
99
100
/* syscall: "recvfrom" ret: "ssize_t" args: "int" "void *" "size_t" "int" "struct sockaddr *" "socklen_t *" */
101
#define        SYS_recvfrom        29
102
103
/* syscall: "accept" ret: "int" args: "int" "struct sockaddr *" "socklen_t *" */
104
#define        SYS_accept        30
105
106
/* syscall: "getpeername" ret: "int" args: "int" "struct sockaddr *" "socklen_t *" */
107
#define        SYS_getpeername        31
108
109
/* syscall: "getsockname" ret: "int" args: "int" "struct sockaddr *" "socklen_t *" */
110
#define        SYS_getsockname        32
111
112
/* syscall: "access" ret: "int" args: "const char *" "int" */
113
#define        SYS_access        33
114
115
/* syscall: "chflags" ret: "int" args: "const char *" "u_long" */
116
#define        SYS_chflags        34
117
118
/* syscall: "fchflags" ret: "int" args: "int" "u_long" */
119
#define        SYS_fchflags        35
120
121
/* syscall: "sync" ret: "void" args: */
122
#define        SYS_sync        36
123
124
/* syscall: "kill" ret: "int" args: "pid_t" "int" */
125
#define        SYS_kill        37
126
127
/* syscall: "compat_43_stat43" ret: "int" args: "const char *" "struct stat43 *" */
128
#define        SYS_compat_43_stat43        38
129
130
/* syscall: "getppid" ret: "pid_t" args: */
131
#define        SYS_getppid        39
132
133
/* syscall: "compat_43_lstat43" ret: "int" args: "const char *" "struct stat43 *" */
134
#define        SYS_compat_43_lstat43        40
135
136
/* syscall: "dup" ret: "int" args: "int" */
137
#define        SYS_dup        41
138
139
/* syscall: "pipe" ret: "int" args: */
140
#define        SYS_pipe        42
141
142
/* syscall: "getegid" ret: "gid_t" args: */
143
#define        SYS_getegid        43
144
145
/* syscall: "profil" ret: "int" args: "char *" "size_t" "u_long" "u_int" */
146
#define        SYS_profil        44
147
148
/* syscall: "ktrace" ret: "int" args: "const char *" "int" "int" "pid_t" */
149
#define        SYS_ktrace        45
150
151
/* syscall: "compat_13_sigaction13" ret: "int" args: "int" "const struct sigaction13 *" "struct sigaction13 *" */
152
#define        SYS_compat_13_sigaction13        46
153
154
/* syscall: "getgid" ret: "gid_t" args: */
155
#define        SYS_getgid        47
156
157
/* syscall: "compat_13_sigprocmask13" ret: "int" args: "int" "int" */
158
#define        SYS_compat_13_sigprocmask13        48
159
160
/* syscall: "__getlogin" ret: "int" args: "char *" "size_t" */
161
#define        SYS___getlogin        49
162
163
/* syscall: "__setlogin" ret: "int" args: "const char *" */
164
#define        SYS___setlogin        50
165
166
/* syscall: "acct" ret: "int" args: "const char *" */
167
#define        SYS_acct        51
168
169
/* syscall: "compat_13_sigpending13" ret: "int" args: */
170
#define        SYS_compat_13_sigpending13        52
171
172
/* syscall: "compat_13_sigaltstack13" ret: "int" args: "const struct sigaltstack13 *" "struct sigaltstack13 *" */
173
#define        SYS_compat_13_sigaltstack13        53
174
175
/* syscall: "ioctl" ret: "int" args: "int" "u_long" "..." */
176
#define        SYS_ioctl        54
177
178
/* syscall: "compat_12_oreboot" ret: "int" args: "int" */
179
#define        SYS_compat_12_oreboot        55
180
181
/* syscall: "revoke" ret: "int" args: "const char *" */
182
#define        SYS_revoke        56
183
184
/* syscall: "symlink" ret: "int" args: "const char *" "const char *" */
185
#define        SYS_symlink        57
186
187
/* syscall: "readlink" ret: "ssize_t" args: "const char *" "char *" "size_t" */
188
#define        SYS_readlink        58
189
190
/* syscall: "execve" ret: "int" args: "const char *" "char *const *" "char *const *" */
191
#define        SYS_execve        59
192
193
/* syscall: "umask" ret: "mode_t" args: "mode_t" */
194
#define        SYS_umask        60
195
196
/* syscall: "chroot" ret: "int" args: "const char *" */
197
#define        SYS_chroot        61
198
199
/* syscall: "compat_43_fstat43" ret: "int" args: "int" "struct stat43 *" */
200
#define        SYS_compat_43_fstat43        62
201
202
/* syscall: "compat_43_ogetkerninfo" ret: "int" args: "int" "char *" "int *" "int" */
203
#define        SYS_compat_43_ogetkerninfo        63
204
205
/* syscall: "compat_43_ogetpagesize" ret: "int" args: */
206
#define        SYS_compat_43_ogetpagesize        64
207
208
/* syscall: "compat_12_msync" ret: "int" args: "void *" "size_t" */
209
#define        SYS_compat_12_msync        65
210
211
/* syscall: "vfork" ret: "int" args: */
212
#define        SYS_vfork        66
213
214
                                /* 67 is obsolete vread */
215
                                /* 68 is obsolete vwrite */
216
/* syscall: "sbrk" ret: "int" args: "intptr_t" */
217
#define        SYS_sbrk        69
218
219
/* syscall: "sstk" ret: "int" args: "int" */
220
#define        SYS_sstk        70
221
222
/* syscall: "compat_43_ommap" ret: "int" args: "void *" "size_t" "int" "int" "int" "long" */
223
#define        SYS_compat_43_ommap        71
224
225
/* syscall: "vadvise" ret: "int" args: "int" */
226
#define        SYS_vadvise        72
227
228
/* syscall: "munmap" ret: "int" args: "void *" "size_t" */
229
#define        SYS_munmap        73
230
231
/* syscall: "mprotect" ret: "int" args: "void *" "size_t" "int" */
232
#define        SYS_mprotect        74
233
234
/* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */
235
#define        SYS_madvise        75
236
237
                                /* 76 is obsolete vhangup */
238
                                /* 77 is obsolete vlimit */
239
/* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */
240
#define        SYS_mincore        78
241
242
/* syscall: "getgroups" ret: "int" args: "int" "gid_t *" */
243
#define        SYS_getgroups        79
244
245
/* syscall: "setgroups" ret: "int" args: "int" "const gid_t *" */
246
#define        SYS_setgroups        80
247
248
/* syscall: "getpgrp" ret: "int" args: */
249
#define        SYS_getpgrp        81
250
251
/* syscall: "setpgid" ret: "int" args: "pid_t" "pid_t" */
252
#define        SYS_setpgid        82
253
254
/* syscall: "compat_50_setitimer" ret: "int" args: "int" "const struct itimerval50 *" "struct itimerval50 *" */
255
#define        SYS_compat_50_setitimer        83
256
257
/* syscall: "compat_43_owait" ret: "int" args: */
258
#define        SYS_compat_43_owait        84
259
260
/* syscall: "compat_12_oswapon" ret: "int" args: "const char *" */
261
#define        SYS_compat_12_oswapon        85
262
263
/* syscall: "compat_50_getitimer" ret: "int" args: "int" "struct itimerval50 *" */
264
#define        SYS_compat_50_getitimer        86
265
266
/* syscall: "compat_43_ogethostname" ret: "int" args: "char *" "u_int" */
267
#define        SYS_compat_43_ogethostname        87
268
269
/* syscall: "compat_43_osethostname" ret: "int" args: "char *" "u_int" */
270
#define        SYS_compat_43_osethostname        88
271
272
/* syscall: "compat_43_ogetdtablesize" ret: "int" args: */
273
#define        SYS_compat_43_ogetdtablesize        89
274
275
/* syscall: "dup2" ret: "int" args: "int" "int" */
276
#define        SYS_dup2        90
277
278
/* syscall: "fcntl" ret: "int" args: "int" "int" "..." */
279
#define        SYS_fcntl        92
280
281
/* syscall: "compat_50_select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval50 *" */
282
#define        SYS_compat_50_select        93
283
284
/* syscall: "fsync" ret: "int" args: "int" */
285
#define        SYS_fsync        95
286
287
/* syscall: "setpriority" ret: "int" args: "int" "id_t" "int" */
288
#define        SYS_setpriority        96
289
290
/* syscall: "compat_30_socket" ret: "int" args: "int" "int" "int" */
291
#define        SYS_compat_30_socket        97
292
293
/* syscall: "connect" ret: "int" args: "int" "const struct sockaddr *" "socklen_t" */
294
#define        SYS_connect        98
295
296
/* syscall: "compat_43_oaccept" ret: "int" args: "int" "void *" "socklen_t *" */
297
#define        SYS_compat_43_oaccept        99
298
299
/* syscall: "getpriority" ret: "int" args: "int" "id_t" */
300
#define        SYS_getpriority        100
301
302
/* syscall: "compat_43_osend" ret: "int" args: "int" "void *" "int" "int" */
303
#define        SYS_compat_43_osend        101
304
305
/* syscall: "compat_43_orecv" ret: "int" args: "int" "void *" "int" "int" */
306
#define        SYS_compat_43_orecv        102
307
308
/* syscall: "compat_13_sigreturn13" ret: "int" args: "struct sigcontext13 *" */
309
#define        SYS_compat_13_sigreturn13        103
310
311
/* syscall: "bind" ret: "int" args: "int" "const struct sockaddr *" "socklen_t" */
312
#define        SYS_bind        104
313
314
/* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "const void *" "socklen_t" */
315
#define        SYS_setsockopt        105
316
317
/* syscall: "listen" ret: "int" args: "int" "int" */
318
#define        SYS_listen        106
319
320
                                /* 107 is obsolete vtimes */
321
/* syscall: "compat_43_osigvec" ret: "int" args: "int" "struct sigvec *" "struct sigvec *" */
322
#define        SYS_compat_43_osigvec        108
323
324
/* syscall: "compat_43_osigblock" ret: "int" args: "int" */
325
#define        SYS_compat_43_osigblock        109
326
327
/* syscall: "compat_43_osigsetmask" ret: "int" args: "int" */
328
#define        SYS_compat_43_osigsetmask        110
329
330
/* syscall: "compat_13_sigsuspend13" ret: "int" args: "int" */
331
#define        SYS_compat_13_sigsuspend13        111
332
333
/* syscall: "compat_43_osigstack" ret: "int" args: "struct sigstack *" "struct sigstack *" */
334
#define        SYS_compat_43_osigstack        112
335
336
/* syscall: "compat_43_orecvmsg" ret: "int" args: "int" "struct omsghdr *" "int" */
337
#define        SYS_compat_43_orecvmsg        113
338
339
/* syscall: "compat_43_osendmsg" ret: "int" args: "int" "void *" "int" */
340
#define        SYS_compat_43_osendmsg        114
341
342
                                /* 115 is obsolete vtrace */
343
/* syscall: "compat_50_gettimeofday" ret: "int" args: "struct timeval50 *" "void *" */
344
#define        SYS_compat_50_gettimeofday        116
345
346
/* syscall: "compat_50_getrusage" ret: "int" args: "int" "struct rusage50 *" */
347
#define        SYS_compat_50_getrusage        117
348
349
/* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "socklen_t *" */
350
#define        SYS_getsockopt        118
351
352
                                /* 119 is obsolete resuba */
353
/* syscall: "readv" ret: "ssize_t" args: "int" "const struct iovec *" "int" */
354
#define        SYS_readv        120
355
356
/* syscall: "writev" ret: "ssize_t" args: "int" "const struct iovec *" "int" */
357
#define        SYS_writev        121
358
359
/* syscall: "compat_50_settimeofday" ret: "int" args: "const struct timeval50 *" "const void *" */
360
#define        SYS_compat_50_settimeofday        122
361
362
/* syscall: "fchown" ret: "int" args: "int" "uid_t" "gid_t" */
363
#define        SYS_fchown        123
364
365
/* syscall: "fchmod" ret: "int" args: "int" "mode_t" */
366
#define        SYS_fchmod        124
367
368
/* syscall: "compat_43_orecvfrom" ret: "int" args: "int" "void *" "size_t" "int" "void *" "socklen_t *" */
369
#define        SYS_compat_43_orecvfrom        125
370
371
/* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */
372
#define        SYS_setreuid        126
373
374
/* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */
375
#define        SYS_setregid        127
376
377
/* syscall: "rename" ret: "int" args: "const char *" "const char *" */
378
#define        SYS_rename        128
379
380
/* syscall: "compat_43_otruncate" ret: "int" args: "const char *" "long" */
381
#define        SYS_compat_43_otruncate        129
382
383
/* syscall: "compat_43_oftruncate" ret: "int" args: "int" "long" */
384
#define        SYS_compat_43_oftruncate        130
385
386
/* syscall: "flock" ret: "int" args: "int" "int" */
387
#define        SYS_flock        131
388
389
/* syscall: "mkfifo" ret: "int" args: "const char *" "mode_t" */
390
#define        SYS_mkfifo        132
391
392
/* syscall: "sendto" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "const struct sockaddr *" "socklen_t" */
393
#define        SYS_sendto        133
394
395
/* syscall: "shutdown" ret: "int" args: "int" "int" */
396
#define        SYS_shutdown        134
397
398
/* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */
399
#define        SYS_socketpair        135
400
401
/* syscall: "mkdir" ret: "int" args: "const char *" "mode_t" */
402
#define        SYS_mkdir        136
403
404
/* syscall: "rmdir" ret: "int" args: "const char *" */
405
#define        SYS_rmdir        137
406
407
/* syscall: "compat_50_utimes" ret: "int" args: "const char *" "const struct timeval50 *" */
408
#define        SYS_compat_50_utimes        138
409
410
                                /* 139 is obsolete 4.2 sigreturn */
411
/* syscall: "compat_50_adjtime" ret: "int" args: "const struct timeval50 *" "struct timeval50 *" */
412
#define        SYS_compat_50_adjtime        140
413
414
/* syscall: "compat_43_ogetpeername" ret: "int" args: "int" "void *" "socklen_t *" */
415
#define        SYS_compat_43_ogetpeername        141
416
417
/* syscall: "compat_43_ogethostid" ret: "int32_t" args: */
418
#define        SYS_compat_43_ogethostid        142
419
420
/* syscall: "compat_43_osethostid" ret: "int" args: "int32_t" */
421
#define        SYS_compat_43_osethostid        143
422
423
/* syscall: "compat_43_ogetrlimit" ret: "int" args: "int" "struct orlimit *" */
424
#define        SYS_compat_43_ogetrlimit        144
425
426
/* syscall: "compat_43_osetrlimit" ret: "int" args: "int" "const struct orlimit *" */
427
#define        SYS_compat_43_osetrlimit        145
428
429
/* syscall: "compat_43_okillpg" ret: "int" args: "int" "int" */
430
#define        SYS_compat_43_okillpg        146
431
432
/* syscall: "setsid" ret: "int" args: */
433
#define        SYS_setsid        147
434
435
/* syscall: "compat_50_quotactl" ret: "int" args: "const char *" "int" "int" "void *" */
436
#define        SYS_compat_50_quotactl        148
437
438
/* syscall: "compat_43_oquota" ret: "int" args: */
439
#define        SYS_compat_43_oquota        149
440
441
/* syscall: "compat_43_ogetsockname" ret: "int" args: "int" "void *" "socklen_t *" */
442
#define        SYS_compat_43_ogetsockname        150
443
444
/* syscall: "nfssvc" ret: "int" args: "int" "void *" */
445
#define        SYS_nfssvc        155
446
447
/* syscall: "compat_43_ogetdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */
448
#define        SYS_compat_43_ogetdirentries        156
449
450
/* syscall: "compat_20_statfs" ret: "int" args: "const char *" "struct statfs12 *" */
451
#define        SYS_compat_20_statfs        157
452
453
/* syscall: "compat_20_fstatfs" ret: "int" args: "int" "struct statfs12 *" */
454
#define        SYS_compat_20_fstatfs        158
455
456
/* syscall: "compat_30_getfh" ret: "int" args: "const char *" "struct compat_30_fhandle *" */
457
#define        SYS_compat_30_getfh        161
458
459
/* syscall: "compat_09_ogetdomainname" ret: "int" args: "char *" "int" */
460
#define        SYS_compat_09_ogetdomainname        162
461
462
/* syscall: "compat_09_osetdomainname" ret: "int" args: "char *" "int" */
463
#define        SYS_compat_09_osetdomainname        163
464
465
/* syscall: "compat_09_ouname" ret: "int" args: "struct outsname *" */
466
#define        SYS_compat_09_ouname        164
467
468
/* syscall: "sysarch" ret: "int" args: "int" "void *" */
469
#define        SYS_sysarch        165
470
471
#if !defined(_LP64)
472
/* syscall: "compat_10_osemsys" ret: "int" args: "int" "int" "int" "int" "int" */
473
#define        SYS_compat_10_osemsys        169
474
475
#else
476
                                /* 169 is excluded 1.0 semsys */
477
#endif
478
#if !defined(_LP64)
479
/* syscall: "compat_10_omsgsys" ret: "int" args: "int" "int" "int" "int" "int" "int" */
480
#define        SYS_compat_10_omsgsys        170
481
482
#else
483
                                /* 170 is excluded 1.0 msgsys */
484
#endif
485
#if !defined(_LP64)
486
/* syscall: "compat_10_oshmsys" ret: "int" args: "int" "int" "int" "int" */
487
#define        SYS_compat_10_oshmsys        171
488
489
#else
490
                                /* 171 is excluded 1.0 shmsys */
491
#endif
492
/* syscall: "pread" ret: "ssize_t" args: "int" "void *" "size_t" "int" "off_t" */
493
#define        SYS_pread        173
494
495
/* syscall: "pwrite" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "off_t" */
496
#define        SYS_pwrite        174
497
498
/* syscall: "compat_30_ntp_gettime" ret: "int" args: "struct ntptimeval30 *" */
499
#define        SYS_compat_30_ntp_gettime        175
500
501
#if defined(NTP) || !defined(_KERNEL_OPT)
502
/* syscall: "ntp_adjtime" ret: "int" args: "struct timex *" */
503
#define        SYS_ntp_adjtime        176
504
505
#else
506
                                /* 176 is excluded ntp_adjtime */
507
#endif
508
/* syscall: "setgid" ret: "int" args: "gid_t" */
509
#define        SYS_setgid        181
510
511
/* syscall: "setegid" ret: "int" args: "gid_t" */
512
#define        SYS_setegid        182
513
514
/* syscall: "seteuid" ret: "int" args: "uid_t" */
515
#define        SYS_seteuid        183
516
517
/* syscall: "lfs_bmapv" ret: "int" args: "fsid_t *" "struct block_info *" "int" */
518
#define        SYS_lfs_bmapv        184
519
520
/* syscall: "lfs_markv" ret: "int" args: "fsid_t *" "struct block_info *" "int" */
521
#define        SYS_lfs_markv        185
522
523
/* syscall: "lfs_segclean" ret: "int" args: "fsid_t *" "u_long" */
524
#define        SYS_lfs_segclean        186
525
526
/* syscall: "compat_50_lfs_segwait" ret: "int" args: "fsid_t *" "struct timeval50 *" */
527
#define        SYS_compat_50_lfs_segwait        187
528
529
/* syscall: "compat_12_stat12" ret: "int" args: "const char *" "struct stat12 *" */
530
#define        SYS_compat_12_stat12        188
531
532
/* syscall: "compat_12_fstat12" ret: "int" args: "int" "struct stat12 *" */
533
#define        SYS_compat_12_fstat12        189
534
535
/* syscall: "compat_12_lstat12" ret: "int" args: "const char *" "struct stat12 *" */
536
#define        SYS_compat_12_lstat12        190
537
538
/* syscall: "pathconf" ret: "long" args: "const char *" "int" */
539
#define        SYS_pathconf        191
540
541
/* syscall: "fpathconf" ret: "long" args: "int" "int" */
542
#define        SYS_fpathconf        192
543
544
/* syscall: "getrlimit" ret: "int" args: "int" "struct rlimit *" */
545
#define        SYS_getrlimit        194
546
547
/* syscall: "setrlimit" ret: "int" args: "int" "const struct rlimit *" */
548
#define        SYS_setrlimit        195
549
550
/* syscall: "compat_12_getdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */
551
#define        SYS_compat_12_getdirentries        196
552
553
/* syscall: "mmap" ret: "void *" args: "void *" "size_t" "int" "int" "int" "long" "off_t" */
554
#define        SYS_mmap        197
555
556
/* syscall: "__syscall" ret: "quad_t" args: "quad_t" "..." */
557
#define        SYS___syscall        198
558
559
/* syscall: "lseek" ret: "off_t" args: "int" "int" "off_t" "int" */
560
#define        SYS_lseek        199
561
562
/* syscall: "truncate" ret: "int" args: "const char *" "int" "off_t" */
563
#define        SYS_truncate        200
564
565
/* syscall: "ftruncate" ret: "int" args: "int" "int" "off_t" */
566
#define        SYS_ftruncate        201
567
568
/* syscall: "__sysctl" ret: "int" args: "const int *" "u_int" "void *" "size_t *" "const void *" "size_t" */
569
#define        SYS___sysctl        202
570
571
/* syscall: "mlock" ret: "int" args: "const void *" "size_t" */
572
#define        SYS_mlock        203
573
574
/* syscall: "munlock" ret: "int" args: "const void *" "size_t" */
575
#define        SYS_munlock        204
576
577
/* syscall: "undelete" ret: "int" args: "const char *" */
578
#define        SYS_undelete        205
579
580
/* syscall: "compat_50_futimes" ret: "int" args: "int" "const struct timeval50 *" */
581
#define        SYS_compat_50_futimes        206
582
583
/* syscall: "getpgid" ret: "pid_t" args: "pid_t" */
584
#define        SYS_getpgid        207
585
586
/* syscall: "reboot" ret: "int" args: "int" "char *" */
587
#define        SYS_reboot        208
588
589
/* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
590
#define        SYS_poll        209
591
592
/* syscall: "afssys" ret: "int" args: "long" "long" "long" "long" "long" "long" "long" */
593
#define        SYS_afssys        210
594
595
/* syscall: "compat_14___semctl" ret: "int" args: "int" "int" "int" "union __semun *" */
596
#define        SYS_compat_14___semctl        220
597
598
/* syscall: "semget" ret: "int" args: "key_t" "int" "int" */
599
#define        SYS_semget        221
600
601
/* syscall: "semop" ret: "int" args: "int" "struct sembuf *" "size_t" */
602
#define        SYS_semop        222
603
604
/* syscall: "semconfig" ret: "int" args: "int" */
605
#define        SYS_semconfig        223
606
607
/* syscall: "compat_14_msgctl" ret: "int" args: "int" "int" "struct msqid_ds14 *" */
608
#define        SYS_compat_14_msgctl        224
609
610
/* syscall: "msgget" ret: "int" args: "key_t" "int" */
611
#define        SYS_msgget        225
612
613
/* syscall: "msgsnd" ret: "int" args: "int" "const void *" "size_t" "int" */
614
#define        SYS_msgsnd        226
615
616
/* syscall: "msgrcv" ret: "ssize_t" args: "int" "void *" "size_t" "long" "int" */
617
#define        SYS_msgrcv        227
618
619
/* syscall: "shmat" ret: "void *" args: "int" "const void *" "int" */
620
#define        SYS_shmat        228
621
622
/* syscall: "compat_14_shmctl" ret: "int" args: "int" "int" "struct shmid_ds14 *" */
623
#define        SYS_compat_14_shmctl        229
624
625
/* syscall: "shmdt" ret: "int" args: "const void *" */
626
#define        SYS_shmdt        230
627
628
/* syscall: "shmget" ret: "int" args: "key_t" "size_t" "int" */
629
#define        SYS_shmget        231
630
631
/* syscall: "compat_50_clock_gettime" ret: "int" args: "clockid_t" "struct timespec50 *" */
632
#define        SYS_compat_50_clock_gettime        232
633
634
/* syscall: "compat_50_clock_settime" ret: "int" args: "clockid_t" "const struct timespec50 *" */
635
#define        SYS_compat_50_clock_settime        233
636
637
/* syscall: "compat_50_clock_getres" ret: "int" args: "clockid_t" "struct timespec50 *" */
638
#define        SYS_compat_50_clock_getres        234
639
640
/* syscall: "timer_create" ret: "int" args: "clockid_t" "struct sigevent *" "timer_t *" */
641
#define        SYS_timer_create        235
642
643
/* syscall: "timer_delete" ret: "int" args: "timer_t" */
644
#define        SYS_timer_delete        236
645
646
/* syscall: "compat_50_timer_settime" ret: "int" args: "timer_t" "int" "const struct itimerspec50 *" "struct itimerspec50 *" */
647
#define        SYS_compat_50_timer_settime        237
648
649
/* syscall: "compat_50_timer_gettime" ret: "int" args: "timer_t" "struct itimerspec50 *" */
650
#define        SYS_compat_50_timer_gettime        238
651
652
/* syscall: "timer_getoverrun" ret: "int" args: "timer_t" */
653
#define        SYS_timer_getoverrun        239
654
655
/* syscall: "compat_50_nanosleep" ret: "int" args: "const struct timespec50 *" "struct timespec50 *" */
656
#define        SYS_compat_50_nanosleep        240
657
658
/* syscall: "fdatasync" ret: "int" args: "int" */
659
#define        SYS_fdatasync        241
660
661
/* syscall: "mlockall" ret: "int" args: "int" */
662
#define        SYS_mlockall        242
663
664
/* syscall: "munlockall" ret: "int" args: */
665
#define        SYS_munlockall        243
666
667
/* syscall: "compat_50___sigtimedwait" ret: "int" args: "const sigset_t *" "siginfo_t *" "struct timespec50 *" */
668
#define        SYS_compat_50___sigtimedwait        244
669
670
/* syscall: "sigqueueinfo" ret: "int" args: "pid_t" "const siginfo_t *" */
671
#define        SYS_sigqueueinfo        245
672
673
/* syscall: "modctl" ret: "int" args: "int" "void *" */
674
#define        SYS_modctl        246
675
676
/* syscall: "_ksem_init" ret: "int" args: "unsigned int" "intptr_t *" */
677
#define        SYS__ksem_init        247
678
679
/* syscall: "_ksem_open" ret: "int" args: "const char *" "int" "mode_t" "unsigned int" "intptr_t *" */
680
#define        SYS__ksem_open        248
681
682
/* syscall: "_ksem_unlink" ret: "int" args: "const char *" */
683
#define        SYS__ksem_unlink        249
684
685
/* syscall: "_ksem_close" ret: "int" args: "intptr_t" */
686
#define        SYS__ksem_close        250
687
688
/* syscall: "_ksem_post" ret: "int" args: "intptr_t" */
689
#define        SYS__ksem_post        251
690
691
/* syscall: "_ksem_wait" ret: "int" args: "intptr_t" */
692
#define        SYS__ksem_wait        252
693
694
/* syscall: "_ksem_trywait" ret: "int" args: "intptr_t" */
695
#define        SYS__ksem_trywait        253
696
697
/* syscall: "_ksem_getvalue" ret: "int" args: "intptr_t" "unsigned int *" */
698
#define        SYS__ksem_getvalue        254
699
700
/* syscall: "_ksem_destroy" ret: "int" args: "intptr_t" */
701
#define        SYS__ksem_destroy        255
702
703
/* syscall: "_ksem_timedwait" ret: "int" args: "intptr_t" "const struct timespec *" */
704
#define        SYS__ksem_timedwait        256
705
706
/* syscall: "mq_open" ret: "mqd_t" args: "const char *" "int" "mode_t" "struct mq_attr *" */
707
#define        SYS_mq_open        257
708
709
/* syscall: "mq_close" ret: "int" args: "mqd_t" */
710
#define        SYS_mq_close        258
711
712
/* syscall: "mq_unlink" ret: "int" args: "const char *" */
713
#define        SYS_mq_unlink        259
714
715
/* syscall: "mq_getattr" ret: "int" args: "mqd_t" "struct mq_attr *" */
716
#define        SYS_mq_getattr        260
717
718
/* syscall: "mq_setattr" ret: "int" args: "mqd_t" "const struct mq_attr *" "struct mq_attr *" */
719
#define        SYS_mq_setattr        261
720
721
/* syscall: "mq_notify" ret: "int" args: "mqd_t" "const struct sigevent *" */
722
#define        SYS_mq_notify        262
723
724
/* syscall: "mq_send" ret: "int" args: "mqd_t" "const char *" "size_t" "unsigned" */
725
#define        SYS_mq_send        263
726
727
/* syscall: "mq_receive" ret: "ssize_t" args: "mqd_t" "char *" "size_t" "unsigned *" */
728
#define        SYS_mq_receive        264
729
730
/* syscall: "compat_50_mq_timedsend" ret: "int" args: "mqd_t" "const char *" "size_t" "unsigned" "const struct timespec50 *" */
731
#define        SYS_compat_50_mq_timedsend        265
732
733
/* syscall: "compat_50_mq_timedreceive" ret: "ssize_t" args: "mqd_t" "char *" "size_t" "unsigned *" "const struct timespec50 *" */
734
#define        SYS_compat_50_mq_timedreceive        266
735
736
/* syscall: "__posix_rename" ret: "int" args: "const char *" "const char *" */
737
#define        SYS___posix_rename        270
738
739
/* syscall: "swapctl" ret: "int" args: "int" "void *" "int" */
740
#define        SYS_swapctl        271
741
742
/* syscall: "compat_30_getdents" ret: "int" args: "int" "char *" "size_t" */
743
#define        SYS_compat_30_getdents        272
744
745
/* syscall: "minherit" ret: "int" args: "void *" "size_t" "int" */
746
#define        SYS_minherit        273
747
748
/* syscall: "lchmod" ret: "int" args: "const char *" "mode_t" */
749
#define        SYS_lchmod        274
750
751
/* syscall: "lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */
752
#define        SYS_lchown        275
753
754
/* syscall: "compat_50_lutimes" ret: "int" args: "const char *" "const struct timeval50 *" */
755
#define        SYS_compat_50_lutimes        276
756
757
/* syscall: "__msync13" ret: "int" args: "void *" "size_t" "int" */
758
#define        SYS___msync13        277
759
760
/* syscall: "compat_30___stat13" ret: "int" args: "const char *" "struct stat13 *" */
761
#define        SYS_compat_30___stat13        278
762
763
/* syscall: "compat_30___fstat13" ret: "int" args: "int" "struct stat13 *" */
764
#define        SYS_compat_30___fstat13        279
765
766
/* syscall: "compat_30___lstat13" ret: "int" args: "const char *" "struct stat13 *" */
767
#define        SYS_compat_30___lstat13        280
768
769
/* syscall: "__sigaltstack14" ret: "int" args: "const struct sigaltstack *" "struct sigaltstack *" */
770
#define        SYS___sigaltstack14        281
771
772
/* syscall: "__vfork14" ret: "int" args: */
773
#define        SYS___vfork14        282
774
775
/* syscall: "__posix_chown" ret: "int" args: "const char *" "uid_t" "gid_t" */
776
#define        SYS___posix_chown        283
777
778
/* syscall: "__posix_fchown" ret: "int" args: "int" "uid_t" "gid_t" */
779
#define        SYS___posix_fchown        284
780
781
/* syscall: "__posix_lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */
782
#define        SYS___posix_lchown        285
783
784
/* syscall: "getsid" ret: "pid_t" args: "pid_t" */
785
#define        SYS_getsid        286
786
787
/* syscall: "__clone" ret: "pid_t" args: "int" "void *" */
788
#define        SYS___clone        287
789
790
/* syscall: "fktrace" ret: "int" args: "int" "int" "int" "pid_t" */
791
#define        SYS_fktrace        288
792
793
/* syscall: "preadv" ret: "ssize_t" args: "int" "const struct iovec *" "int" "int" "off_t" */
794
#define        SYS_preadv        289
795
796
/* syscall: "pwritev" ret: "ssize_t" args: "int" "const struct iovec *" "int" "int" "off_t" */
797
#define        SYS_pwritev        290
798
799
/* syscall: "compat_16___sigaction14" ret: "int" args: "int" "const struct sigaction *" "struct sigaction *" */
800
#define        SYS_compat_16___sigaction14        291
801
802
/* syscall: "__sigpending14" ret: "int" args: "sigset_t *" */
803
#define        SYS___sigpending14        292
804
805
/* syscall: "__sigprocmask14" ret: "int" args: "int" "const sigset_t *" "sigset_t *" */
806
#define        SYS___sigprocmask14        293
807
808
/* syscall: "__sigsuspend14" ret: "int" args: "const sigset_t *" */
809
#define        SYS___sigsuspend14        294
810
811
/* syscall: "compat_16___sigreturn14" ret: "int" args: "struct sigcontext *" */
812
#define        SYS_compat_16___sigreturn14        295
813
814
/* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */
815
#define        SYS___getcwd        296
816
817
/* syscall: "fchroot" ret: "int" args: "int" */
818
#define        SYS_fchroot        297
819
820
/* syscall: "compat_30_fhopen" ret: "int" args: "const struct compat_30_fhandle *" "int" */
821
#define        SYS_compat_30_fhopen        298
822
823
/* syscall: "compat_30_fhstat" ret: "int" args: "const struct compat_30_fhandle *" "struct stat13 *" */
824
#define        SYS_compat_30_fhstat        299
825
826
/* syscall: "compat_20_fhstatfs" ret: "int" args: "const struct compat_30_fhandle *" "struct statfs12 *" */
827
#define        SYS_compat_20_fhstatfs        300
828
829
/* syscall: "compat_50_____semctl13" ret: "int" args: "int" "int" "int" "..." */
830
#define        SYS_compat_50_____semctl13        301
831
832
/* syscall: "compat_50___msgctl13" ret: "int" args: "int" "int" "struct msqid_ds *" */
833
#define        SYS_compat_50___msgctl13        302
834
835
/* syscall: "compat_50___shmctl13" ret: "int" args: "int" "int" "struct shmid_ds13 *" */
836
#define        SYS_compat_50___shmctl13        303
837
838
/* syscall: "lchflags" ret: "int" args: "const char *" "u_long" */
839
#define        SYS_lchflags        304
840
841
/* syscall: "issetugid" ret: "int" args: */
842
#define        SYS_issetugid        305
843
844
/* syscall: "utrace" ret: "int" args: "const char *" "void *" "size_t" */
845
#define        SYS_utrace        306
846
847
/* syscall: "getcontext" ret: "int" args: "struct __ucontext *" */
848
#define        SYS_getcontext        307
849
850
/* syscall: "setcontext" ret: "int" args: "const struct __ucontext *" */
851
#define        SYS_setcontext        308
852
853
/* syscall: "_lwp_create" ret: "int" args: "const struct __ucontext *" "u_long" "lwpid_t *" */
854
#define        SYS__lwp_create        309
855
856
/* syscall: "_lwp_exit" ret: "int" args: */
857
#define        SYS__lwp_exit        310
858
859
/* syscall: "_lwp_self" ret: "lwpid_t" args: */
860
#define        SYS__lwp_self        311
861
862
/* syscall: "_lwp_wait" ret: "int" args: "lwpid_t" "lwpid_t *" */
863
#define        SYS__lwp_wait        312
864
865
/* syscall: "_lwp_suspend" ret: "int" args: "lwpid_t" */
866
#define        SYS__lwp_suspend        313
867
868
/* syscall: "_lwp_continue" ret: "int" args: "lwpid_t" */
869
#define        SYS__lwp_continue        314
870
871
/* syscall: "_lwp_wakeup" ret: "int" args: "lwpid_t" */
872
#define        SYS__lwp_wakeup        315
873
874
/* syscall: "_lwp_getprivate" ret: "void *" args: */
875
#define        SYS__lwp_getprivate        316
876
877
/* syscall: "_lwp_setprivate" ret: "void" args: "void *" */
878
#define        SYS__lwp_setprivate        317
879
880
/* syscall: "_lwp_kill" ret: "int" args: "lwpid_t" "int" */
881
#define        SYS__lwp_kill        318
882
883
/* syscall: "_lwp_detach" ret: "int" args: "lwpid_t" */
884
#define        SYS__lwp_detach        319
885
886
/* syscall: "compat_50__lwp_park" ret: "int" args: "const struct timespec50 *" "lwpid_t" "const void *" "const void *" */
887
#define        SYS_compat_50__lwp_park        320
888
889
/* syscall: "_lwp_unpark" ret: "int" args: "lwpid_t" "const void *" */
890
#define        SYS__lwp_unpark        321
891
892
/* syscall: "_lwp_unpark_all" ret: "ssize_t" args: "const lwpid_t *" "size_t" "const void *" */
893
#define        SYS__lwp_unpark_all        322
894
895
/* syscall: "_lwp_setname" ret: "int" args: "lwpid_t" "const char *" */
896
#define        SYS__lwp_setname        323
897
898
/* syscall: "_lwp_getname" ret: "int" args: "lwpid_t" "char *" "size_t" */
899
#define        SYS__lwp_getname        324
900
901
/* syscall: "_lwp_ctl" ret: "int" args: "int" "struct lwpctl **" */
902
#define        SYS__lwp_ctl        325
903
904
/* syscall: "compat_60_sa_register" ret: "int" args: "void *" "void **" "int" "ssize_t" */
905
#define        SYS_compat_60_sa_register        330
906
907
/* syscall: "compat_60_sa_stacks" ret: "int" args: "int" "stack_t *" */
908
#define        SYS_compat_60_sa_stacks        331
909
910
/* syscall: "compat_60_sa_enable" ret: "int" args: */
911
#define        SYS_compat_60_sa_enable        332
912
913
/* syscall: "compat_60_sa_setconcurrency" ret: "int" args: "int" */
914
#define        SYS_compat_60_sa_setconcurrency        333
915
916
/* syscall: "compat_60_sa_yield" ret: "int" args: */
917
#define        SYS_compat_60_sa_yield        334
918
919
/* syscall: "compat_60_sa_preempt" ret: "int" args: "int" */
920
#define        SYS_compat_60_sa_preempt        335
921
922
                                /* 336 is obsolete sys_sa_unblockyield */
923
/* syscall: "__sigaction_sigtramp" ret: "int" args: "int" "const struct sigaction *" "struct sigaction *" "const void *" "int" */
924
#define        SYS___sigaction_sigtramp        340
925
926
/* syscall: "pmc_get_info" ret: "int" args: "int" "int" "void *" */
927
#define        SYS_pmc_get_info        341
928
929
/* syscall: "pmc_control" ret: "int" args: "int" "int" "void *" */
930
#define        SYS_pmc_control        342
931
932
/* syscall: "rasctl" ret: "int" args: "void *" "size_t" "int" */
933
#define        SYS_rasctl        343
934
935
/* syscall: "kqueue" ret: "int" args: */
936
#define        SYS_kqueue        344
937
938
/* syscall: "compat_50_kevent" ret: "int" args: "int" "const struct kevent *" "size_t" "struct kevent *" "size_t" "const struct timespec50 *" */
939
#define        SYS_compat_50_kevent        345
940
941
/* syscall: "_sched_setparam" ret: "int" args: "pid_t" "lwpid_t" "int" "const struct sched_param *" */
942
#define        SYS__sched_setparam        346
943
944
/* syscall: "_sched_getparam" ret: "int" args: "pid_t" "lwpid_t" "int *" "struct sched_param *" */
945
#define        SYS__sched_getparam        347
946
947
/* syscall: "_sched_setaffinity" ret: "int" args: "pid_t" "lwpid_t" "size_t" "const cpuset_t *" */
948
#define        SYS__sched_setaffinity        348
949
950
/* syscall: "_sched_getaffinity" ret: "int" args: "pid_t" "lwpid_t" "size_t" "cpuset_t *" */
951
#define        SYS__sched_getaffinity        349
952
953
/* syscall: "sched_yield" ret: "int" args: */
954
#define        SYS_sched_yield        350
955
956
/* syscall: "fsync_range" ret: "int" args: "int" "int" "off_t" "off_t" */
957
#define        SYS_fsync_range        354
958
959
/* syscall: "uuidgen" ret: "int" args: "struct uuid *" "int" */
960
#define        SYS_uuidgen        355
961
962
/* syscall: "getvfsstat" ret: "int" args: "struct statvfs *" "size_t" "int" */
963
#define        SYS_getvfsstat        356
964
965
/* syscall: "statvfs1" ret: "int" args: "const char *" "struct statvfs *" "int" */
966
#define        SYS_statvfs1        357
967
968
/* syscall: "fstatvfs1" ret: "int" args: "int" "struct statvfs *" "int" */
969
#define        SYS_fstatvfs1        358
970
971
/* syscall: "compat_30_fhstatvfs1" ret: "int" args: "const struct compat_30_fhandle *" "struct statvfs *" "int" */
972
#define        SYS_compat_30_fhstatvfs1        359
973
974
/* syscall: "extattrctl" ret: "int" args: "const char *" "int" "const char *" "int" "const char *" */
975
#define        SYS_extattrctl        360
976
977
/* syscall: "extattr_set_file" ret: "int" args: "const char *" "int" "const char *" "const void *" "size_t" */
978
#define        SYS_extattr_set_file        361
979
980
/* syscall: "extattr_get_file" ret: "ssize_t" args: "const char *" "int" "const char *" "void *" "size_t" */
981
#define        SYS_extattr_get_file        362
982
983
/* syscall: "extattr_delete_file" ret: "int" args: "const char *" "int" "const char *" */
984
#define        SYS_extattr_delete_file        363
985
986
/* syscall: "extattr_set_fd" ret: "int" args: "int" "int" "const char *" "const void *" "size_t" */
987
#define        SYS_extattr_set_fd        364
988
989
/* syscall: "extattr_get_fd" ret: "ssize_t" args: "int" "int" "const char *" "void *" "size_t" */
990
#define        SYS_extattr_get_fd        365
991
992
/* syscall: "extattr_delete_fd" ret: "int" args: "int" "int" "const char *" */
993
#define        SYS_extattr_delete_fd        366
994
995
/* syscall: "extattr_set_link" ret: "int" args: "const char *" "int" "const char *" "const void *" "size_t" */
996
#define        SYS_extattr_set_link        367
997
998
/* syscall: "extattr_get_link" ret: "ssize_t" args: "const char *" "int" "const char *" "void *" "size_t" */
999
#define        SYS_extattr_get_link        368
1000
1001
/* syscall: "extattr_delete_link" ret: "int" args: "const char *" "int" "const char *" */
1002
#define        SYS_extattr_delete_link        369
1003
1004
/* syscall: "extattr_list_fd" ret: "ssize_t" args: "int" "int" "void *" "size_t" */
1005
#define        SYS_extattr_list_fd        370
1006
1007
/* syscall: "extattr_list_file" ret: "ssize_t" args: "const char *" "int" "void *" "size_t" */
1008
#define        SYS_extattr_list_file        371
1009
1010
/* syscall: "extattr_list_link" ret: "ssize_t" args: "const char *" "int" "void *" "size_t" */
1011
#define        SYS_extattr_list_link        372
1012
1013
/* syscall: "compat_50_pselect" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "const struct timespec50 *" "const sigset_t *" */
1014
#define        SYS_compat_50_pselect        373
1015
1016
/* syscall: "compat_50_pollts" ret: "int" args: "struct pollfd *" "u_int" "const struct timespec50 *" "const sigset_t *" */
1017
#define        SYS_compat_50_pollts        374
1018
1019
/* syscall: "setxattr" ret: "int" args: "const char *" "const char *" "const void *" "size_t" "int" */
1020
#define        SYS_setxattr        375
1021
1022
/* syscall: "lsetxattr" ret: "int" args: "const char *" "const char *" "const void *" "size_t" "int" */
1023
#define        SYS_lsetxattr        376
1024
1025
/* syscall: "fsetxattr" ret: "int" args: "int" "const char *" "const void *" "size_t" "int" */
1026
#define        SYS_fsetxattr        377
1027
1028
/* syscall: "getxattr" ret: "int" args: "const char *" "const char *" "void *" "size_t" */
1029
#define        SYS_getxattr        378
1030
1031
/* syscall: "lgetxattr" ret: "int" args: "const char *" "const char *" "void *" "size_t" */
1032
#define        SYS_lgetxattr        379
1033
1034
/* syscall: "fgetxattr" ret: "int" args: "int" "const char *" "void *" "size_t" */
1035
#define        SYS_fgetxattr        380
1036
1037
/* syscall: "listxattr" ret: "int" args: "const char *" "char *" "size_t" */
1038
#define        SYS_listxattr        381
1039
1040
/* syscall: "llistxattr" ret: "int" args: "const char *" "char *" "size_t" */
1041
#define        SYS_llistxattr        382
1042
1043
/* syscall: "flistxattr" ret: "int" args: "int" "char *" "size_t" */
1044
#define        SYS_flistxattr        383
1045
1046
/* syscall: "removexattr" ret: "int" args: "const char *" "const char *" */
1047
#define        SYS_removexattr        384
1048
1049
/* syscall: "lremovexattr" ret: "int" args: "const char *" "const char *" */
1050
#define        SYS_lremovexattr        385
1051
1052
/* syscall: "fremovexattr" ret: "int" args: "int" "const char *" */
1053
#define        SYS_fremovexattr        386
1054
1055
/* syscall: "compat_50___stat30" ret: "int" args: "const char *" "struct stat30 *" */
1056
#define        SYS_compat_50___stat30        387
1057
1058
/* syscall: "compat_50___fstat30" ret: "int" args: "int" "struct stat30 *" */
1059
#define        SYS_compat_50___fstat30        388
1060
1061
/* syscall: "compat_50___lstat30" ret: "int" args: "const char *" "struct stat30 *" */
1062
#define        SYS_compat_50___lstat30        389
1063
1064
/* syscall: "__getdents30" ret: "int" args: "int" "char *" "size_t" */
1065
#define        SYS___getdents30        390
1066
1067
                                /* 391 is ignored old posix_fadvise */
1068
/* syscall: "compat_30___fhstat30" ret: "int" args: "const struct compat_30_fhandle *" "struct stat30 *" */
1069
#define        SYS_compat_30___fhstat30        392
1070
1071
/* syscall: "compat_50___ntp_gettime30" ret: "int" args: "struct ntptimeval50 *" */
1072
#define        SYS_compat_50___ntp_gettime30        393
1073
1074
/* syscall: "__socket30" ret: "int" args: "int" "int" "int" */
1075
#define        SYS___socket30        394
1076
1077
/* syscall: "__getfh30" ret: "int" args: "const char *" "void *" "size_t *" */
1078
#define        SYS___getfh30        395
1079
1080
/* syscall: "__fhopen40" ret: "int" args: "const void *" "size_t" "int" */
1081
#define        SYS___fhopen40        396
1082
1083
/* syscall: "__fhstatvfs140" ret: "int" args: "const void *" "size_t" "struct statvfs *" "int" */
1084
#define        SYS___fhstatvfs140        397
1085
1086
/* syscall: "compat_50___fhstat40" ret: "int" args: "const void *" "size_t" "struct stat30 *" */
1087
#define        SYS_compat_50___fhstat40        398
1088
1089
/* syscall: "aio_cancel" ret: "int" args: "int" "struct aiocb *" */
1090
#define        SYS_aio_cancel        399
1091
1092
/* syscall: "aio_error" ret: "int" args: "const struct aiocb *" */
1093
#define        SYS_aio_error        400
1094
1095
/* syscall: "aio_fsync" ret: "int" args: "int" "struct aiocb *" */
1096
#define        SYS_aio_fsync        401
1097
1098
/* syscall: "aio_read" ret: "int" args: "struct aiocb *" */
1099
#define        SYS_aio_read        402
1100
1101
/* syscall: "aio_return" ret: "int" args: "struct aiocb *" */
1102
#define        SYS_aio_return        403
1103
1104
/* syscall: "compat_50_aio_suspend" ret: "int" args: "const struct aiocb *const *" "int" "const struct timespec50 *" */
1105
#define        SYS_compat_50_aio_suspend        404
1106
1107
/* syscall: "aio_write" ret: "int" args: "struct aiocb *" */
1108
#define        SYS_aio_write        405
1109
1110
/* syscall: "lio_listio" ret: "int" args: "int" "struct aiocb *const *" "int" "struct sigevent *" */
1111
#define        SYS_lio_listio        406
1112
1113
/* syscall: "__mount50" ret: "int" args: "const char *" "const char *" "int" "void *" "size_t" */
1114
#define        SYS___mount50        410
1115
1116
/* syscall: "mremap" ret: "void *" args: "void *" "size_t" "void *" "size_t" "int" */
1117
#define        SYS_mremap        411
1118
1119
/* syscall: "pset_create" ret: "int" args: "psetid_t *" */
1120
#define        SYS_pset_create        412
1121
1122
/* syscall: "pset_destroy" ret: "int" args: "psetid_t" */
1123
#define        SYS_pset_destroy        413
1124
1125
/* syscall: "pset_assign" ret: "int" args: "psetid_t" "cpuid_t" "psetid_t *" */
1126
#define        SYS_pset_assign        414
1127
1128
/* syscall: "_pset_bind" ret: "int" args: "idtype_t" "id_t" "id_t" "psetid_t" "psetid_t *" */
1129
#define        SYS__pset_bind        415
1130
1131
/* syscall: "__posix_fadvise50" ret: "int" args: "int" "int" "off_t" "off_t" "int" */
1132
#define        SYS___posix_fadvise50        416
1133
1134
/* syscall: "__select50" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */
1135
#define        SYS___select50        417
1136
1137
/* syscall: "__gettimeofday50" ret: "int" args: "struct timeval *" "void *" */
1138
#define        SYS___gettimeofday50        418
1139
1140
/* syscall: "__settimeofday50" ret: "int" args: "const struct timeval *" "const void *" */
1141
#define        SYS___settimeofday50        419
1142
1143
/* syscall: "__utimes50" ret: "int" args: "const char *" "const struct timeval *" */
1144
#define        SYS___utimes50        420
1145
1146
/* syscall: "__adjtime50" ret: "int" args: "const struct timeval *" "struct timeval *" */
1147
#define        SYS___adjtime50        421
1148
1149
/* syscall: "__lfs_segwait50" ret: "int" args: "fsid_t *" "struct timeval *" */
1150
#define        SYS___lfs_segwait50        422
1151
1152
/* syscall: "__futimes50" ret: "int" args: "int" "const struct timeval *" */
1153
#define        SYS___futimes50        423
1154
1155
/* syscall: "__lutimes50" ret: "int" args: "const char *" "const struct timeval *" */
1156
#define        SYS___lutimes50        424
1157
1158
/* syscall: "__setitimer50" ret: "int" args: "int" "const struct itimerval *" "struct itimerval *" */
1159
#define        SYS___setitimer50        425
1160
1161
/* syscall: "__getitimer50" ret: "int" args: "int" "struct itimerval *" */
1162
#define        SYS___getitimer50        426
1163
1164
/* syscall: "__clock_gettime50" ret: "int" args: "clockid_t" "struct timespec *" */
1165
#define        SYS___clock_gettime50        427
1166
1167
/* syscall: "__clock_settime50" ret: "int" args: "clockid_t" "const struct timespec *" */
1168
#define        SYS___clock_settime50        428
1169
1170
/* syscall: "__clock_getres50" ret: "int" args: "clockid_t" "struct timespec *" */
1171
#define        SYS___clock_getres50        429
1172
1173
/* syscall: "__nanosleep50" ret: "int" args: "const struct timespec *" "struct timespec *" */
1174
#define        SYS___nanosleep50        430
1175
1176
/* syscall: "____sigtimedwait50" ret: "int" args: "const sigset_t *" "siginfo_t *" "struct timespec *" */
1177
#define        SYS_____sigtimedwait50        431
1178
1179
/* syscall: "__mq_timedsend50" ret: "int" args: "mqd_t" "const char *" "size_t" "unsigned" "const struct timespec *" */
1180
#define        SYS___mq_timedsend50        432
1181
1182
/* syscall: "__mq_timedreceive50" ret: "ssize_t" args: "mqd_t" "char *" "size_t" "unsigned *" "const struct timespec *" */
1183
#define        SYS___mq_timedreceive50        433
1184
1185
/* syscall: "compat_60__lwp_park" ret: "int" args: "const struct timespec *" "lwpid_t" "const void *" "const void *" */
1186
#define        SYS_compat_60__lwp_park        434
1187
1188
/* syscall: "__kevent50" ret: "int" args: "int" "const struct kevent *" "size_t" "struct kevent *" "size_t" "const struct timespec *" */
1189
#define        SYS___kevent50        435
1190
1191
/* syscall: "__pselect50" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "const struct timespec *" "const sigset_t *" */
1192
#define        SYS___pselect50        436
1193
1194
/* syscall: "__pollts50" ret: "int" args: "struct pollfd *" "u_int" "const struct timespec *" "const sigset_t *" */
1195
#define        SYS___pollts50        437
1196
1197
/* syscall: "__aio_suspend50" ret: "int" args: "const struct aiocb *const *" "int" "const struct timespec *" */
1198
#define        SYS___aio_suspend50        438
1199
1200
/* syscall: "__stat50" ret: "int" args: "const char *" "struct stat *" */
1201
#define        SYS___stat50        439
1202
1203
/* syscall: "__fstat50" ret: "int" args: "int" "struct stat *" */
1204
#define        SYS___fstat50        440
1205
1206
/* syscall: "__lstat50" ret: "int" args: "const char *" "struct stat *" */
1207
#define        SYS___lstat50        441
1208
1209
/* syscall: "____semctl50" ret: "int" args: "int" "int" "int" "..." */
1210
#define        SYS_____semctl50        442
1211
1212
/* syscall: "__shmctl50" ret: "int" args: "int" "int" "struct shmid_ds *" */
1213
#define        SYS___shmctl50        443
1214
1215
/* syscall: "__msgctl50" ret: "int" args: "int" "int" "struct msqid_ds *" */
1216
#define        SYS___msgctl50        444
1217
1218
/* syscall: "__getrusage50" ret: "int" args: "int" "struct rusage *" */
1219
#define        SYS___getrusage50        445
1220
1221
/* syscall: "__timer_settime50" ret: "int" args: "timer_t" "int" "const struct itimerspec *" "struct itimerspec *" */
1222
#define        SYS___timer_settime50        446
1223
1224
/* syscall: "__timer_gettime50" ret: "int" args: "timer_t" "struct itimerspec *" */
1225
#define        SYS___timer_gettime50        447
1226
1227
#if defined(NTP) || !defined(_KERNEL_OPT)
1228
/* syscall: "__ntp_gettime50" ret: "int" args: "struct ntptimeval *" */
1229
#define        SYS___ntp_gettime50        448
1230
1231
#else
1232
                                /* 448 is excluded ___ntp_gettime50 */
1233
#endif
1234
/* syscall: "__wait450" ret: "int" args: "pid_t" "int *" "int" "struct rusage *" */
1235
#define        SYS___wait450        449
1236
1237
/* syscall: "__mknod50" ret: "int" args: "const char *" "mode_t" "dev_t" */
1238
#define        SYS___mknod50        450
1239
1240
/* syscall: "__fhstat50" ret: "int" args: "const void *" "size_t" "struct stat *" */
1241
#define        SYS___fhstat50        451
1242
1243
                                /* 452 is obsolete 5.99 quotactl */
1244
/* syscall: "pipe2" ret: "int" args: "int *" "int" */
1245
#define        SYS_pipe2        453
1246
1247
/* syscall: "dup3" ret: "int" args: "int" "int" "int" */
1248
#define        SYS_dup3        454
1249
1250
/* syscall: "kqueue1" ret: "int" args: "int" */
1251
#define        SYS_kqueue1        455
1252
1253
/* syscall: "paccept" ret: "int" args: "int" "struct sockaddr *" "socklen_t *" "const sigset_t *" "int" */
1254
#define        SYS_paccept        456
1255
1256
/* syscall: "linkat" ret: "int" args: "int" "const char *" "int" "const char *" "int" */
1257
#define        SYS_linkat        457
1258
1259
/* syscall: "renameat" ret: "int" args: "int" "const char *" "int" "const char *" */
1260
#define        SYS_renameat        458
1261
1262
/* syscall: "mkfifoat" ret: "int" args: "int" "const char *" "mode_t" */
1263
#define        SYS_mkfifoat        459
1264
1265
/* syscall: "mknodat" ret: "int" args: "int" "const char *" "mode_t" "int" "dev_t" */
1266
#define        SYS_mknodat        460
1267
1268
/* syscall: "mkdirat" ret: "int" args: "int" "const char *" "mode_t" */
1269
#define        SYS_mkdirat        461
1270
1271
/* syscall: "faccessat" ret: "int" args: "int" "const char *" "int" "int" */
1272
#define        SYS_faccessat        462
1273
1274
/* syscall: "fchmodat" ret: "int" args: "int" "const char *" "mode_t" "int" */
1275
#define        SYS_fchmodat        463
1276
1277
/* syscall: "fchownat" ret: "int" args: "int" "const char *" "uid_t" "gid_t" "int" */
1278
#define        SYS_fchownat        464
1279
1280
/* syscall: "fexecve" ret: "int" args: "int" "char *const *" "char *const *" */
1281
#define        SYS_fexecve        465
1282
1283
/* syscall: "fstatat" ret: "int" args: "int" "const char *" "struct stat *" "int" */
1284
#define        SYS_fstatat        466
1285
1286
/* syscall: "utimensat" ret: "int" args: "int" "const char *" "const struct timespec *" "int" */
1287
#define        SYS_utimensat        467
1288
1289
/* syscall: "openat" ret: "int" args: "int" "const char *" "int" "..." */
1290
#define        SYS_openat        468
1291
1292
/* syscall: "readlinkat" ret: "ssize_t" args: "int" "const char *" "char *" "size_t" */
1293
#define        SYS_readlinkat        469
1294
1295
/* syscall: "symlinkat" ret: "int" args: "const char *" "int" "const char *" */
1296
#define        SYS_symlinkat        470
1297
1298
/* syscall: "unlinkat" ret: "int" args: "int" "const char *" "int" */
1299
#define        SYS_unlinkat        471
1300
1301
/* syscall: "futimens" ret: "int" args: "int" "const struct timespec *" */
1302
#define        SYS_futimens        472
1303
1304
/* syscall: "__quotactl" ret: "int" args: "const char *" "struct quotactl_args *" */
1305
#define        SYS___quotactl        473
1306
1307
/* syscall: "posix_spawn" ret: "int" args: "pid_t *" "const char *" "const struct posix_spawn_file_actions *" "const struct posix_spawnattr *" "char *const *" "char *const *" */
1308
#define        SYS_posix_spawn        474
1309
1310
/* syscall: "recvmmsg" ret: "int" args: "int" "struct mmsghdr *" "unsigned int" "unsigned int" "struct timespec *" */
1311
#define        SYS_recvmmsg        475
1312
1313
/* syscall: "sendmmsg" ret: "int" args: "int" "struct mmsghdr *" "unsigned int" "unsigned int" */
1314
#define        SYS_sendmmsg        476
1315
1316
/* syscall: "clock_nanosleep" ret: "int" args: "clockid_t" "int" "const struct timespec *" "struct timespec *" */
1317
#define        SYS_clock_nanosleep        477
1318
1319
/* syscall: "___lwp_park60" ret: "int" args: "clockid_t" "int" "const struct timespec *" "lwpid_t" "const void *" "const void *" */
1320
#define        SYS____lwp_park60        478
1321
1322
/* syscall: "posix_fallocate" ret: "int" args: "int" "int" "off_t" "off_t" */
1323
#define        SYS_posix_fallocate        479
1324
1325
/* syscall: "fdiscard" ret: "int" args: "int" "int" "off_t" "off_t" */
1326
#define        SYS_fdiscard        480
1327
1328
#define        SYS_MAXSYSCALL        481
1329
#define        SYS_NSYSENT        512
1330
#endif /* _SYS_SYSCALL_H_ */