-
Notifications
You must be signed in to change notification settings - Fork 2.8k
/
syscalls.master
3247 lines (3234 loc) · 60 KB
/
syscalls.master
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
$FreeBSD$
; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94
;
; System call name/number master file.
; Processed to created init_sysent.c, syscalls.c and syscall.h.
; Columns: number audit type name alt{name,tag,rtyp}/comments
; number system call number, must be in order
; audit the audit event associated with the system call
; A value of AUE_NULL means no auditing, but it also means that
; there is no audit event for the call at this time. For the
; case where the event exists, but we don't want auditing, the
; event should be #defined to AUE_NULL in audit_kevents.h.
; type one of STD, OBSOL, UNIMPL, COMPAT, COMPAT4, COMPAT6,
; COMPAT7, COMPAT11, COMPAT12, NODEF, NOARGS, NOPROTO, NOSTD
; The COMPAT* options may be combined with one or more NO*
; options separated by '|' with no spaces (e.g. COMPAT|NOARGS)
; name pseudo-prototype of syscall routine
; If one of the following alts is different, then all appear:
; altname name of system call if different
; alttag name of args struct tag if different from [o]`name'"_args"
; altrtyp return type if not int (bogus - syscalls always return int)
; for UNIMPL/OBSOL, name continues with comments
; types:
; STD always included
; COMPAT included on COMPAT #ifdef
; COMPAT4 included on COMPAT_FREEBSD4 #ifdef (FreeBSD 4 compat)
; COMPAT6 included on COMPAT_FREEBSD6 #ifdef (FreeBSD 6 compat)
; COMPAT7 included on COMPAT_FREEBSD7 #ifdef (FreeBSD 7 compat)
; COMPAT10 included on COMPAT_FREEBSD10 #ifdef (FreeBSD 10 compat)
; COMPAT11 included on COMPAT_FREEBSD11 #ifdef (FreeBSD 11 compat)
; COMPAT12 included on COMPAT_FREEBSD12 #ifdef (FreeBSD 12 compat)
; OBSOL obsolete, not included in system, only specifies name
; UNIMPL not implemented, placeholder only
; NOSTD implemented but as a lkm that can be statically
; compiled in; sysent entry will be filled with lkmressys
; so the SYSCALL_MODULE macro works
; NOARGS same as STD except do not create structure in sys/sysproto.h
; NODEF same as STD except only have the entry in the syscall table
; added. Meaning - do not create structure or function
; prototype in sys/sysproto.h
; NOPROTO same as STD except do not create structure or
; function prototype in sys/sysproto.h. Does add a
; definition to syscall.h besides adding a sysent.
; NOTSTATIC syscall is loadable
; annotations:
; SAL 2.0 annotations are used to specify how system calls treat
; arguments that are passed using pointers. There are three basic
; annotations.
;
; _In_ Object pointed to will be read and not modified.
; _Out_ Object pointed to will be written and not read.
; _Inout_ Object pointed to will be written and read.
;
; These annotations are used alone when the pointer refers to a single
; object i.e. scalar types, structs, and pointers, and not NULL. Adding
; the _opt_ suffix, e.g. _In_opt_, implies that the pointer may also
; refer to NULL.
;
; For pointers to arrays, additional suffixes are added:
;
; _In_z_, _Out_z_, _Inout_z_:
; for a NUL terminated array e.g. a string.
; _In_reads_z_(n),_Out_writes_z_(n), _Inout_updates_z_(n):
; for a NUL terminated array e.g. a string, of known length n bytes.
; _In_reads_(n),_Out_writes_(n),_Inout_updates_(n):
; for an array of n elements.
; _In_reads_bytes_(n), _Out_writes_bytes_(n), _Inout_updates_bytes(n):
; for a buffer of n-bytes.
; Please copy any additions and changes to the following compatability tables:
; sys/compat/freebsd32/syscalls.master
; #ifdef's, etc. may be included, and are copied to the output files.
#include <sys/param.h>
#include <sys/sysent.h>
#include <sys/sysproto.h>
; Reserved/unimplemented system calls in the range 0-150 inclusive
; are reserved for use in future Berkeley releases.
; Additional system calls implemented in vendor and other
; redistributions should be placed in the reserved range at the end
; of the current calls.
0 AUE_NULL STD {
int nosys(void);
} syscall nosys_args int
1 AUE_EXIT STD {
void sys_exit(
int rval
);
} exit sys_exit_args void
2 AUE_FORK STD {
int fork(void);
}
3 AUE_READ STD {
ssize_t read(
int fd,
_Out_writes_bytes_(nbyte) void *buf,
size_t nbyte
);
}
4 AUE_WRITE STD {
ssize_t write(
int fd,
_In_reads_bytes_(nbyte) const void *buf,
size_t nbyte
);
}
5 AUE_OPEN_RWTC STD {
int open(
_In_z_ const char *path,
int flags,
mode_t mode
);
}
; XXX should be { int open(const char *path, int flags, ...); }
; but we're not ready for varargs.
6 AUE_CLOSE STD {
int close(
int fd
);
}
7 AUE_WAIT4 STD {
int wait4(
int pid,
_Out_opt_ int *status,
int options,
_Out_opt_ struct rusage *rusage
);
}
8 AUE_CREAT COMPAT {
int creat(
_In_z_ const char *path,
int mode
);
}
9 AUE_LINK STD {
int link(
_In_z_ const char *path,
_In_z_ const char *link
);
}
10 AUE_UNLINK STD {
int unlink(
_In_z_ const char *path
);
}
11 AUE_NULL OBSOL execv
12 AUE_CHDIR STD {
int chdir(
_In_z_ const char *path
);
}
13 AUE_FCHDIR STD {
int fchdir(
int fd
);
}
14 AUE_MKNOD COMPAT11 {
int mknod(
_In_z_ const char *path,
int mode,
uint32_t dev
);
}
15 AUE_CHMOD STD {
int chmod(
_In_z_ const char *path,
mode_t mode
);
}
16 AUE_CHOWN STD {
int chown(
_In_z_ const char *path,
int uid,
int gid
);
}
17 AUE_NULL STD {
void *break(
_In_ char *nsize
);
}
18 AUE_GETFSSTAT COMPAT4 {
int getfsstat(
_Out_writes_bytes_opt_(bufsize) struct ostatfs *buf,
long bufsize,
int mode
);
}
19 AUE_LSEEK COMPAT {
long lseek(
int fd,
long offset,
int whence
);
}
20 AUE_GETPID STD {
pid_t getpid(void);
}
21 AUE_MOUNT STD {
int mount(
_In_z_ const char *type,
_In_z_ const char *path,
int flags,
_In_opt_ void *data
);
}
22 AUE_UMOUNT STD {
int unmount(
_In_z_ const char *path,
int flags
);
}
23 AUE_SETUID STD {
int setuid(
uid_t uid
);
}
24 AUE_GETUID STD {
uid_t getuid(void);
}
25 AUE_GETEUID STD {
uid_t geteuid(void);
}
26 AUE_PTRACE STD {
int ptrace(
int req,
pid_t pid,
_Inout_opt_ caddr_t addr,
int data
);
}
27 AUE_RECVMSG STD {
int recvmsg(
int s,
_Inout_ struct msghdr *msg,
int flags
);
}
28 AUE_SENDMSG STD {
int sendmsg(
int s,
_In_ struct msghdr *msg,
int flags
);
}
29 AUE_RECVFROM STD {
int recvfrom(
int s,
_Out_writes_bytes_(len) void *buf,
size_t len,
int flags,
_Out_writes_bytes_opt_(*fromlenaddr) struct sockaddr *from,
_Inout_opt_ __socklen_t *fromlenaddr
);
}
30 AUE_ACCEPT STD {
int accept(
int s,
_Out_writes_bytes_opt_(*anamelen) struct sockaddr *name,
_Inout_opt_ __socklen_t *anamelen
);
}
31 AUE_GETPEERNAME STD {
int getpeername(
int fdes,
_Out_writes_bytes_(*alen) struct sockaddr *asa,
_Inout_opt_ __socklen_t *alen
);
}
32 AUE_GETSOCKNAME STD {
int getsockname(
int fdes,
_Out_writes_bytes_(*alen) struct sockaddr *asa,
_Inout_ __socklen_t *alen
);
}
33 AUE_ACCESS STD {
int access(
_In_z_ const char *path,
int amode
);
}
34 AUE_CHFLAGS STD {
int chflags(
_In_z_ const char *path,
u_long flags
);
}
35 AUE_FCHFLAGS STD {
int fchflags(
int fd,
u_long flags
);
}
36 AUE_SYNC STD {
int sync(void);
}
37 AUE_KILL STD {
int kill(
int pid,
int signum
);
}
38 AUE_STAT COMPAT {
int stat(
_In_z_ const char *path,
_Out_ struct ostat *ub
);
}
39 AUE_GETPPID STD {
pid_t getppid(void);
}
40 AUE_LSTAT COMPAT {
int lstat(
_In_z_ const char *path,
_Out_ struct ostat *ub
);
}
41 AUE_DUP STD {
int dup(
u_int fd
);
}
42 AUE_PIPE COMPAT10 {
int pipe(void);
}
43 AUE_GETEGID STD {
gid_t getegid(void);
}
44 AUE_PROFILE STD {
int profil(
_Out_writes_bytes_(size) char *samples,
size_t size,
size_t offset,
u_int scale
);
}
45 AUE_KTRACE STD {
int ktrace(
_In_z_ const char *fname,
int ops,
int facs,
int pid
);
}
46 AUE_SIGACTION COMPAT {
int sigaction(
int signum,
_In_opt_ struct osigaction *nsa,
_Out_opt_ struct osigaction *osa
);
}
47 AUE_GETGID STD {
gid_t getgid(void);
}
48 AUE_SIGPROCMASK COMPAT {
int sigprocmask(
int how,
osigset_t mask
);
}
; XXX note nonstandard (bogus) calling convention - the libc stub passes
; us the mask, not a pointer to it, and we return the old mask as the
; (int) return value.
49 AUE_GETLOGIN STD {
int getlogin(
_Out_writes_z_(namelen) char *namebuf,
u_int namelen
);
}
50 AUE_SETLOGIN STD {
int setlogin(
_In_z_ const char *namebuf
);
}
51 AUE_ACCT STD {
int acct(
_In_z_ const char *path
);
}
52 AUE_SIGPENDING COMPAT {
int sigpending(void);
}
53 AUE_SIGALTSTACK STD {
int sigaltstack(
_In_opt_ stack_t *ss,
_Out_opt_ stack_t *oss
);
}
54 AUE_IOCTL STD {
int ioctl(
int fd,
u_long com,
_Inout_opt_ char *data
);
}
55 AUE_REBOOT STD {
int reboot(
int opt
);
}
56 AUE_REVOKE STD {
int revoke(
_In_z_ const char *path
);
}
57 AUE_SYMLINK STD {
int symlink(
_In_z_ const char *path,
_In_z_ const char *link
);
}
58 AUE_READLINK STD {
ssize_t readlink(
_In_z_ const char *path,
_Out_writes_z_(count) char *buf,
size_t count
);
}
59 AUE_EXECVE STD {
int execve(
_In_z_ const char *fname,
_In_z_ char **argv,
_In_z_ char **envv
);
}
60 AUE_UMASK STD {
int umask(
mode_t newmask
);
}
61 AUE_CHROOT STD {
int chroot(
_In_z_ const char *path
);
}
62 AUE_FSTAT COMPAT {
int fstat(
int fd,
_Out_ struct ostat *sb
);
}
63 AUE_NULL COMPAT {
int getkerninfo(
int op,
_Out_writes_bytes_opt(
*size) char *where,
_Inout_opt_ size_t *size,
int arg
);
}
64 AUE_NULL COMPAT {
int getpagesize(void);
}
65 AUE_MSYNC STD {
int msync(
_In_ void *addr,
size_t len,
int flags
);
}
66 AUE_VFORK STD {
int vfork(void);
}
67 AUE_NULL OBSOL vread
68 AUE_NULL OBSOL vwrite
69 AUE_SBRK STD {
int sbrk(
int incr
);
}
70 AUE_SSTK STD {
int sstk(
int incr
);
}
71 AUE_MMAP COMPAT {
void *mmap(
_In_ void *addr,
int len,
int prot,
int flags,
int fd,
long pos
);
}
72 AUE_O_VADVISE COMPAT11 {
int vadvise(
int anom
);
}
73 AUE_MUNMAP STD {
int munmap(
_In_ void *addr,
size_t len
);
}
74 AUE_MPROTECT STD {
int mprotect(
_In_ void *addr,
size_t len,
int prot
);
}
75 AUE_MADVISE STD {
int madvise(
_In_ void *addr,
size_t len,
int behav
);
}
76 AUE_NULL OBSOL vhangup
77 AUE_NULL OBSOL vlimit
78 AUE_MINCORE STD {
int mincore(
_In_ const void *addr,
size_t len,
_Out_writes_bytes_(len/PAGE_SIZE) char *vec
);
}
79 AUE_GETGROUPS STD {
int getgroups(
u_int gidsetsize,
_Out_writes_opt_(gidsetsize) gid_t *gidset
);
}
80 AUE_SETGROUPS STD {
int setgroups(
u_int gidsetsize,
_In_reads_(gidsetsize) gid_t *gidset
);
}
81 AUE_GETPGRP STD {
int getpgrp(void);
}
82 AUE_SETPGRP STD {
int setpgid(
int pid,
int pgid
);
}
83 AUE_SETITIMER STD {
int setitimer(
u_int which,
_In_ struct itimerval *itv,
_Out_opt_ struct itimerval *oitv
);
}
84 AUE_WAIT4 COMPAT {
int wait(void);
}
85 AUE_SWAPON STD {
int swapon(
_In_z_ const char *name
);
}
86 AUE_GETITIMER STD {
int getitimer(
u_int which,
_Out_ struct itimerval *itv
);
}
87 AUE_SYSCTL COMPAT {
int gethostname(
_Out_writes_z_(len) char *hostname,
u_int len
);
}
88 AUE_SYSCTL COMPAT {
int sethostname(
_In_reads_z_(len) char *hostname,
u_int len
);
}
89 AUE_GETDTABLESIZE STD {
int getdtablesize(void);
}
90 AUE_DUP2 STD {
int dup2(
u_int from,
u_int to
);
}
91 AUE_NULL UNIMPL getdopt
92 AUE_FCNTL STD {
int fcntl(
int fd,
int cmd,
long arg
);
}
; XXX should be { int fcntl(int fd, int cmd, ...); }
; but we're not ready for varargs.
93 AUE_SELECT STD {
int select(
int nd,
_Inout_opt_ fd_set *in,
_Inout_opt_ fd_set *ou,
_Inout_opt_ fd_set *ex,
_In_opt_ struct timeval *tv
);
}
94 AUE_NULL UNIMPL setdopt
95 AUE_FSYNC STD {
int fsync(
int fd
);
}
96 AUE_SETPRIORITY STD {
int setpriority(
int which,
int who,
int prio
);
}
97 AUE_SOCKET STD {
int socket(
int domain,
int type,
int protocol
);
}
98 AUE_CONNECT STD {
int connect(
int s,
_In_reads_bytes_(namelen) const struct sockaddr *name,
int namelen
);
}
99 AUE_ACCEPT COMPAT {
int accept(
int s,
_Out_writes_bytes_opt_(*anamelen) struct sockaddr *name,
int *anamelen
);
}
100 AUE_GETPRIORITY STD {
int getpriority(
int which,
int who
);
}
101 AUE_SEND COMPAT {
int send(
int s,
_In_reads_bytes_(len) const void *buf,
int len,
int flags
);
}
102 AUE_RECV COMPAT {
int recv(
int s,
_Out_writes_bytes_(len) void *buf,
int len,
int flags
);
}
103 AUE_SIGRETURN COMPAT {
int sigreturn(
_In_ struct osigcontext *sigcntxp
);
}
104 AUE_BIND STD {
int bind(
int s,
_In_reads_bytes_(namelen) const struct sockaddr *name,
int namelen
);
}
105 AUE_SETSOCKOPT STD {
int setsockopt(
int s,
int level,
int name,
_In_reads_bytes_opt_(valsize) const void *val,
int valsize
);
}
106 AUE_LISTEN STD {
int listen(
int s,
int backlog
);
}
107 AUE_NULL OBSOL vtimes
108 AUE_NULL COMPAT {
int sigvec(
int signum,
_In_opt_ struct sigvec *nsv,
_Out_opt_ struct sigvec *osv
);
}
109 AUE_NULL COMPAT {
int sigblock(
int mask
);
}
110 AUE_NULL COMPAT {
int sigsetmask(
int mask
);
}
111 AUE_NULL COMPAT {
int sigsuspend(
osigset_t mask
);
}
; XXX note nonstandard (bogus) calling convention - the libc stub passes
; us the mask, not a pointer to it.
112 AUE_NULL COMPAT {
int sigstack(
_In_opt_ struct sigstack *nss,
_Out_opt_ struct sigstack *oss
);
}
113 AUE_RECVMSG COMPAT {
int recvmsg(
int s,
_Inout_ struct omsghdr *msg,
int flags
);
}
114 AUE_SENDMSG COMPAT {
int sendmsg(
int s,
_In_ const void *msg,
int flags
);
}
115 AUE_NULL OBSOL vtrace
116 AUE_GETTIMEOFDAY STD {
int gettimeofday(
_Out_ struct timeval *tp,
_Out_opt_ struct timezone *tzp
);
}
117 AUE_GETRUSAGE STD {
int getrusage(
int who,
_Out_ struct rusage *rusage
);
}
118 AUE_GETSOCKOPT STD {
int getsockopt(
int s,
int level,
int name,
_Out_writes_bytes_opt_(*avalsize) void *val,
_Inout_ int *avalsize
);
}
119 AUE_NULL UNIMPL resuba (BSD/OS 2.x)
120 AUE_READV STD {
int readv(
int fd,
_Inout_updates_(iovcnt) struct iovec *iovp,
u_int iovcnt
);
}
121 AUE_WRITEV STD {
int writev(
int fd,
_In_reads_opt_(iovcnt) struct iovec *iovp,
u_int iovcnt
);
}
122 AUE_SETTIMEOFDAY STD {
int settimeofday(
_In_ struct timeval *tv,
_In_opt_ struct timezone *tzp
);
}
123 AUE_FCHOWN STD {
int fchown(
int fd,
int uid,
int gid
);
}
124 AUE_FCHMOD STD {
int fchmod(
int fd,
mode_t mode
);
}
125 AUE_RECVFROM COMPAT|NOARGS {
int recvfrom(
int s,
_Out_writes_(len) void *buf,
size_t len,
int flags,
_Out_writes_bytes_(*fromlenaddr) struct sockaddr *from,
_Inout_ int *fromlenaddr
);
} recvfrom recvfrom_args int
126 AUE_SETREUID STD {
int setreuid(
int ruid,
int euid
);
}
127 AUE_SETREGID STD {
int setregid(
int rgid,
int egid
);
}
128 AUE_RENAME STD {
int rename(
_In_z_ const char *from,
_In_z_ const char *to
);
}
129 AUE_TRUNCATE COMPAT {
int truncate(
_In_z_ const char *path,
long length
);
}
130 AUE_FTRUNCATE COMPAT {
int ftruncate(
int fd,
long length
);
}
131 AUE_FLOCK STD {
int flock(
int fd,
int how
);
}
132 AUE_MKFIFO STD {
int mkfifo(
_In_z_ const char *path,
mode_t mode
);
}
133 AUE_SENDTO STD {
int sendto(
int s,
_In_reads_bytes_(len) const void *buf,
size_t len,
int flags,
_In_reads_bytes_opt_(tolen) const struct sockaddr *to,
int tolen
);
}
134 AUE_SHUTDOWN STD {
int shutdown(
int s,
int how
);
}
135 AUE_SOCKETPAIR STD {
int socketpair(
int domain,
int type,
int protocol,
_Out_writes_(2) int *rsv
);
}
136 AUE_MKDIR STD {
int mkdir(
_In_z_ const char *path,
mode_t mode
);
}
137 AUE_RMDIR STD {
int rmdir(
_In_z_ const char *path
);
}
138 AUE_UTIMES STD {
int utimes(
_In_z_ const char *path,
_In_ struct timeval *tptr
);
}
139 AUE_NULL OBSOL 4.2 sigreturn
140 AUE_ADJTIME STD {
int adjtime(
_In_ struct timeval *delta,
_Out_opt_ struct timeval *olddelta
);
}
141 AUE_GETPEERNAME COMPAT {
int getpeername(
int fdes,
_Out_writes_bytes_(*alen) struct sockaddr *asa,
_Inout_opt_ int *alen
);
}
142 AUE_SYSCTL COMPAT {
long gethostid(void);
}
143 AUE_SYSCTL COMPAT {
int sethostid(
long hostid
);
}
144 AUE_GETRLIMIT COMPAT {
int getrlimit(
u_int which,
_Out_ struct orlimit *rlp
);
}
145 AUE_SETRLIMIT COMPAT {
int setrlimit(
u_int which,
_Out_ struct orlimit *rlp
);
}
146 AUE_KILLPG COMPAT {
int killpg(
int pgid,
int signum
);
}
147 AUE_SETSID STD {
int setsid(void);
}
148 AUE_QUOTACTL STD {
int quotactl(
_In_z_ const char *path,
int cmd,
int uid,
_In_ void *arg
);
}
149 AUE_O_QUOTA COMPAT {
int quota(void);
}
150 AUE_GETSOCKNAME COMPAT|NOARGS {
int getsockname(
int fdec,
_Out_writes_bytes_(*alen) struct sockaddr *asa,
_Inout_ int *alen
);
} getsockname getsockname_args int
; Syscalls 151-180 inclusive are reserved for vendor-specific
; system calls. (This includes various calls added for compatibity
; with other Unix variants.)
; Some of these calls are now supported by BSD.
151 AUE_NULL UNIMPL sem_lock (BSD/OS 2.x)
152 AUE_NULL UNIMPL sem_wakeup (BSD/OS 2.x)
153 AUE_NULL UNIMPL asyncdaemon (BSD/OS 2.x)
; 154 is initialised by the NLM code, if present.
154 AUE_NULL NOSTD {
int nlm_syscall(
int debug_level,
int grace_period,
int addr_count,
_In_reads_(addr_count) char **addrs
);
}
; 155 is initialized by the NFS code, if present.
155 AUE_NFS_SVC NOSTD {
int nfssvc(
int flag,
_In_ void *argp
);
}
156 AUE_GETDIRENTRIES COMPAT {
int getdirentries(
int fd,
_Out_writes_bytes_(count) char *buf,
u_int count,
_Out_ long *basep
);
}
157 AUE_STATFS COMPAT4 {
int statfs(
_In_z_ const char *path,
_Out_ struct ostatfs *buf
);
}
158 AUE_FSTATFS COMPAT4 {
int fstatfs(
int fd,
_Out_ struct ostatfs *buf
);
}
159 AUE_NULL UNIMPL nosys
160 AUE_LGETFH STD {
int lgetfh(
_In_z_ const char *fname,
_Out_ struct fhandle *fhp
);
}
161 AUE_NFS_GETFH STD {
int getfh(
_In_z_ const char *fname,