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