1 $FreeBSD$
2
3 ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
4 ; System call name/number master file (or rather, slave, from LINUX).
5 ; Processed to created linux_sysent.c, linux_syscalls.c and linux_syscall.h.
6
7 ; Columns: number type nargs name alt{name,tag,rtyp}/comments
8 ; number system call number, must be in order
9 ; type one of STD, OBSOL, UNIMPL, COMPAT, CPT_NOA, LIBCOMPAT,
10 ; NODEF, NOARGS, NOPROTO
11 ; name psuedo-prototype of syscall routine
12 ; If one of the following alts is different, then all appear:
13 ; altname name of system call if different
14 ; alttag name of args struct tag if different from [o]`name'"_args"
15 ; altrtyp return type if not int (bogus - syscalls always return int)
16 ; for UNIMPL/OBSOL, name continues with comments
17
18 ; types:
19 ; STD always included
20 ; COMPAT included on COMPAT #ifdef
21 ; CPT_NOA combines COMPAT with NOARGS
22 ; LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
23 ; NOARGS same as STD except do not create structure in sys/sysproto.h
24 ; NODEF ??
25 ; NOPROTO same as STD except do not create structure or function in
26 ; sys/sysproto.h
27 ; OBSOL obsolete, not included in system, only specifies name
28 ; UNIMPL not implemented, placeholder only
29
30 #include "opt_compat.h"
31 #include <sys/param.h>
32 #include <sys/sysent.h>
33 #include <sys/sysproto.h>
34 #include <compat/linux/linux_sysproto.h>
35 #include <alpha/linux/linux.h>
36 #include <alpha/linux/linux_proto.h>
37
38 ; Isn't pretty, but there seems to be no other way to trap nosys
39 #define nosys linux_nosys
40
41 ; #ifdef's, etc. may be included, and are copied to the output files.
42
43 0 UNIMPL
44 1 MNOPROTO { void sys_exit(int rval); } exit sys_exit_args void
45 2 MSTD { int linux_fork(void); }
46 3 MNOPROTO { int read(int fd, char *buf, u_int nbyte); }
47 4 MNOPROTO { int write(int fd, char *buf, u_int nbyte); }
48 5 UNIMPL
49 6 MNOPROTO { int close(int fd); }
50 7 MSTD { int osf1_wait4(int pid, int *status, int options, \
51 struct osf1_rusage *rusage); }
52 8 UNIMPL
53 9 STD { int linux_link(char *path, char *to); }
54 10 STD { int linux_unlink(char *path); }
55 11 UNIMPL
56 12 STD { int linux_chdir(char *path); }
57 13 NOPROTO { int fchdir(int fd); }
58 14 STD { int linux_mknod(char *path, l_int mode, l_dev_t dev); }
59 15 STD { int linux_chmod(char *path, l_mode_t mode); }
60 16 STD { int linux_chown(char *path, l_uid_t uid, l_gid_t gid); }
61 17 STD { int linux_brk(l_ulong dsend); }
62 18 UNIMPL
63 19 STD { int linux_lseek(l_uint fdes, l_off_t off, l_int whence); }
64 20 NOPROTO { int getpid(void); }
65 21 UNIMPL osf1_mount
66 22 STD { int linux_umount(char *path, l_int flags); }
67 23 MNOPROTO { int setuid(uid_t uid); }
68 24 MNOPROTO { int getuid(void); }
69 25 UNIMPL
70 26 MSTD { int linux_ptrace(void); }
71 27 UNIMPL
72 28 UNIMPL
73 29 UNIMPL
74 30 UNIMPL
75 31 UNIMPL
76 32 UNIMPL
77 33 STD { int linux_access(char *path, l_int flags); }
78 34 UNIMPL
79 35 UNIMPL
80 36 NOPROTO { int sync(void); }
81 37 MSTD { int linux_kill(l_int pid, l_int signum); }
82 38 UNIMPL
83 39 MNOPROTO { int setpgid(int pid, int pgid); }
84 40 UNIMPL
85 41 MNOPROTO { int dup(u_int fd); }
86 42 MNOPROTO { int pipe(void); }
87 43 UNIMPL osf_set_program_attributes
88 44 UNIMPL
89 45 STD { int linux_open(char *path, l_int flags, l_int mode); }
90 46 UNIMPL
91 47 MNOPROTO { int getgid(void); }
92 48 MSTD { int osf1_sigprocmask(int how, u_long mask); }
93 49 UNIMPL
94 50 UNIMPL
95 51 NOPROTO { int acct(char *path); }
96 52 MSTD { int linux_sigpending(void); }
97 53 UNIMPL
98 54 STD { int linux_ioctl(l_uint fd, l_uint cmd, l_ulong arg); }
99 55 UNIMPL
100 56 UNIMPL
101 57 STD { int linux_symlink(char *path, char *to); }
102 58 STD { int linux_readlink(char *name, char *buf, l_int count); }
103 59 STD { int linux_execve(char *path, char **argp, char **envp); }
104 60 MNOPROTO { int umask(int newmask); }
105 61 NOPROTO { int chroot(char *path); }
106 62 UNIMPL
107 63 MNOPROTO { int getpgrp(void); }
108 64 STD { int linux_getpagesize(void); }
109 65 UNIMPL
110 66 MSTD { int linux_vfork(void); }
111 67 STD { int linux_newstat(char *path, struct l_newstat *buf); }
112 68 STD { int linux_newlstat(char *path, struct l_newstat *buf); }
113 69 UNIMPL
114 70 UNIMPL
115 71 STD { int linux_mmap(l_ulong addr, l_ulong len, l_ulong prot, \
116 l_ulong flags, l_ulong fd, l_ulong pos); }
117 72 UNIMPL
118 73 STD { int linux_munmap(l_ulong addr, l_size_t len); }
119 74 STD { int linux_mprotect(l_ulong addr, l_size_t len, \
120 l_ulong prot); }
121 75 MNOPROTO { int madvise(void *addr, size_t len, int behav); }
122 76 STD { int linux_vhangup(void); }
123 77 UNIMPL
124 78 UNIMPL
125 79 MSTD { int linux_setgroups(l_int gidsetsize, l_gid_t *grouplist); }
126 80 MSTD { int linux_getgroups(l_int gidsetsize, l_gid_t *grouplist); }
127 81 UNIMPL
128 82 MNODEF setpgid setpgid setpgid_args int
129 83 STD { int osf1_setitimer(u_int which, struct itimerval *itv, \
130 struct itimerval *oitv); }
131 84 UNIMPL
132 85 UNIMPL
133 86 UNIMPL osf_getitimer
134 87 STD { int linux_gethostname(void); }
135 88 MNOPROTO { int osethostname(char *hostname, u_int len); } \
136 osethostname sethostname_args int
137 89 STD { int linux_getdtablesize(void); }
138 90 MNOPROTO { int dup2(u_int from, u_int to); }
139 91 STD { int linux_newfstat(l_uint fd, struct l_newstat *buf); }
140 92 MSTD { int linux_fcntl(l_uint fd, l_uint cmd, l_ulong arg); }
141 93 STD { int osf1_select(u_int nd, fd_set *in, fd_set *ou, \
142 fd_set *ex, struct timeval *tv); }
143 94 NOPROTO { int poll(struct pollfd*, unsigned int nfds, long timeout); }
144 95 NOPROTO { int fsync(int fd); }
145 96 MNOPROTO { int setpriority(int which, int who, int prio); }
146 97 STD { int osf1_socket(int domain, int type, int protocol); }
147 98 STD { int linux_connect(l_int s, struct l_sockaddr *name, \
148 l_int namelen); }
149 99 NOPROTO { int oaccept(int s, caddr_t name, int *anamelen); } \
150 accept accept_args int
151 100 UNIMPL osf_getpriority
152 101 NOPROTO { int osend(int s, caddr_t buf, int len, int flags); }
153 102 NOPROTO { int orecv(int s, caddr_t buf, int len, int flags); }
154 103 MSTD { int osf1_sigreturn(struct osigcontext *sigcntxp); }
155 104 NOPROTO { int bind(int s, caddr_t name, int namelen); }
156 105 NOPROTO { int setsockopt(int s, int level, int name, caddr_t val, \
157 int valsize); }
158 106 NOPROTO { int listen(int s, int backlog); }
159 107 UNIMPL
160 108 UNIMPL
161 109 UNIMPL
162 110 UNIMPL
163 111 MSTD { int osf1_sigsuspend(unsigned long ss); }
164 112 UNIMPL osf_sigstack
165 113 STD { int linux_recvmsg(void); }
166 114 STD { int linux_sendmsg(void); }
167 115 UNIMPL
168 116 MSTD { int osf1_gettimeofday(struct timeval *tp, \
169 struct timezone *tzp); }
170 117 STD { int osf1_getrusage(long who, void *rusage); }
171 118 NOPROTO { int getsockopt(int s, int level, int name, caddr_t val, \
172 int *avalsize); }
173 119 UNIMPL
174 120 NOPROTO { int readv(int fd, struct iovec *iovp, u_int iovcnt); }
175 121 NOPROTO { int writev(int fd, struct iovec *iovp, u_int iovcnt); }
176 122 UNIMPL osf_settimeofday
177 123 NOPROTO { int fchown(int fd, int uid, int gid); }
178 124 NOPROTO { int fchmod(int fd, int mode); }
179 125 NOPROTO { int orecvfrom(int s, caddr_t buf, size_t len, int flags, \
180 caddr_t from, int *fromlenaddr); } \
181 recvfrom recvfrom_args int
182 126 MNOPROTO { int setreuid(int ruid, int euid); }
183 127 MNOPROTO { int setregid(int rgid, int egid); }
184 128 STD { int linux_rename(char *from, char *to); }
185 129 STD { int linux_truncate(char *path, l_ulong length); }
186 130 NOPROTO { int oftruncate(int fd, long length); }
187 131 NOPROTO { int flock(int fd, int how); }
188 132 MNOPROTO { int setgid(gid_t gid); }
189 133 STD { int osf1_sendto(int s, caddr_t buf, size_t len, int flags, \
190 struct sockaddr *to, int tolen); }
191 134 NOPROTO { int shutdown(int s, int how); }
192 135 STD { int linux_socketpair(void); }
193 136 STD { int linux_mkdir(char *path, l_int mode); }
194 137 STD { int linux_rmdir(char *path); }
195 138 NOPROTO { int utimes(char *path, struct timeval *tptr); }
196 139 UNIMPL
197 140 UNIMPL
198 141 NOPROTO { int ogetpeername(int fdes, caddr_t asa, int *alen); }
199 142 UNIMPL
200 143 UNIMPL
201 144 MSTD { int linux_getrlimit(l_uint resource, \
202 struct l_rlimit *rlim); }
203 145 MSTD { int linux_setrlimit(l_uint resource, \
204 struct l_rlimit *rlim); }
205 146 UNIMPL
206 147 MNOPROTO { int setsid(void); }
207 148 STD { int linux_quotactl(void); }
208 149 UNIMPL
209 150 NOPROTO { int ogetsockname(int fdec, caddr_t asa, int *alen);} \
210 getsockname getsockname_args int
211 151 UNIMPL
212 152 UNIMPL
213 153 UNIMPL
214 154 UNIMPL
215 155 UNIMPL
216 156 MSTD { int osf1_sigaction(int sig, struct osf1_sigaction *nsa, \
217 struct osf1_sigaction *osa); }
218 157 UNIMPL
219 158 UNIMPL
220 159 UNIMPL osf_getdirentries
221 160 UNIMPL osf_statfs
222 161 UNIMPL osf_fstatfs
223 162 UNIMPL
224 163 UNIMPL
225 164 UNIMPL
226 165 UNIMPL osf_getdomainname
227 166 MNOPROTO { int setdomainname(char *name, int len); }
228 167 UNIMPL
229 168 UNIMPL
230 169 UNIMPL
231 170 UNIMPL
232 171 UNIMPL
233 172 UNIMPL
234 173 UNIMPL
235 174 UNIMPL
236 175 UNIMPL
237 176 UNIMPL
238 177 UNIMPL
239 178 UNIMPL
240 179 UNIMPL
241 180 UNIMPL
242 181 UNIMPL
243 182 UNIMPL
244 183 UNIMPL
245 184 UNIMPL
246 185 UNIMPL
247 186 UNIMPL
248 187 UNIMPL
249 188 UNIMPL
250 189 UNIMPL
251 190 UNIMPL
252 191 UNIMPL
253 192 UNIMPL
254 193 UNIMPL
255 194 UNIMPL
256 195 UNIMPL
257 196 UNIMPL
258 197 UNIMPL
259 198 UNIMPL
260 199 UNIMPL osf_swapon
261 200 STD { int linux_msgctl(l_int msqid, l_int cmd, \
262 struct l_msqid_ds *buf); }
263 201 STD { int linux_msgget(l_key_t key, l_int msgflg); }
264 202 STD { int linux_msgrcv(l_int msqid, struct l_msgbuf *msgp, \
265 l_size_t msgsz, l_long msgtyp, l_int msgflg); }
266 203 STD { int linux_msgsnd(l_int msqid, struct l_msgbuf *msgp, \
267 l_size_t msgsz, l_int msgflg); }
268 204 STD { int linux_semctl(l_int semid, l_int semnum, \
269 l_int cmd, union l_semun arg); }
270 205 STD { int linux_semget(l_key_t key, l_int nsems, \
271 l_int semflg); }
272 206 STD { int linux_semop(l_int semid, struct l_sembuf *tsops, \
273 l_uint nsops); }
274 207 UNIMPL osf_utsname
275 208 STD { int linux_lchown(char *path, l_uid_t uid, l_gid_t gid); }
276 209 STD { int linux_shmat(l_int shmid, char *shmaddr, l_int shmflg); }
277 210 STD { int linux_shmctl(l_int shmid, l_int cmd, \
278 struct l_shmid_ds *buf); }
279 211 STD { int linux_shmdt(char *shmaddr); }
280 212 STD { int linux_shmget(l_key_t key, l_size_t size, l_int shmflg); }
281 213 UNIMPL
282 214 UNIMPL
283 215 UNIMPL
284 216 UNIMPL
285 217 STD { int linux_msync(l_ulong addr, l_size_t len, l_int fl); }
286 218 UNIMPL
287 219 UNIMPL
288 220 UNIMPL
289 221 UNIMPL
290 222 UNIMPL
291 223 UNIMPL
292 224 UNIMPL
293 225 UNIMPL
294 226 UNIMPL
295 227 UNIMPL
296 228 UNIMPL
297 229 UNIMPL
298 230 UNIMPL
299 231 UNIMPL
300 232 UNIMPL
301 233 MNOPROTO { int getpgid(int pid); }
302 234 MSTD { int linux_getsid(l_pid_t pid); }
303 235 STD { int linux_sigaltstack(void); }
304 236 UNIMPL
305 237 UNIMPL
306 238 UNIMPL
307 239 UNIMPL
308 240 UNIMPL
309 241 MSTD { int osf1_sysinfo(int cmd, char *buf, long count); }
310 242 UNIMPL
311 243 UNIMPL
312 244 UNIMPL osf_proplist_syscall
313 245 UNIMPL
314 246 UNIMPL
315 247 UNIMPL
316 248 UNIMPL
317 249 UNIMPL
318 250 UNIMPL
319 251 UNIMPL osf_usleep_thread
320 252 UNIMPL
321 253 UNIMPL
322 254 STD { int linux_sysfs(l_int option, l_ulong arg1, l_ulong arg2); }
323 255 UNIMPL
324 256 STD { int osf1_getsysinfo(u_long op, caddr_t buffer, \
325 u_long nbytes, caddr_t arg, u_long flag); }
326 257 STD { int osf1_setsysinfo(u_long op, caddr_t buffer, \
327 u_long nbytes, caddr_t arg, u_long flag); }
328 258 UNIMPL
329 259 UNIMPL
330 260 UNIMPL
331 261 UNIMPL
332 262 UNIMPL
333 263 UNIMPL
334 264 UNIMPL
335 265 UNIMPL
336 266 UNIMPL
337 267 UNIMPL
338 268 UNIMPL
339 269 UNIMPL
340 270 UNIMPL
341 271 UNIMPL
342 272 UNIMPL
343 273 UNIMPL
344 274 UNIMPL
345 275 UNIMPL
346 276 UNIMPL
347 277 UNIMPL
348 278 UNIMPL
349 279 UNIMPL
350 280 UNIMPL
351 281 UNIMPL
352 282 UNIMPL
353 283 UNIMPL
354 284 UNIMPL
355 285 UNIMPL
356 286 UNIMPL
357 287 UNIMPL
358 288 UNIMPL
359 289 UNIMPL
360 290 UNIMPL
361 291 UNIMPL
362 292 UNIMPL
363 293 UNIMPL
364 294 UNIMPL
365 295 UNIMPL
366 296 UNIMPL
367 297 UNIMPL
368 298 UNIMPL
369 299 UNIMPL
370 300 STD { int linux_bdflush(void); }
371 301 STD { int linux_sethae(void); }
372 302 STD { int linux_mount(char *specialfile, char *dir, \
373 char *filesystemtype, l_ulong rwflag, \
374 void *data); }
375 303 STD { int linux_old_adjtimex(void); }
376 304 STD { int linux_swapoff(void); }
377 305 STD { int linux_getdents(l_uint fd, void *dent, l_uint count); }
378 306 STD { int linux_create_module(void); }
379 307 STD { int linux_init_module(void); }
380 308 STD { int linux_delete_module(void); }
381 309 STD { int linux_get_kernel_syms(void); }
382 310 STD { int linux_syslog(l_int type, char *buf, l_int len); }
383 311 STD { int linux_reboot(l_int magic1, l_int magic2, l_uint cmd, \
384 void *arg); }
385 312 MSTD { int linux_clone(l_int flags, void *stack); }
386 313 STD { int linux_uselib(char *library); }
387 314 MNOPROTO { int mlock(const void *addr, size_t len); }
388 315 MNOPROTO { int munlock(const void *addr, size_t len); }
389 316 MNOPROTO { int mlockall(int how); }
390 317 MNOPROTO { int munlockall(void); }
391 318 STD { int linux_sysinfo(void); }
392 319 STD { int linux_sysctl(struct l___sysctl_args *args); }
393 320 UNIMPL sys_idle
394 321 STD { int linux_oldumount(char *path); }
395 322 NOPROTO { int swapon(char *name); }
396 323 STD { int linux_times(struct l_times_argv *buf); }
397 324 STD { int linux_personality(l_ulong per); }
398 325 STD { int linux_setfsuid(l_uid_t uid); }
399 326 STD { int linux_setfsgid(l_gid_t gid); }
400 327 STD { int linux_ustat(l_dev_t dev, struct l_ustat *ubuf); }
401 328 STD { int linux_statfs(char *path, struct l_statfs_buf *buf); }
402 329 STD { int linux_fstatfs(l_uint fd, struct l_statfs_buf *buf); }
403 330 MNOPROTO { int sched_setparam(pid_t pid, \
404 const struct sched_param *param); }
405 331 MNOPROTO { int sched_getparam(pid_t pid, struct sched_param *param); }
406 332 MSTD { int linux_sched_setscheduler(l_pid_t pid, l_int policy, \
407 struct l_sched_param *param); }
408 333 MSTD { int linux_sched_getscheduler(l_pid_t pid); }
409 334 MNOPROTO { int sched_yield(void); }
410 335 MSTD { int linux_sched_get_priority_max(l_int policy); }
411 336 MSTD { int linux_sched_get_priority_min (l_int policy); }
412 337 NOPROTO { int sched_rr_get_interval (pid_t pid, \
413 struct timespec *interval); }
414 338 UNIMPL sys_afs_syscall
415 339 STD { int linux_newuname(struct l_newuname_t *buf); }
416 340 MNOPROTO { int nanosleep(const struct timespec *rqtp, \
417 struct timespec *rmtp); }
418 341 STD { int linux_mremap(l_ulong addr, l_ulong old_len, \
419 l_ulong new_len, l_ulong flags, \
420 l_ulong new_addr); }
421 342 STD { int linux_nfsservctl(void); }
422 343 MNOPROTO { int setresuid(uid_t ruid, uid_t euid, uid_t suid); }
423 344 MNOPROTO { int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); }
424 345 STD { int linux_pciconfig_read(void); }
425 346 STD { int linux_pciconfig_write(void); }
426 347 STD { int linux_query_module(void); }
427 348 STD { int linux_prctl(void); }
428 349 STD { int linux_pread(l_uint fd, char *buf, l_size_t nbyte, \
429 l_loff_t offset); }
430 350 STD { int linux_pwrite(l_uint fd, char *buf, l_size_t nbyte, \
431 l_loff_t offset); }
432 351 STD { int linux_rt_sigreturn(void); }
433 352 MSTD { int linux_rt_sigaction(l_int sig, l_sigaction_t *act, \
434 l_sigaction_t *oact, l_size_t sigsetsize); }
435 353 MSTD { int linux_rt_sigprocmask(l_int how, l_sigset_t *mask, \
436 l_sigset_t *omask, l_size_t sigsetsize); }
437 354 STD { int linux_rt_sigpending(void); }
438 355 STD { int linux_rt_sigtimedwait(void); }
439 356 STD { int linux_rt_sigqueueinfo(void); }
440 357 MSTD { int linux_rt_sigsuspend(l_sigset_t *newset, \
441 l_size_t sigsetsize); }
442 358 STD { int linux_select(l_int nfds, l_fd_set *readfds, \
443 l_fd_set *writefds, l_fd_set *exceptfds, \
444 struct l_timeval *timeout); }
445 359 MNOPROTO { int gettimeofday(struct timeval *tp, struct timezone *tzp); }
446 360 MNOPROTO { int settimeofday(struct timeval *tp, struct timezone *tzp); }
447 361 MSTD { int linux_getitimer(l_int which, struct l_itimerval *itv); }
448 362 MSTD { int linux_setitimer(l_int which, struct l_itimerval *itv, \
449 struct l_itimerval *oitv); }
450 363 STD { int linux_utimes(char *fname, struct l_timeval *times); }
451 364 MNOPROTO { int getrusage(int who, struct rusage *rusage); }
452 365 MSTD { int linux_wait4(l_pid_t pid, l_uint *status, l_int options, \
453 struct l_rusage *rusage); }
454 366 STD { int linux_adjtimex(void); }
455 367 STD { int linux_getcwd(char *buf, l_ulong bufsize); }
456 368 STD { int linux_capget(void); }
457 369 STD { int linux_capset(void); }
458 370 STD { int linux_sendfile(void); }
459 371 MNOPROTO { int setresgid(gid_t rgid, gid_t egid, gid_t sgid); }
460 372 MNOPROTO { int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); }
461 373 UNIMPL sys_dipc
462 374 STD { int linux_pivot_root(char *new_root, char *put_old); }
463 375 STD { int linux_mincore(l_ulong start, l_size_t len, u_char *vec); }
464 376 STD { int linux_pciconfig_iobase(void); }
465 377 STD { int linux_getdents64(l_uint fd, void *dirent, l_uint count); }
Cache object: 048881d649d12207f0cef8126aa98ec1
|