xref: /freebsd/sys/i386/linux/syscalls.master (revision 4a0f765fbf09711e612e86fce8bb09ec43f482d9)
1	$Id$
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/types.h>
26#include <sys/param.h>
27#include <sys/systm.h>
28#include <sys/sysent.h>
29#include <sys/sysproto.h>
30
31#include <i386/linux/linux.h>
32#include <i386/linux/linux_proto.h>
33
34; #ifdef's, etc. may be included, and are copied to the output files.
35
360	STD	LINUX	{ int linux_setup(void); }
371	NOPROTO	LINUX	{ int exit(int rval); }
382	STD	LINUX	{ int linux_fork(void); }
393	NOPROTO	LINUX	{ int read(int fd, char *buf, u_int nbyte); }
404	NOPROTO	LINUX	{ int write(int fd, char *buf, u_int nbyte); }
415	STD	LINUX	{ int linux_open(char *path, int flags, int mode); }
426	NOPROTO	LINUX	{ int close(int fd); }
437	STD	LINUX	{ int linux_waitpid(int pid, int *status, int options);}
448	STD	LINUX	{ int linux_creat(char *path, int mode); }
459	NOPROTO	LINUX	{ int link(char *path, char *link); }
4610	STD	LINUX	{ int linux_unlink(char *path); }
4711	STD	LINUX	{ int linux_execve(char *path, char **argp, char **envp); }
4812	STD	LINUX	{ int linux_chdir(char *path); }
4913	STD	LINUX	{ int linux_time(linux_time_t *tm); }
5014	STD	LINUX	{ int linux_mknod(char *path, int mode, int dev); }
5115	STD	LINUX	{ int linux_chmod(char *path, int mode); }
5216	STD	LINUX	{ int linux_chown(char *path, int uid, int gid); }
5317	STD	LINUX	{ int linux_break(char *nsize); }
5418	STD	LINUX	{ int linux_stat(char *path, struct ostat *up); }
5519	STD	LINUX	{ int linux_lseek(int fdes, long off, int whence); }
5620	NOPROTO	LINUX	{ int getpid(void); }
5721	STD	LINUX	{ int linux_mount(void); }
5822	STD	LINUX	{ int linux_umount(void); }
5923	NOPROTO	LINUX	{ int setuid(uid_t uid); }
6024	NOPROTO	LINUX	{ int getuid(void); }
6125	STD	LINUX	{ int linux_stime(void); }
6226	STD	LINUX	{ int linux_ptrace(void); }
6327	STD	LINUX	{ int linux_alarm(unsigned int secs); }
6428	STD	LINUX	{ int linux_fstat(int fd, struct ostat *up); }
6529	STD	LINUX	{ int linux_pause(void); }
6630	STD	LINUX	{ int linux_utime(char *fname, struct linux_utimbuf *times); }
6731	STD	LINUX	{ int linux_stty(void); }
6832	STD	LINUX	{ int linux_gtty(void); }
6933	STD	LINUX	{ int linux_access(char *path, int flags); }
7034	STD	LINUX	{ int linux_nice(void); }
7135	STD	LINUX	{ int linux_ftime(void); }
7236	NOPROTO	LINUX	{ int sync(void); }
7337	STD	LINUX	{ int linux_kill(int pid, int signum); }
7438	STD	LINUX	{ int linux_rename(char *from, char *to); }
7539	STD	LINUX	{ int linux_mkdir(char *path, int mode); }
7640	STD	LINUX	{ int linux_rmdir(char *path); }
7741	NOPROTO	LINUX	{ int dup(u_int fd); }
7842	STD	LINUX	{ int linux_pipe(int *pipefds); }
7943	STD	LINUX	{ int linux_times(struct linux_times_argv *buf); }
8044	STD	LINUX	{ int linux_prof(void); }
8145	STD	LINUX	{ int linux_brk(char *dsend); }
8246	NOPROTO	LINUX	{ int setgid(gid_t gid); }
8347	NOPROTO	LINUX	{ int getgid(void); }
8448	STD	LINUX	{ int linux_signal(int sig, linux_handler_t handler); }
8549	NOPROTO	LINUX	{ int geteuid(void); }
8650	NOPROTO	LINUX	{ int getegid(void); }
8751	NOPROTO	LINUX	{ int acct(char *path); }
8852	STD	LINUX	{ int linux_phys(void); }
8953	STD	LINUX	{ int linux_lock(void); }
9054	STD	LINUX	{ int linux_ioctl(int fd, u_long cmd, int arg); }
9155	STD	LINUX	{ int linux_fcntl(int fd, int cmd, int arg); }
9256	STD	LINUX	{ int linux_mpx(void); }
9357	NOPROTO	LINUX	{ int setpgid(int pid, int pgid); }
9458	STD	LINUX	{ int linux_ulimit(void); }
9559	STD	LINUX	{ int linux_olduname(struct linux_oldold_utsname *up); }
9660	NOPROTO	LINUX	{ int umask(int newmask); }
9761	NOPROTO	LINUX	{ int chroot(char *path); }
9862	STD	LINUX	{ int linux_ustat(void); }
9963	NOPROTO	LINUX	{ int dup2(u_int from, u_int to); }
10064	NOPROTO	LINUX	{ int getppid(void); }
10165	NOPROTO	LINUX	{ int getpgrp(void); }
10266	NOPROTO	LINUX	{ int setsid(void); }
10367	STD	LINUX	{ int linux_sigaction(int sig, \
104			    struct linux_sigaction *nsa, \
105			    struct linux_sigaction *osa); }
10668	STD	LINUX	{ int linux_siggetmask(void); }
10769	STD	LINUX	{ int linux_sigsetmask(linux_sigset_t mask); }
10870	NOPROTO	LINUX	{ int setreuid(int ruid, int euid); }
10971	NOPROTO	LINUX	{ int setregid(int rgid, int egid); }
11072	STD	LINUX	{ int linux_sigsuspend(int restart, \
111			    linux_sigset_t oldmask, linux_sigset_t mask); }
11273	STD	LINUX	{ int linux_sigpending(linux_sigset_t *mask); }
11374	NOPROTO	LINUX	{ int osethostname(char *hostname, \
114			    u_int len);}
11575	NOPROTO	LINUX	{ int osetrlimit(u_int which, \
116			    struct ogetrlimit *rlp); }
11776	NOPROTO	LINUX	{ int ogetrlimit(u_int which, \
118			    struct ogetrlimit *rlp); }
11977	NOPROTO	LINUX	{ int getrusage(int who, struct rusage *rusage); }
12078	NOPROTO	LINUX	{ int gettimeofday(struct timeval *tp, \
121			    struct timezone *tzp); }
12279	NOPROTO	LINUX	{ int settimeofday(struct timeval *tp, \
123			    struct timezone *tzp); }
12480	NOPROTO	LINUX	{ int getgroups(u_int gidsetsize, gid_t *gidset); }
12581	NOPROTO	LINUX	{ int setgroups(u_int gidsetsize, gid_t *gidset); }
12682	STD	LINUX	{ int linux_select(struct linux_select_argv *ptr); }
12783	STD	LINUX	{ int linux_symlink(char *path, char *to); }
12884	NOPROTO	LINUX	{ int ostat(char *path, struct ostat *up); }
12985	STD	LINUX	{ int linux_readlink(char *name, char *buf, \
130			    int count); }
13186	STD	LINUX	{ int linux_uselib(char *library); }
13287	NOPROTO	LINUX	{ int swapon(char *name); }
13388	NOPROTO	LINUX	{ int reboot(int opt); }
13489	STD	LINUX	{ int linux_readdir(int fd, struct linux_dirent *dent, \
135			    unsigned int count); }
13690	STD	LINUX	{ int linux_mmap(struct linux_mmap_argv *ptr); }
13791	NOPROTO	LINUX	{ int munmap(caddr_t addr, int len); }
13892	STD	LINUX	{ int linux_truncate(char *path, long length); }
13993	NOPROTO	LINUX	{ int oftruncate(int fd, long length); }
14094	NOPROTO	LINUX	{ int fchmod(int fd, int mode); }
14195	NOPROTO	LINUX	{ int fchown(int fd, int uid, int gid); }
14296	NOPROTO	LINUX	{ int getpriority(int which, int who); }
14397	NOPROTO	LINUX	{ int setpriority(int which, int who, int prio); }
14498	NOPROTO	LINUX	{ int profil(caddr_t samples, u_int size, \
145			    u_int offset, u_int scale); }
14699	STD	LINUX	{ int linux_statfs(char *path, \
147			    struct linux_statfs_buf *buf); }
148100	STD	LINUX	{ int linux_fstatfs(int fd, \
149			    struct linux_statfs_buf *buf); }
150101	STD	LINUX	{ int linux_ioperm(unsigned int lo, \
151			    unsigned int hi, int val); }
152102	STD	LINUX	{ int linux_socketcall(int what, void *args); }
153103	STD	LINUX	{ int linux_ksyslog(int what); }
154104	STD	LINUX	{ int linux_setitimer(u_int which, \
155			    struct itimerval *itv, struct itimerval *oitv); }
156105	STD	LINUX	{ int linux_getitimer(u_int which, \
157			    struct itimerval *itv); }
158106	STD	LINUX	{ int linux_newstat(char *path, \
159			    struct linux_newstat *buf); }
160107	STD	LINUX	{ int linux_newlstat(char *path, \
161			    struct linux_newstat *buf); }
162108	STD	LINUX	{ int linux_newfstat(int fd, struct linux_newstat *buf); }
163109	STD	LINUX	{ int linux_uname(struct linux_old_utsname *up); }
164110	STD	LINUX	{ int linux_iopl(int level); }
165111	STD	LINUX	{ int linux_vhangup(void); }
166112	STD	LINUX	{ int linux_idle(void); }
167113	STD	LINUX	{ int linux_vm86(void); }
168114	STD	LINUX	{ int linux_wait4(int pid, int *status, \
169			    int options, struct rusage *rusage); }
170115	STD	LINUX	{ int linux_swapoff(void); }
171116	STD	LINUX	{ int linux_sysinfo(void); }
172117	STD	LINUX	{ int linux_ipc(int what, int arg1, int arg2, int arg3, \
173			    caddr_t ptr); }
174118	NOPROTO	LINUX	{ int fsync(int fd); }
175119	STD	LINUX	{ int linux_sigreturn(struct linux_sigcontext *scp); }
176120	STD	LINUX	{ int linux_clone(void); }
177121	NOPROTO	LINUX	{ int setdomainname(char *name, \
178			    int len); }
179122	STD	LINUX	{ int linux_newuname(struct linux_newuname_t *buf); }
180123	STD	LINUX	{ int linux_modify_ldt(int func, void *ptr, \
181			    size_t bytecount); }
182124	STD	LINUX	{ int linux_adjtimex(void); }
183125	NOPROTO	LINUX	{ int mprotect(caddr_t addr, int len, int prot); }
184126	STD	LINUX	{ int linux_sigprocmask(int how, \
185			    linux_sigset_t *mask, linux_sigset_t *omask); }
186127	STD	LINUX	{ int linux_create_module(void); }
187128	STD	LINUX	{ int linux_init_module(void); }
188129	STD	LINUX	{ int linux_delete_module(void); }
189130	STD	LINUX	{ int linux_get_kernel_syms(void); }
190131	STD	LINUX	{ int linux_quotactl(void); }
191132	STD	LINUX	{ int linux_getpgid(int pid); }
192133	NOPROTO	LINUX	{ int fchdir(int fd); }
193134	STD	LINUX	{ int linux_bdflush(void); }
194135	UNIMPL	LINUX	sysfs
195136	STD	LINUX	{ int linux_personality(int per); }
196137	UNIMPL	LINUX	afs_syscall
197138	UNIMPL	LINUX	setfsuid
198139	UNIMPL	LINUX	getfsuid
199140	STD	LINUX	{ int linux_llseek(int fd, u_int32_t ohigh, \
200			    u_int32_t olow, caddr_t res, int whence); }
201141	STD	LINUX	{ int linux_getdents(int fd, void *dent, \
202			    unsigned count); }
203142	STD	LINUX	{ int linux_newselect(int nfds, fd_set *readfds, \
204			    fd_set *writefds, fd_set *exceptfds, \
205			    struct timeval *timeout); }
206143	NOPROTO	LINUX	{ int flock(int fd, int how); }
207144	STD	LINUX	{ int linux_msync(caddr_t addr, int len, int fl); }
208145	NOPROTO	LINUX	{ int readv(int fd, struct iovec *iovp, \
209				u_int iovcnt); }
210146	NOPROTO	LINUX	{ int writev(int fd, struct iovec *iovp, \
211				u_int iovcnt); }
212