xref: /freebsd/sys/i386/linux/syscalls.master (revision ce834215a70ff69e7e222827437116eee2f9ac6f)
1	$Id: syscalls.master,v 1.4 1997/02/22 09:38:31 peter Exp $
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 namespc name alt{name,tag,rtyp}/comments
8;	number	system call number, must be in order
9;	type	one of STD, OBSOL, UNIMPL, COMPAT
10;	namespc one of POSIX, BSD, STD, NOHIDE (I dont care :-) -Peter
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;	LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
22;	OBSOL	obsolete, not included in system, only specifies name
23;	UNIMPL	not implemented, placeholder only
24
25#include <sys/param.h>
26#include <sys/sysent.h>
27#include <sys/sysproto.h>
28
29#include <i386/linux/linux.h>
30#include <i386/linux/linux_proto.h>
31
32; #ifdef's, etc. may be included, and are copied to the output files.
33
340	STD	LINUX	{ int linux_setup(void); }
351	NOPROTO	LINUX	{ int exit(int rval); }
362	STD	LINUX	{ int linux_fork(void); }
373	NOPROTO	LINUX	{ int read(int fd, char *buf, u_int nbyte); }
384	NOPROTO	LINUX	{ int write(int fd, char *buf, u_int nbyte); }
395	STD	LINUX	{ int linux_open(char *path, int flags, int mode); }
406	NOPROTO	LINUX	{ int close(int fd); }
417	STD	LINUX	{ int linux_waitpid(int pid, int *status, int options);}
428	STD	LINUX	{ int linux_creat(char *path, int mode); }
439	NOPROTO	LINUX	{ int link(char *path, char *link); }
4410	STD	LINUX	{ int linux_unlink(char *path); }
4511	STD	LINUX	{ int linux_execve(char *path, char **argp, char **envp); }
4612	STD	LINUX	{ int linux_chdir(char *path); }
4713	STD	LINUX	{ int linux_time(linux_time_t *tm); }
4814	STD	LINUX	{ int linux_mknod(char *path, int mode, int dev); }
4915	STD	LINUX	{ int linux_chmod(char *path, int mode); }
5016	STD	LINUX	{ int linux_chown(char *path, int uid, int gid); }
5117	STD	LINUX	{ int linux_break(char *nsize); }
5218	STD	LINUX	{ int linux_stat(char *path, struct ostat *up); }
5319	STD	LINUX	{ int linux_lseek(int fdes, long off, int whence); }
5420	NOPROTO	LINUX	{ int getpid(void); }
5521	STD	LINUX	{ int linux_mount(void); }
5622	STD	LINUX	{ int linux_umount(void); }
5723	NOPROTO	LINUX	{ int setuid(uid_t uid); }
5824	NOPROTO	LINUX	{ int getuid(void); }
5925	STD	LINUX	{ int linux_stime(void); }
6026	STD	LINUX	{ int linux_ptrace(void); }
6127	STD	LINUX	{ int linux_alarm(unsigned int secs); }
6228	STD	LINUX	{ int linux_fstat(int fd, struct ostat *up); }
6329	STD	LINUX	{ int linux_pause(void); }
6430	STD	LINUX	{ int linux_utime(char *fname, struct linux_utimbuf *times); }
6531	STD	LINUX	{ int linux_stty(void); }
6632	STD	LINUX	{ int linux_gtty(void); }
6733	STD	LINUX	{ int linux_access(char *path, int flags); }
6834	STD	LINUX	{ int linux_nice(void); }
6935	STD	LINUX	{ int linux_ftime(void); }
7036	NOPROTO	LINUX	{ int sync(void); }
7137	STD	LINUX	{ int linux_kill(int pid, int signum); }
7238	STD	LINUX	{ int linux_rename(char *from, char *to); }
7339	STD	LINUX	{ int linux_mkdir(char *path, int mode); }
7440	STD	LINUX	{ int linux_rmdir(char *path); }
7541	NOPROTO	LINUX	{ int dup(u_int fd); }
7642	STD	LINUX	{ int linux_pipe(int *pipefds); }
7743	STD	LINUX	{ int linux_times(struct linux_times_argv *buf); }
7844	STD	LINUX	{ int linux_prof(void); }
7945	STD	LINUX	{ int linux_brk(char *dsend); }
8046	NOPROTO	LINUX	{ int setgid(gid_t gid); }
8147	NOPROTO	LINUX	{ int getgid(void); }
8248	STD	LINUX	{ int linux_signal(int sig, linux_handler_t handler); }
8349	NOPROTO	LINUX	{ int geteuid(void); }
8450	NOPROTO	LINUX	{ int getegid(void); }
8551	NOPROTO	LINUX	{ int acct(char *path); }
8652	STD	LINUX	{ int linux_phys(void); }
8753	STD	LINUX	{ int linux_lock(void); }
8854	STD	LINUX	{ int linux_ioctl(int fd, u_long cmd, int arg); }
8955	STD	LINUX	{ int linux_fcntl(int fd, int cmd, int arg); }
9056	STD	LINUX	{ int linux_mpx(void); }
9157	NOPROTO	LINUX	{ int setpgid(int pid, int pgid); }
9258	STD	LINUX	{ int linux_ulimit(void); }
9359	STD	LINUX	{ int linux_olduname(struct linux_oldold_utsname *up); }
9460	NOPROTO	LINUX	{ int umask(int newmask); }
9561	NOPROTO	LINUX	{ int chroot(char *path); }
9662	STD	LINUX	{ int linux_ustat(void); }
9763	NOPROTO	LINUX	{ int dup2(u_int from, u_int to); }
9864	NOPROTO	LINUX	{ int getppid(void); }
9965	NOPROTO	LINUX	{ int getpgrp(void); }
10066	NOPROTO	LINUX	{ int setsid(void); }
10167	STD	LINUX	{ int linux_sigaction(int sig, \
102			    struct linux_sigaction *nsa, \
103			    struct linux_sigaction *osa); }
10468	STD	LINUX	{ int linux_siggetmask(void); }
10569	STD	LINUX	{ int linux_sigsetmask(linux_sigset_t mask); }
10670	NOPROTO	LINUX	{ int setreuid(int ruid, int euid); }
10771	NOPROTO	LINUX	{ int setregid(int rgid, int egid); }
10872	STD	LINUX	{ int linux_sigsuspend(int restart, \
109			    linux_sigset_t oldmask, linux_sigset_t mask); }
11073	STD	LINUX	{ int linux_sigpending(linux_sigset_t *mask); }
11174	NOPROTO	LINUX	{ int osethostname(char *hostname, \
112			    u_int len);}
11375	NOPROTO	LINUX	{ int osetrlimit(u_int which, \
114			    struct ogetrlimit *rlp); }
11576	NOPROTO	LINUX	{ int ogetrlimit(u_int which, \
116			    struct ogetrlimit *rlp); }
11777	NOPROTO	LINUX	{ int getrusage(int who, struct rusage *rusage); }
11878	NOPROTO	LINUX	{ int gettimeofday(struct timeval *tp, \
119			    struct timezone *tzp); }
12079	NOPROTO	LINUX	{ int settimeofday(struct timeval *tp, \
121			    struct timezone *tzp); }
12280	NOPROTO	LINUX	{ int getgroups(u_int gidsetsize, gid_t *gidset); }
12381	NOPROTO	LINUX	{ int setgroups(u_int gidsetsize, gid_t *gidset); }
12482	STD	LINUX	{ int linux_select(struct linux_select_argv *ptr); }
12583	STD	LINUX	{ int linux_symlink(char *path, char *to); }
12684	NOPROTO	LINUX	{ int ostat(char *path, struct ostat *up); }
12785	STD	LINUX	{ int linux_readlink(char *name, char *buf, \
128			    int count); }
12986	STD	LINUX	{ int linux_uselib(char *library); }
13087	NOPROTO	LINUX	{ int swapon(char *name); }
13188	NOPROTO	LINUX	{ int reboot(int opt); }
13289	STD	LINUX	{ int linux_readdir(int fd, struct linux_dirent *dent, \
133			    unsigned int count); }
13490	STD	LINUX	{ int linux_mmap(struct linux_mmap_argv *ptr); }
13591	NOPROTO	LINUX	{ int munmap(caddr_t addr, int len); }
13692	STD	LINUX	{ int linux_truncate(char *path, long length); }
13793	NOPROTO	LINUX	{ int oftruncate(int fd, long length); }
13894	NOPROTO	LINUX	{ int fchmod(int fd, int mode); }
13995	NOPROTO	LINUX	{ int fchown(int fd, int uid, int gid); }
14096	NOPROTO	LINUX	{ int getpriority(int which, int who); }
14197	NOPROTO	LINUX	{ int setpriority(int which, int who, int prio); }
14298	NOPROTO	LINUX	{ int profil(caddr_t samples, u_int size, \
143			    u_int offset, u_int scale); }
14499	STD	LINUX	{ int linux_statfs(char *path, \
145			    struct linux_statfs_buf *buf); }
146100	STD	LINUX	{ int linux_fstatfs(int fd, \
147			    struct linux_statfs_buf *buf); }
148101	STD	LINUX	{ int linux_ioperm(unsigned int lo, \
149			    unsigned int hi, int val); }
150102	STD	LINUX	{ int linux_socketcall(int what, void *args); }
151103	STD	LINUX	{ int linux_ksyslog(int what); }
152104	STD	LINUX	{ int linux_setitimer(u_int which, \
153			    struct itimerval *itv, struct itimerval *oitv); }
154105	STD	LINUX	{ int linux_getitimer(u_int which, \
155			    struct itimerval *itv); }
156106	STD	LINUX	{ int linux_newstat(char *path, \
157			    struct linux_newstat *buf); }
158107	STD	LINUX	{ int linux_newlstat(char *path, \
159			    struct linux_newstat *buf); }
160108	STD	LINUX	{ int linux_newfstat(int fd, struct linux_newstat *buf); }
161109	STD	LINUX	{ int linux_uname(struct linux_old_utsname *up); }
162110	STD	LINUX	{ int linux_iopl(int level); }
163111	STD	LINUX	{ int linux_vhangup(void); }
164112	STD	LINUX	{ int linux_idle(void); }
165113	STD	LINUX	{ int linux_vm86(void); }
166114	STD	LINUX	{ int linux_wait4(int pid, int *status, \
167			    int options, struct rusage *rusage); }
168115	STD	LINUX	{ int linux_swapoff(void); }
169116	STD	LINUX	{ int linux_sysinfo(void); }
170117	STD	LINUX	{ int linux_ipc(int what, int arg1, int arg2, int arg3, \
171			    caddr_t ptr); }
172118	NOPROTO	LINUX	{ int fsync(int fd); }
173119	STD	LINUX	{ int linux_sigreturn(struct linux_sigcontext *scp); }
174120	STD	LINUX	{ int linux_clone(void); }
175121	NOPROTO	LINUX	{ int setdomainname(char *name, \
176			    int len); }
177122	STD	LINUX	{ int linux_newuname(struct linux_newuname_t *buf); }
178123	STD	LINUX	{ int linux_modify_ldt(int func, void *ptr, \
179			    size_t bytecount); }
180124	STD	LINUX	{ int linux_adjtimex(void); }
181125	NOPROTO	LINUX	{ int mprotect(caddr_t addr, int len, int prot); }
182126	STD	LINUX	{ int linux_sigprocmask(int how, \
183			    linux_sigset_t *mask, linux_sigset_t *omask); }
184127	STD	LINUX	{ int linux_create_module(void); }
185128	STD	LINUX	{ int linux_init_module(void); }
186129	STD	LINUX	{ int linux_delete_module(void); }
187130	STD	LINUX	{ int linux_get_kernel_syms(void); }
188131	STD	LINUX	{ int linux_quotactl(void); }
189132	STD	LINUX	{ int linux_getpgid(int pid); }
190133	NOPROTO	LINUX	{ int fchdir(int fd); }
191134	STD	LINUX	{ int linux_bdflush(void); }
192135	UNIMPL	LINUX	sysfs
193136	STD	LINUX	{ int linux_personality(int per); }
194137	UNIMPL	LINUX	afs_syscall
195138	UNIMPL	LINUX	setfsuid
196139	UNIMPL	LINUX	getfsuid
197140	STD	LINUX	{ int linux_llseek(int fd, u_int32_t ohigh, \
198			    u_int32_t olow, caddr_t res, int whence); }
199141	STD	LINUX	{ int linux_getdents(int fd, void *dent, \
200			    unsigned count); }
201142	STD	LINUX	{ int linux_newselect(int nfds, fd_set *readfds, \
202			    fd_set *writefds, fd_set *exceptfds, \
203			    struct timeval *timeout); }
204143	NOPROTO	LINUX	{ int flock(int fd, int how); }
205144	STD	LINUX	{ int linux_msync(caddr_t addr, int len, int fl); }
206145	NOPROTO	LINUX	{ int readv(int fd, struct iovec *iovp, \
207				u_int iovcnt); }
208146	NOPROTO	LINUX	{ int writev(int fd, struct iovec *iovp, \
209				u_int iovcnt); }
210