1 $FreeBSD: releng/6.1/sys/compat/freebsd32/syscalls.master 154919 2006-01-27 17:17:05Z ambrisko $
2 ; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94
3 ; from: src/sys/kern/syscalls.master 1.107
4 ;
5 ; System call name/number master file.
6 ; Processed to created init_sysent.c, syscalls.c and syscall.h.
7
8 ; Columns: number [M]type nargs name alt{name,tag,rtyp}/comments
9 ; number system call number, must be in order
10 ; audit the audit event associated with the system call
11 ; A value of AUE_NULL means no auditing, but it also means that
12 ; there is no audit event for the call at this time. For the
13 ; case where the event exists, but we don't want auditing, the
14 ; event should be #defined to AUE_NULL in audit_kevents.h.
15 ; type one of [M]STD, [M]OBSOL, [M]UNIMPL, [M]COMPAT, [M]CPT_NOA,
16 ; [M]LIBCOMPAT, [M]NODEF, [M]NOARGS, [M]NOPROTO, [M]NOIMPL,
17 ; [M]NOSTD
18 ; name psuedo-prototype of syscall routine
19 ; If one of the following alts is different, then all appear:
20 ; altname name of system call if different
21 ; alttag name of args struct tag if different from [o]`name'"_args"
22 ; altrtyp return type if not int (bogus - syscalls always return int)
23 ; for UNIMPL/OBSOL, name continues with comments
24
25 ; types:
26 ; [M] e.g. like MSTD -- means the system call is MP-safe. If no
27 ; M prefix is used, the syscall wrapper will obtain the Giant
28 ; lock for the syscall.
29 ; STD always included
30 ; COMPAT included on COMPAT #ifdef
31 ; LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
32 ; OBSOL obsolete, not included in system, only specifies name
33 ; UNIMPL not implemented, placeholder only
34 ; NOSTD implemented but as a lkm that can be statically
35 ; compiled in sysent entry will be filled with lkmsys
36 ; so the SYSCALL_MODULE macro works
37
38 ; #ifdef's, etc. may be included, and are copied to the output files.
39
40 #include <sys/param.h>
41 #include <sys/sysent.h>
42 #include <sys/sysproto.h>
43 #include <sys/mount.h>
44 #include <compat/freebsd32/freebsd32.h>
45 #include <compat/freebsd32/freebsd32_proto.h>
46
47 ; Reserved/unimplemented system calls in the range 0-150 inclusive
48 ; are reserved for use in future Berkeley releases.
49 ; Additional system calls implemented in vendor and other
50 ; redistributions should be placed in the reserved range at the end
51 ; of the current calls.
52
53 0 AUE_NULL MNOPROTO { int nosys(void); } syscall nosys_args int
54 1 AUE_NULL MNOPROTO { void sys_exit(int rval); } exit \
55 sys_exit_args void
56 2 AUE_NULL MNOPROTO { int fork(void); }
57 3 AUE_NULL MNOPROTO { ssize_t read(int fd, void *buf, \
58 size_t nbyte); }
59 4 AUE_NULL MNOPROTO { ssize_t write(int fd, const void *buf, \
60 size_t nbyte); }
61 5 AUE_NULL MNOPROTO { int open(char *path, int flags, \
62 int mode); }
63 6 AUE_NULL MNOPROTO { int close(int fd); }
64 7 AUE_NULL MSTD { int freebsd32_wait4(int pid, int *status, \
65 int options, struct rusage32 *rusage); }
66 8 AUE_NULL OBSOL old creat
67 9 AUE_NULL MNOPROTO { int link(char *path, char *link); }
68 10 AUE_NULL MNOPROTO { int unlink(char *path); }
69 11 AUE_NULL OBSOL execv
70 12 AUE_NULL MNOPROTO { int chdir(char *path); }
71 13 AUE_NULL MNOPROTO { int fchdir(int fd); }
72 14 AUE_NULL MNOPROTO { int mknod(char *path, int mode, int dev); }
73 15 AUE_NULL MNOPROTO { int chmod(char *path, int mode); }
74 16 AUE_NULL MNOPROTO { int chown(char *path, int uid, int gid); }
75 17 AUE_NULL MNOPROTO { int obreak(char *nsize); } break \
76 obreak_args int
77 18 AUE_NULL MCOMPAT4 { int freebsd32_getfsstat( \
78 struct statfs32 *buf, long bufsize, \
79 int flags); }
80 19 AUE_NULL OBSOL olseek
81 20 AUE_NULL MNOPROTO { pid_t getpid(void); }
82 21 AUE_NULL NOPROTO { int mount(char *type, char *path, \
83 int flags, caddr_t data); }
84 22 AUE_NULL NOPROTO { int unmount(char *path, int flags); }
85 23 AUE_NULL MNOPROTO { int setuid(uid_t uid); }
86 24 AUE_NULL MNOPROTO { uid_t getuid(void); }
87 25 AUE_NULL MNOPROTO { uid_t geteuid(void); }
88 26 AUE_NULL MNOPROTO { int ptrace(int req, pid_t pid, \
89 caddr_t addr, int data); }
90 ; XXX implement
91 27 AUE_NULL MSTD { int freebsd32_recvmsg(int s, struct msghdr32 *msg, \
92 int flags); }
93 28 AUE_NULL MSTD { int freebsd32_sendmsg(int s, struct msghdr32 *msg, \
94 int flags); }
95 29 AUE_NULL MSTD { int freebsd32_recvfrom(int s, u_int32_t buf, \
96 u_int32_t len, int flags, u_int32_t from, \
97 u_int32_t fromlenaddr); }
98 30 AUE_NULL MNOPROTO { int accept(int s, caddr_t name, \
99 int *anamelen); }
100 31 AUE_NULL MNOPROTO { int getpeername(int fdes, caddr_t asa, \
101 int *alen); }
102 32 AUE_NULL MNOPROTO { int getsockname(int fdes, caddr_t asa, \
103 int *alen); }
104 33 AUE_NULL MNOPROTO { int access(char *path, int flags); }
105 34 AUE_NULL MNOPROTO { int chflags(char *path, int flags); }
106 35 AUE_NULL MNOPROTO { int fchflags(int fd, int flags); }
107 36 AUE_NULL MNOPROTO { int sync(void); }
108 37 AUE_NULL MNOPROTO { int kill(int pid, int signum); }
109 38 AUE_NULL UNIMPL ostat
110 39 AUE_NULL MNOPROTO { pid_t getppid(void); }
111 40 AUE_NULL UNIMPL olstat
112 41 AUE_NULL MNOPROTO { int dup(u_int fd); }
113 42 AUE_NULL MNOPROTO { int pipe(void); }
114 43 AUE_NULL MNOPROTO { gid_t getegid(void); }
115 44 AUE_NULL MNOPROTO { int profil(caddr_t samples, size_t size, \
116 size_t offset, u_int scale); }
117 45 AUE_NULL MNOPROTO { int ktrace(const char *fname, int ops, \
118 int facs, int pid); }
119 46 AUE_NULL MCOMPAT { int freebsd32_sigaction( int signum, \
120 struct osigaction32 *nsa, \
121 struct osigaction32 *osa); }
122 47 AUE_NULL MNOPROTO { gid_t getgid(void); }
123 48 AUE_NULL MCOMPAT { int freebsd32_sigprocmask(int how, \
124 osigset_t mask); }
125 49 AUE_NULL MNOPROTO { int getlogin(char *namebuf, \
126 u_int namelen); }
127 50 AUE_NULL MNOPROTO { int setlogin(char *namebuf); }
128 51 AUE_NULL MNOPROTO { int acct(char *path); }
129 52 AUE_NULL MCOMPAT { int freebsd32_sigpending(void); }
130 53 AUE_NULL MSTD { int freebsd32_sigaltstack( \
131 struct sigaltstack32 *ss, \
132 struct sigaltstack32 *oss); }
133 54 AUE_NULL MNOPROTO { int ioctl(int fd, u_long com, \
134 caddr_t data); }
135 55 AUE_NULL MNOPROTO { int reboot(int opt); }
136 56 AUE_NULL MNOPROTO { int revoke(char *path); }
137 57 AUE_NULL MNOPROTO { int symlink(char *path, char *link); }
138 58 AUE_NULL MNOPROTO { int readlink(char *path, char *buf, \
139 int count); }
140 59 AUE_NULL MSTD { int freebsd32_execve(char *fname, \
141 u_int32_t *argv, u_int32_t *envv); }
142 60 AUE_NULL MNOPROTO { int umask(int newmask); } umask \
143 umask_args int
144 61 AUE_NULL MNOPROTO { int chroot(char *path); }
145 62 AUE_NULL OBSOL ofstat
146 63 AUE_NULL OBSOL ogetkerninfo
147 64 AUE_NULL OBSOL ogetpagesize
148 ; XXX implement (not OBSOL at all)
149 65 AUE_NULL MNOPROTO { int msync(void *addr, size_t len, \
150 int flags); }
151 66 AUE_NULL MNOPROTO { int vfork(void); }
152 67 AUE_NULL OBSOL vread
153 68 AUE_NULL OBSOL vwrite
154 69 AUE_NULL MNOPROTO { int sbrk(int incr); }
155 70 AUE_NULL MNOPROTO { int sstk(int incr); }
156 71 AUE_NULL OBSOL ommap
157 72 AUE_NULL MNOPROTO { int ovadvise(int anom); } vadvise \
158 ovadvise_args int
159 73 AUE_NULL MNOPROTO { int munmap(void *addr, size_t len); }
160 74 AUE_NULL MNOPROTO { int mprotect(const void *addr, \
161 size_t len, int prot); }
162 75 AUE_NULL MNOPROTO { int madvise(void *addr, size_t len, \
163 int behav); }
164 76 AUE_NULL OBSOL vhangup
165 77 AUE_NULL OBSOL vlimit
166 78 AUE_NULL MNOPROTO { int mincore(const void *addr, size_t len, \
167 char *vec); }
168 79 AUE_NULL MNOPROTO { int getgroups(u_int gidsetsize, \
169 gid_t *gidset); }
170 80 AUE_NULL MNOPROTO { int setgroups(u_int gidsetsize, \
171 gid_t *gidset); }
172 81 AUE_NULL MNOPROTO { int getpgrp(void); }
173 82 AUE_NULL MNOPROTO { int setpgid(int pid, int pgid); }
174 83 AUE_NULL MSTD { int freebsd32_setitimer(u_int which, \
175 struct itimerval32 *itv, \
176 struct itimerval32 *oitv); }
177 84 AUE_NULL OBSOL owait
178 ; XXX implement
179 85 AUE_NULL OBSOL oswapon
180 86 AUE_NULL MSTD { int freebsd32_getitimer(u_int which, \
181 struct itimerval32 *itv); }
182 87 AUE_NULL OBSOL ogethostname
183 88 AUE_NULL OBSOL osethostname
184 89 AUE_NULL MNOPROTO { int getdtablesize(void); }
185 90 AUE_NULL MNOPROTO { int dup2(u_int from, u_int to); }
186 91 AUE_NULL UNIMPL getdopt
187 92 AUE_NULL MNOPROTO { int fcntl(int fd, int cmd, long arg); }
188 93 AUE_NULL MSTD { int freebsd32_select(int nd, fd_set *in, \
189 fd_set *ou, fd_set *ex, \
190 struct timeval32 *tv); }
191 ; XXX need to override for big-endian - little-endian should work fine.
192 94 AUE_NULL UNIMPL setdopt
193 95 AUE_NULL MNOPROTO { int fsync(int fd); }
194 96 AUE_NULL MNOPROTO { int setpriority(int which, int who, \
195 int prio); }
196 97 AUE_NULL MNOPROTO { int socket(int domain, int type, \
197 int protocol); }
198 98 AUE_NULL MNOPROTO { int connect(int s, caddr_t name, \
199 int namelen); }
200 99 AUE_NULL OBSOL oaccept
201 100 AUE_NULL MNOPROTO { int getpriority(int which, int who); }
202 101 AUE_NULL OBSOL osend
203 102 AUE_NULL OBSOL orecv
204 103 AUE_NULL OBSOL osigreturn
205 104 AUE_NULL MNOPROTO { int bind(int s, caddr_t name, \
206 int namelen); }
207 105 AUE_NULL MNOPROTO { int setsockopt(int s, int level, \
208 int name, caddr_t val, int valsize); }
209 106 AUE_NULL MNOPROTO { int listen(int s, int backlog); }
210 107 AUE_NULL OBSOL vtimes
211 108 AUE_NULL MCOMPAT { int freebsd32_sigvec(int signum, \
212 struct sigvec32 *nsv, \
213 struct sigvec32 *osv); }
214 109 AUE_NULL MCOMPAT { int freebsd32_sigblock(int mask); }
215 110 AUE_NULL MCOMPAT { int freebsd32_sigsetmask( int mask); }
216 111 AUE_NULL MCOMPAT { int freebsd32_sigsuspend( int mask); }
217 112 AUE_NULL MCOMPAT { int freebsd32_sigstack( \
218 struct sigstack32 *nss, \
219 struct sigstack32 *oss); }
220 113 AUE_NULL OBSOL orecvmsg
221 114 AUE_NULL OBSOL osendmsg
222 115 AUE_NULL OBSOL vtrace
223 116 AUE_NULL MSTD { int freebsd32_gettimeofday( \
224 struct timeval32 *tp, \
225 struct timezone *tzp); }
226 117 AUE_NULL MSTD { int freebsd32_getrusage(int who, \
227 struct rusage32 *rusage); }
228 118 AUE_NULL MNOPROTO { int getsockopt(int s, int level, \
229 int name, caddr_t val, int *avalsize); }
230 119 AUE_NULL UNIMPL resuba (BSD/OS 2.x)
231 120 AUE_NULL MSTD { int freebsd32_readv(int fd, \
232 struct iovec32 *iovp, u_int iovcnt); }
233 121 AUE_NULL MSTD { int freebsd32_writev(int fd, \
234 struct iovec32 *iovp, u_int iovcnt); }
235 122 AUE_NULL MSTD { int freebsd32_settimeofday( \
236 struct timeval32 *tv, \
237 struct timezone *tzp); }
238 123 AUE_NULL MNOPROTO { int fchown(int fd, int uid, int gid); }
239 124 AUE_NULL MNOPROTO { int fchmod(int fd, int mode); }
240 125 AUE_NULL OBSOL orecvfrom
241 126 AUE_NULL MNOPROTO { int setreuid(int ruid, int euid); }
242 127 AUE_NULL MNOPROTO { int setregid(int rgid, int egid); }
243 128 AUE_NULL MNOPROTO { int rename(char *from, char *to); }
244 129 AUE_NULL OBSOL otruncate
245 130 AUE_NULL OBSOL ftruncate
246 131 AUE_NULL MNOPROTO { int flock(int fd, int how); }
247 132 AUE_NULL MNOPROTO { int mkfifo(char *path, int mode); }
248 133 AUE_NULL MNOPROTO { int sendto(int s, caddr_t buf, \
249 size_t len, int flags, caddr_t to, \
250 int tolen); }
251 134 AUE_NULL MNOPROTO { int shutdown(int s, int how); }
252 135 AUE_NULL MNOPROTO { int socketpair(int domain, int type, \
253 int protocol, int *rsv); }
254 136 AUE_NULL MNOPROTO { int mkdir(char *path, int mode); }
255 137 AUE_NULL MNOPROTO { int rmdir(char *path); }
256 138 AUE_NULL MSTD { int freebsd32_utimes(char *path, \
257 struct timeval32 *tptr); }
258 139 AUE_NULL OBSOL 4.2 sigreturn
259 140 AUE_NULL MSTD { int freebsd32_adjtime( \
260 struct timeval32 *delta, \
261 struct timeval32 *olddelta); }
262 141 AUE_NULL OBSOL ogetpeername
263 142 AUE_NULL OBSOL ogethostid
264 143 AUE_NULL OBSOL sethostid
265 144 AUE_NULL OBSOL getrlimit
266 145 AUE_NULL OBSOL setrlimit
267 146 AUE_NULL OBSOL killpg
268 147 AUE_NULL MNOPROTO { int setsid(void); }
269 148 AUE_NULL MNOPROTO { int quotactl(char *path, int cmd, int uid, \
270 caddr_t arg); }
271 149 AUE_NULL OBSOL oquota
272 150 AUE_NULL OBSOL ogetsockname
273
274 ; Syscalls 151-180 inclusive are reserved for vendor-specific
275 ; system calls. (This includes various calls added for compatibity
276 ; with other Unix variants.)
277 ; Some of these calls are now supported by BSD...
278 151 AUE_NULL UNIMPL sem_lock (BSD/OS 2.x)
279 152 AUE_NULL UNIMPL sem_wakeup (BSD/OS 2.x)
280 153 AUE_NULL UNIMPL asyncdaemon (BSD/OS 2.x)
281 154 AUE_NULL UNIMPL nosys
282 ; 155 is initialized by the NFS code, if present.
283 ; XXX this is a problem!!!
284 155 AUE_NULL UNIMPL nfssvc
285 156 AUE_NULL OBSOL ogetdirentries
286 157 AUE_NULL MCOMPAT4 { int freebsd32_statfs(char *path, \
287 struct statfs32 *buf); }
288 158 AUE_NULL MCOMPAT4 { int freebsd32_fstatfs(int fd, \
289 struct statfs32 *buf); }
290 159 AUE_NULL UNIMPL nosys
291 160 AUE_NULL UNIMPL nosys
292 161 AUE_NULL MNOPROTO { int getfh(char *fname, \
293 struct fhandle *fhp); }
294 162 AUE_NULL MNOPROTO { int getdomainname(char *domainname, \
295 int len); }
296 163 AUE_NULL MNOPROTO { int setdomainname(char *domainname, \
297 int len); }
298 164 AUE_NULL MNOPROTO { int uname(struct utsname *name); }
299 165 AUE_NULL MNOPROTO { int sysarch(int op, char *parms); }
300 166 AUE_NULL MNOPROTO { int rtprio(int function, pid_t pid, \
301 struct rtprio *rtp); }
302 167 AUE_NULL UNIMPL nosys
303 168 AUE_NULL UNIMPL nosys
304 169 AUE_NULL MSTD { int freebsd32_semsys(int which, int a2, \
305 int a3, int a4, int a5); }
306 170 AUE_NULL MSTD { int freebsd32_msgsys(int which, int a2, \
307 int a3, int a4, int a5, int a6); }
308 171 AUE_NULL MSTD { int freebsd32_shmsys(int which, int a2, \
309 int a3, int a4); }
310 172 AUE_NULL UNIMPL nosys
311 173 AUE_NULL MSTD { ssize_t freebsd32_pread(int fd, void *buf, \
312 size_t nbyte, int pad, \
313 u_int32_t offsetlo, u_int32_t offsethi); }
314 ; XXX note - bigendian is different
315 174 AUE_NULL MSTD { ssize_t freebsd32_pwrite(int fd, \
316 const void *buf, size_t nbyte, int pad, \
317 u_int32_t offsetlo, u_int32_t offsethi); }
318 ; XXX note - bigendian is different
319 175 AUE_NULL UNIMPL nosys
320 176 AUE_NULL MNOPROTO { int ntp_adjtime(struct timex *tp); }
321 177 AUE_NULL UNIMPL sfork (BSD/OS 2.x)
322 178 AUE_NULL UNIMPL getdescriptor (BSD/OS 2.x)
323 179 AUE_NULL UNIMPL setdescriptor (BSD/OS 2.x)
324 180 AUE_NULL UNIMPL nosys
325
326 ; Syscalls 181-199 are used by/reserved for BSD
327 181 AUE_NULL MNOPROTO { int setgid(gid_t gid); }
328 182 AUE_NULL MNOPROTO { int setegid(gid_t egid); }
329 183 AUE_NULL MNOPROTO { int seteuid(uid_t euid); }
330 184 AUE_NULL UNIMPL lfs_bmapv
331 185 AUE_NULL UNIMPL lfs_markv
332 186 AUE_NULL UNIMPL lfs_segclean
333 187 AUE_NULL UNIMPL lfs_segwait
334 188 AUE_NULL MSTD { int freebsd32_stat(char *path, \
335 struct stat32 *ub); }
336 189 AUE_NULL MSTD { int freebsd32_fstat(int fd, \
337 struct stat32 *ub); }
338 190 AUE_NULL MSTD { int freebsd32_lstat(char *path, \
339 struct stat32 *ub); }
340 191 AUE_NULL MNOPROTO { int pathconf(char *path, int name); }
341 192 AUE_NULL MNOPROTO { int fpathconf(int fd, int name); }
342 193 AUE_NULL UNIMPL nosys
343 194 AUE_NULL MNOPROTO { int getrlimit(u_int which, \
344 struct rlimit *rlp); } getrlimit \
345 __getrlimit_args int
346 195 AUE_NULL MNOPROTO { int setrlimit(u_int which, \
347 struct rlimit *rlp); } setrlimit \
348 __setrlimit_args int
349 196 AUE_NULL MNOPROTO { int getdirentries(int fd, char *buf, \
350 u_int count, long *basep); }
351 197 AUE_NULL MSTD { caddr_t freebsd32_mmap(caddr_t addr, \
352 size_t len, int prot, int flags, int fd, \
353 int pad, u_int32_t poslo, \
354 u_int32_t poshi); }
355 198 AUE_NULL MNOPROTO { int nosys(void); } __syscall \
356 __syscall_args int
357 ; XXX note - bigendian is different
358 199 AUE_NULL MSTD { off_t freebsd32_lseek(int fd, int pad, \
359 u_int32_t offsetlo, u_int32_t offsethi, \
360 int whence); }
361 ; XXX note - bigendian is different
362 200 AUE_NULL MSTD { int freebsd32_truncate(char *path, \
363 int pad, u_int32_t lengthlo, \
364 u_int32_t lengthhi); }
365 ; XXX note - bigendian is different
366 201 AUE_NULL MSTD { int freebsd32_ftruncate(int fd, int pad, \
367 u_int32_t lengthlo, u_int32_t lengthhi); }
368 202 AUE_NULL MSTD { int freebsd32_sysctl(int *name, \
369 u_int namelen, void *old, \
370 u_int32_t *oldlenp, void *new, \
371 u_int32_t newlen); }
372 203 AUE_NULL MNOPROTO { int mlock(const void *addr, \
373 size_t len); }
374 204 AUE_NULL MNOPROTO { int munlock(const void *addr, \
375 size_t len); }
376 205 AUE_NULL MNOPROTO { int undelete(char *path); }
377 206 AUE_NULL MSTD { int freebsd32_futimes(int fd, \
378 struct timeval32 *tptr); }
379 207 AUE_NULL MNOPROTO { int getpgid(pid_t pid); }
380 208 AUE_NULL UNIMPL newreboot (NetBSD)
381 209 AUE_NULL MNOPROTO { int poll(struct pollfd *fds, u_int nfds, \
382 int timeout); }
383
384 ;
385 ; The following are reserved for loadable syscalls
386 ;
387 210 AUE_NULL UNIMPL
388 211 AUE_NULL UNIMPL
389 212 AUE_NULL UNIMPL
390 213 AUE_NULL UNIMPL
391 214 AUE_NULL UNIMPL
392 215 AUE_NULL UNIMPL
393 216 AUE_NULL UNIMPL
394 217 AUE_NULL UNIMPL
395 218 AUE_NULL UNIMPL
396 219 AUE_NULL UNIMPL
397
398 ;
399 ; The following were introduced with NetBSD/4.4Lite-2
400 ; They are initialized by thier respective modules/sysinits
401 ; XXX PROBLEM!!
402 220 AUE_NULL MNOPROTO { int __semctl(int semid, int semnum, \
403 int cmd, union semun *arg); }
404 221 AUE_NULL MNOPROTO { int semget(key_t key, int nsems, \
405 int semflg); }
406 222 AUE_NULL MNOPROTO { int semop(int semid, struct sembuf *sops, \
407 u_int nsops); }
408 223 AUE_NULL UNIMPL semconfig
409 224 AUE_NULL MNOPROTO { int msgctl(int msqid, int cmd, \
410 struct msqid_ds *buf); }
411 225 AUE_NULL MNOPROTO { int msgget(key_t key, int msgflg); }
412 226 AUE_NULL MNOPROTO { int msgsnd(int msqid, void *msgp, \
413 size_t msgsz, int msgflg); }
414 227 AUE_NULL MNOPROTO { int msgrcv(int msqid, void *msgp, \
415 size_t msgsz, long msgtyp, int msgflg); }
416 228 AUE_NULL MNOPROTO { int shmat(int shmid, void *shmaddr, \
417 int shmflg); }
418 229 AUE_NULL MNOPROTO { int shmctl(int shmid, int cmd, \
419 struct shmid_ds *buf); }
420 230 AUE_NULL MNOPROTO { int shmdt(void *shmaddr); }
421 231 AUE_NULL MNOPROTO { int shmget(key_t key, int size, \
422 int shmflg); }
423 ;
424 232 AUE_NULL MSTD { int freebsd32_clock_gettime(clockid_t clock_id, \
425 struct timespec32 *tp); }
426 233 AUE_NULL MSTD { int freebsd32_clock_settime(clockid_t clock_id, \
427 const struct timespec32 *tp); }
428 234 AUE_NULL MSTD { int freebsd32_clock_getres(clockid_t clock_id, \
429 struct timespec32 *tp); }
430 235 AUE_NULL UNIMPL timer_create
431 236 AUE_NULL UNIMPL timer_delete
432 237 AUE_NULL UNIMPL timer_settime
433 238 AUE_NULL UNIMPL timer_gettime
434 239 AUE_NULL UNIMPL timer_getoverrun
435 240 AUE_NULL MSTD { int freebsd32_nanosleep( \
436 const struct timespec32 *rqtp, \
437 struct timespec32 *rmtp); }
438 241 AUE_NULL UNIMPL nosys
439 242 AUE_NULL UNIMPL nosys
440 243 AUE_NULL UNIMPL nosys
441 244 AUE_NULL UNIMPL nosys
442 245 AUE_NULL UNIMPL nosys
443 246 AUE_NULL UNIMPL nosys
444 247 AUE_NULL UNIMPL nosys
445 248 AUE_NULL UNIMPL ntp_gettime
446 249 AUE_NULL UNIMPL nosys
447 ; syscall numbers initially used in OpenBSD
448 250 AUE_NULL MNOPROTO { int minherit(void *addr, size_t len, \
449 int inherit); }
450 251 AUE_NULL MNOPROTO { int rfork(int flags); }
451 252 AUE_NULL MNOPROTO { int openbsd_poll(struct pollfd *fds, \
452 u_int nfds, int timeout); }
453 253 AUE_NULL MNOPROTO { int issetugid(void); }
454 254 AUE_NULL MNOPROTO { int lchown(char *path, int uid, int gid); }
455 255 AUE_NULL UNIMPL nosys
456 256 AUE_NULL UNIMPL nosys
457 257 AUE_NULL UNIMPL nosys
458 258 AUE_NULL UNIMPL nosys
459 259 AUE_NULL UNIMPL nosys
460 260 AUE_NULL UNIMPL nosys
461 261 AUE_NULL UNIMPL nosys
462 262 AUE_NULL UNIMPL nosys
463 263 AUE_NULL UNIMPL nosys
464 264 AUE_NULL UNIMPL nosys
465 265 AUE_NULL UNIMPL nosys
466 266 AUE_NULL UNIMPL nosys
467 267 AUE_NULL UNIMPL nosys
468 268 AUE_NULL UNIMPL nosys
469 269 AUE_NULL UNIMPL nosys
470 270 AUE_NULL UNIMPL nosys
471 271 AUE_NULL UNIMPL nosys
472 272 AUE_NULL MNOPROTO { int getdents(int fd, char *buf, \
473 size_t count); }
474 273 AUE_NULL UNIMPL nosys
475 274 AUE_NULL MNOPROTO { int lchmod(char *path, mode_t mode); }
476 275 AUE_NULL MNOPROTO { int lchown(char *path, uid_t uid, \
477 gid_t gid); } netbsd_lchown \
478 lchown_args int
479 276 AUE_NULL MSTD { int freebsd32_lutimes(char *path, \
480 struct timeval32 *tptr); }
481 277 AUE_NULL MNOPROTO { int msync(void *addr, size_t len, \
482 int flags); } netbsd_msync msync_args int
483 278 AUE_NULL MNOPROTO { int nstat(char *path, struct nstat *ub); }
484 279 AUE_NULL MNOPROTO { int nfstat(int fd, struct nstat *sb); }
485 280 AUE_NULL MNOPROTO { int nlstat(char *path, struct nstat *ub); }
486 281 AUE_NULL UNIMPL nosys
487 282 AUE_NULL UNIMPL nosys
488 283 AUE_NULL UNIMPL nosys
489 284 AUE_NULL UNIMPL nosys
490 285 AUE_NULL UNIMPL nosys
491 286 AUE_NULL UNIMPL nosys
492 287 AUE_NULL UNIMPL nosys
493 288 AUE_NULL UNIMPL nosys
494 ; 289 and 290 from NetBSD (OpenBSD: 267 and 268)
495 289 AUE_NULL MSTD { ssize_t freebsd32_preadv(int fd, \
496 struct iovec32 *iovp, \
497 u_int iovcnt, off_t offset); }
498 ; XXX note - bigendian is different
499 290 AUE_NULL MSTD { ssize_t freebsd32_pwritev(int fd, \
500 struct iovec32 *iovp, \
501 u_int iovcnt, off_t offset); }
502 ; XXX note - bigendian is different
503 291 AUE_NULL UNIMPL nosys
504 292 AUE_NULL UNIMPL nosys
505 293 AUE_NULL UNIMPL nosys
506 294 AUE_NULL UNIMPL nosys
507 295 AUE_NULL UNIMPL nosys
508 296 AUE_NULL UNIMPL nosys
509 ; XXX 297 is 300 in NetBSD
510 297 AUE_NULL MCOMPAT4 { int freebsd32_fhstatfs( \
511 const struct fhandle *u_fhp, \
512 struct statfs32 *buf); }
513 298 AUE_NULL MNOPROTO { int fhopen(const struct fhandle *u_fhp, \
514 int flags); }
515 299 AUE_NULL MNOPROTO { int fhstat(const struct fhandle *u_fhp, \
516 struct stat *sb); }
517 ; syscall numbers for FreeBSD
518 300 AUE_NULL MNOPROTO { int modnext(int modid); }
519 301 AUE_NULL MSTD { int freebsd32_modstat(int modid, \
520 struct module_stat32* stat); }
521 302 AUE_NULL MNOPROTO { int modfnext(int modid); }
522 303 AUE_NULL MNOPROTO { int modfind(const char *name); }
523 304 AUE_NULL MNOPROTO { int kldload(const char *file); }
524 305 AUE_NULL MNOPROTO { int kldunload(int fileid); }
525 306 AUE_NULL MNOPROTO { int kldfind(const char *file); }
526 307 AUE_NULL MNOPROTO { int kldnext(int fileid); }
527 308 AUE_NULL MNOPROTO { int kldstat(int fileid, \
528 struct kld_file_stat* stat); }
529 309 AUE_NULL MNOPROTO { int kldfirstmod(int fileid); }
530 310 AUE_NULL MNOPROTO { int getsid(pid_t pid); }
531 311 AUE_NULL MNOPROTO { int setresuid(uid_t ruid, uid_t euid, \
532 uid_t suid); }
533 312 AUE_NULL MNOPROTO { int setresgid(gid_t rgid, gid_t egid, \
534 gid_t sgid); }
535 313 AUE_NULL OBSOL signanosleep
536 314 AUE_NULL UNIMPL aio_return
537 315 AUE_NULL UNIMPL aio_suspend
538 316 AUE_NULL UNIMPL aio_cancel
539 317 AUE_NULL UNIMPL aio_error
540 318 AUE_NULL UNIMPL aio_read
541 319 AUE_NULL UNIMPL aio_write
542 320 AUE_NULL UNIMPL lio_listio
543 321 AUE_NULL MNOPROTO { int yield(void); }
544 322 AUE_NULL OBSOL thr_sleep
545 323 AUE_NULL OBSOL thr_wakeup
546 324 AUE_NULL MNOPROTO { int mlockall(int how); }
547 325 AUE_NULL MNOPROTO { int munlockall(void); }
548 326 AUE_NULL MNOPROTO { int __getcwd(u_char *buf, u_int buflen); }
549
550 327 AUE_NULL MNOPROTO { int sched_setparam (pid_t pid, \
551 const struct sched_param *param); }
552 328 AUE_NULL MNOPROTO { int sched_getparam (pid_t pid, \
553 struct sched_param *param); }
554
555 329 AUE_NULL MNOPROTO { int sched_setscheduler (pid_t pid, \
556 int policy, \
557 const struct sched_param *param); }
558 330 AUE_NULL MNOPROTO { int sched_getscheduler (pid_t pid); }
559
560 331 AUE_NULL MNOPROTO { int sched_yield (void); }
561 332 AUE_NULL MNOPROTO { int sched_get_priority_max (int policy); }
562 333 AUE_NULL MNOPROTO { int sched_get_priority_min (int policy); }
563 334 AUE_NULL MNOPROTO { int sched_rr_get_interval (pid_t pid, \
564 struct timespec *interval); }
565 335 AUE_NULL MNOPROTO { int utrace(const void *addr, size_t len); }
566 ; XXX note - bigendian is different
567 336 AUE_NULL MCOMPAT4 { int freebsd32_sendfile(int fd, int s, \
568 u_int32_t offsetlo, u_int32_t offsethi, \
569 size_t nbytes, struct sf_hdtr *hdtr, \
570 off_t *sbytes, int flags); }
571 337 AUE_NULL MNOPROTO { int kldsym(int fileid, int cmd, \
572 void *data); }
573 338 AUE_NULL MNOPROTO { int jail(struct jail *jail); }
574 339 AUE_NULL UNIMPL pioctl
575 340 AUE_NULL MNOPROTO { int sigprocmask(int how, \
576 const sigset_t *set, sigset_t *oset); }
577 341 AUE_NULL MNOPROTO { int sigsuspend(const sigset_t *sigmask); }
578 342 AUE_NULL MCOMPAT4 { int freebsd32_sigaction(int sig, \
579 struct sigaction32 *act, \
580 struct sigaction32 *oact); }
581 343 AUE_NULL MNOPROTO { int sigpending(sigset_t *set); }
582 344 AUE_NULL MCOMPAT4 { int freebsd32_sigreturn( \
583 const struct freebsd4_freebsd32_ucontext *sigcntxp); }
584 ; XXX implement
585 345 AUE_NULL UNIMPL sigtimedwait
586 ; XXX implement
587 346 AUE_NULL UNIMPL sigwaitinfo
588 347 AUE_NULL MNOPROTO { int __acl_get_file(const char *path, \
589 acl_type_t type, struct acl *aclp); }
590 348 AUE_NULL MNOPROTO { int __acl_set_file(const char *path, \
591 acl_type_t type, struct acl *aclp); }
592 349 AUE_NULL MNOPROTO { int __acl_get_fd(int filedes, \
593 acl_type_t type, struct acl *aclp); }
594 350 AUE_NULL MNOPROTO { int __acl_set_fd(int filedes, \
595 acl_type_t type, struct acl *aclp); }
596 351 AUE_NULL MNOPROTO { int __acl_delete_file(const char *path, \
597 acl_type_t type); }
598 352 AUE_NULL MNOPROTO { int __acl_delete_fd(int filedes, \
599 acl_type_t type); }
600 353 AUE_NULL MNOPROTO { int __acl_aclcheck_file(const char *path, \
601 acl_type_t type, struct acl *aclp); }
602 354 AUE_NULL MNOPROTO { int __acl_aclcheck_fd(int filedes, \
603 acl_type_t type, struct acl *aclp); }
604 355 AUE_NULL NOPROTO { int extattrctl(const char *path, int cmd, \
605 const char *filename, int attrnamespace, \
606 const char *attrname); }
607 356 AUE_NULL NOPROTO { int extattr_set_file(const char *path, \
608 int attrnamespace, const char *attrname, \
609 void *data, size_t nbytes); }
610 357 AUE_NULL NOPROTO { ssize_t extattr_get_file(const char *path, \
611 int attrnamespace, const char *attrname, \
612 void *data, size_t nbytes); }
613 358 AUE_NULL NOPROTO { int extattr_delete_file(const char *path, \
614 int attrnamespace, \
615 const char *attrname); }
616 359 AUE_NULL UNIMPL aio_waitcomplete
617 360 AUE_NULL MNOPROTO { int getresuid(uid_t *ruid, uid_t *euid, \
618 uid_t *suid); }
619 361 AUE_NULL MNOPROTO { int getresgid(gid_t *rgid, gid_t *egid, \
620 gid_t *sgid); }
621 362 AUE_NULL MNOPROTO { int kqueue(void); }
622 363 AUE_NULL MSTD { int freebsd32_kevent(int fd, \
623 const struct kevent32 *changelist, \
624 int nchanges, \
625 struct kevent32 *eventlist, int nevents, \
626 const struct timespec32 *timeout); }
627 364 AUE_NULL UNIMPL __cap_get_proc
628 365 AUE_NULL UNIMPL __cap_set_proc
629 366 AUE_NULL UNIMPL __cap_get_fd
630 367 AUE_NULL UNIMPL __cap_get_file
631 368 AUE_NULL UNIMPL __cap_set_fd
632 369 AUE_NULL UNIMPL __cap_set_file
633 370 AUE_NULL UNIMPL lkmressys
634 371 AUE_NULL NOPROTO { int extattr_set_fd(int fd, \
635 int attrnamespace, const char *attrname, \
636 void *data, size_t nbytes); }
637 372 AUE_NULL NOPROTO { ssize_t extattr_get_fd(int fd, \
638 int attrnamespace, const char *attrname, \
639 void *data, size_t nbytes); }
640 373 AUE_NULL NOPROTO { int extattr_delete_fd(int fd, \
641 int attrnamespace, \
642 const char *attrname); }
643 374 AUE_NULL MNOPROTO { int __setugid(int flag); }
644 375 AUE_NULL UNIMPL nfsclnt
645 376 AUE_NULL MNOPROTO { int eaccess(char *path, int flags); }
646 377 AUE_NULL UNIMPL afs_syscall
647 378 AUE_NULL NOPROTO { int nmount(struct iovec *iovp, \
648 unsigned int iovcnt, int flags); }
649 379 AUE_NULL MNOPROTO { int kse_exit(void); }
650 380 AUE_NULL MNOPROTO { int kse_wakeup(struct kse_mailbox *mbx); }
651 381 AUE_NULL MNOPROTO { int kse_create(struct kse_mailbox *mbx, \
652 int newgroup); }
653 382 AUE_NULL MNOPROTO { int kse_thr_interrupt( \
654 struct kse_thr_mailbox *tmbx); }
655 383 AUE_NULL MNOPROTO { int kse_release(void); }
656 384 AUE_NULL UNIMPL __mac_get_proc
657 385 AUE_NULL UNIMPL __mac_set_proc
658 386 AUE_NULL UNIMPL __mac_get_fd
659 387 AUE_NULL UNIMPL __mac_get_file
660 388 AUE_NULL UNIMPL __mac_set_fd
661 389 AUE_NULL UNIMPL __mac_set_file
662 390 AUE_NULL MNOPROTO { int kenv(int what, const char *name, \
663 char *value, int len); }
664 391 AUE_NULL MNOPROTO { int lchflags(const char *path, int flags); }
665 392 AUE_NULL MNOPROTO { int uuidgen(struct uuid *store, \
666 int count); }
667 393 AUE_NULL MSTD { int freebsd32_sendfile(int fd, int s, \
668 u_int32_t offsetlo, u_int32_t offsethi, \
669 size_t nbytes, struct sf_hdtr *hdtr, \
670 off_t *sbytes, int flags); }
671 394 AUE_NULL UNIMPL mac_syscall
672 395 AUE_NULL MNOPROTO { int getfsstat(struct statfs *buf, \
673 long bufsize, int flags); }
674 396 AUE_NULL MNOPROTO { int statfs(char *path, \
675 struct statfs *buf); }
676 397 AUE_NULL MNOPROTO { int fstatfs(int fd, struct statfs *buf); }
677 398 AUE_NULL MNOPROTO { int fhstatfs(const struct fhandle *u_fhp, \
678 struct statfs *buf); }
679 399 AUE_NULL UNIMPL nosys
680 ; XXX implement these?
681 400 AUE_NULL UNIMPL ksem_close
682 401 AUE_NULL UNIMPL ksem_post
683 402 AUE_NULL UNIMPL ksem_wait
684 403 AUE_NULL UNIMPL ksem_trywait
685 404 AUE_NULL UNIMPL ksem_init
686 405 AUE_NULL UNIMPL ksem_open
687 406 AUE_NULL UNIMPL ksem_unlink
688 407 AUE_NULL UNIMPL ksem_getvalue
689 408 AUE_NULL UNIMPL ksem_destroy
690 409 AUE_NULL UNIMPL __mac_get_pid
691 410 AUE_NULL UNIMPL __mac_get_link
692 411 AUE_NULL UNIMPL __mac_set_link
693 412 AUE_NULL UNIMPL extattr_set_link
694 413 AUE_NULL UNIMPL extattr_get_link
695 414 AUE_NULL UNIMPL extattr_delete_link
696 415 AUE_NULL UNIMPL __mac_execve
697 416 AUE_NULL MSTD { int freebsd32_sigaction(int sig, \
698 struct sigaction32 *act, \
699 struct sigaction32 *oact); }
700 417 AUE_NULL MSTD { int freebsd32_sigreturn( \
701 const struct freebsd32_ucontext *sigcntxp); }
702 418 AUE_NULL UNIMPL __xstat
703 419 AUE_NULL UNIMPL __xfstat
704 420 AUE_NULL UNIMPL __xlstat
705 ; XXX implement
706 421 AUE_NULL UNIMPL getcontext
707 ; XXX implement
708 422 AUE_NULL UNIMPL setcontext
709 ; XXX implement
710 423 AUE_NULL UNIMPL swapcontext
711 424 AUE_NULL UNIMPL swapoff
712 425 AUE_NULL UNIMPL __acl_get_link
713 426 AUE_NULL UNIMPL __acl_set_link
714 427 AUE_NULL UNIMPL __acl_delete_link
715 428 AUE_NULL UNIMPL __acl_aclcheck_link
716 ; XXX implement
717 429 AUE_NULL UNIMPL sigwait
718 430 AUE_NULL MNOPROTO { int thr_create(ucontext_t *ctx, long *id, \
719 int flag s); }
720 431 AUE_NULL MNOPROTO { void thr_exit(long *state); }
721 432 AUE_NULL MNOPROTO { int thr_self(long *id); }
722 433 AUE_NULL MNOPROTO { int thr_kill(long id, int sig); }
723 434 AUE_NULL MNOPROTO { int _umtx_lock(struct umtx *umtx); }
724 435 AUE_NULL MNOPROTO { int _umtx_unlock(struct umtx *umtx); }
725 436 AUE_NULL MNOPROTO { int jail_attach(int jid); }
726 437 AUE_NULL UNIMPL extattr_list_fd
727 438 AUE_NULL UNIMPL extattr_list_file
728 439 AUE_NULL UNIMPL extattr_list_link
729 440 AUE_NULL UNIMPL kse_switchin
730 441 AUE_NULL UNIMPL ksem_timedwait
731 442 AUE_NULL MNOPROTO { int thr_suspend( \
732 const struct timespec *timeout); }
733 443 AUE_NULL MNOPROTO { int thr_wake(long id); }
734 444 AUE_NULL MNOPROTO { int kldunloadf(int fileid, int flags); }
735 445 AUE_NULL UNIMPL audit
736 446 AUE_NULL UNIMPL auditon
737 447 AUE_NULL UNIMPL getauid
738 448 AUE_NULL UNIMPL setauid
739 449 AUE_NULL UNIMPL getaudit
740 450 AUE_NULL UNIMPL setaudit
741 451 AUE_NULL UNIMPL getaudit_addr
742 452 AUE_NULL UNIMPL setaudit_addr
743 453 AUE_NULL UNIMPL auditctl
744 454 AUE_NULL UNIMPL _umtx_op
Cache object: a5049efa77d84ae5e861f1b64e3a914c
|