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