1 $FreeBSD$
2
3;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
4; System call name/number master file (or rather, slave, from IBCS2).
5; Processed to created ibcs2_sysent.c, ibcs2_syscalls.c and ibcs2_syscall.h.
6
7; Columns: number audit type nargs name alt{name,tag,rtyp}/comments
8;	number	system call number, must be in order
9;	audit	the audit event associated with the system call
10;		A value of AUE_NULL means no auditing, but it also means that
11;		there is no audit event for the call at this time. For the
12;		case where the event exists, but we don't want auditing, the
13;		event should be #defined to AUE_NULL in audit_kevents.h.
14;	type	one of STD, OBSOL, UNIMPL, COMPAT
15;	name	psuedo-prototype of syscall routine
16;		If one of the following alts is different, then all appear:
17;	altname	name of system call if different
18;	alttag	name of args struct tag if different from [o]`name'"_args"
19;	altrtyp	return type if not int (bogus - syscalls always return int)
20;		for UNIMPL/OBSOL, name continues with comments
21
22; types:
23;	STD	always included
24;	COMPAT	included on COMPAT #ifdef
25;	OBSOL	obsolete, not included in system, only specifies name
26;	UNIMPL	not implemented, placeholder only
27
28#include <sys/param.h>
29#include <sys/sysent.h>
30#include <sys/sysproto.h>
31#include <i386/ibcs2/ibcs2_types.h>
32#include <i386/ibcs2/ibcs2_signal.h>
33#include <i386/ibcs2/ibcs2_proto.h>
34
35; #ifdef's, etc. may be included, and are copied to the output files.
36
370	AUE_NULL	NOPROTO	{ int nosys(void); } syscall nosys_args int
381	AUE_EXIT	NOPROTO	{ void sys_exit(int rval); } exit \
39				    sys_exit_args void
402	AUE_FORK	NOPROTO	{ int fork(void); }
413	AUE_NULL	STD	{ int ibcs2_read(int fd, char *buf, \
42				    u_int nbytes); }
434	AUE_NULL	NOPROTO	{ int write(int fd, char *buf, \
44				    u_int nbytes); }
455	AUE_OPEN_RWTC	STD	{ int ibcs2_open(char *path, int flags, \
46				    int mode); }
476	AUE_CLOSE	NOPROTO	{ int close(int fd); }
487	AUE_WAIT4	STD	{ int ibcs2_wait(int a1, int a2, int a3); }
498	AUE_CREAT	STD	{ int ibcs2_creat(char *path, int mode); }
509	AUE_LINK	NOPROTO	{ int link(char *path, char *link); }
5110	AUE_UNLINK	STD	{ int ibcs2_unlink(char *path); }
5211	AUE_EXECVE	STD	{ int ibcs2_execv(char *path, char **argp); }
5312	AUE_CHDIR	STD	{ int ibcs2_chdir(char *path); }
5413	AUE_NULL	STD	{ int ibcs2_time(ibcs2_time_t *tp); }
5514	AUE_MKNOD	STD	{ int ibcs2_mknod(char* path, int mode, \
56				    int dev); }
5715	AUE_CHMOD	STD	{ int ibcs2_chmod(char *path, int mode); }
5816	AUE_CHOWN	STD	{ int ibcs2_chown(char *path, int uid, \
59				    int gid); }
6017	AUE_NULL	NOPROTO	{ int obreak(caddr_t nsize); }
6118	AUE_STAT	STD	{ int ibcs2_stat(char* path, \
62				    struct ibcs2_stat *st); }
6319	AUE_LSEEK	STD	{ long ibcs2_lseek(int fd, long offset, \
64				    int whence); }
6520	AUE_NULL	NOPROTO	{ pid_t getpid(void); }
6621	AUE_MOUNT	STD	{ int ibcs2_mount(char *special, char *dir, \
67				    int flags, int fstype, char *data, \
68				    int len); }
6922	AUE_UMOUNT	STD	{ int ibcs2_umount(char *name); }
7023	AUE_SETUID	STD	{ int ibcs2_setuid(int uid); }
7124	AUE_GETUID	NOPROTO	{ uid_t getuid(void); }
7225	AUE_SETTIMEOFDAY	STD	{ int ibcs2_stime(long *timep); }
7326	AUE_PTRACE	NOPROTO	{ int ptrace(int req, pid_t pid, \
74				    caddr_t addr, int data); }
7527	AUE_NULL	STD	{ int ibcs2_alarm(unsigned sec); }
7628	AUE_FSTAT	STD	{ int ibcs2_fstat(int fd, \
77				    struct ibcs2_stat *st); }
7829	AUE_NULL	STD	{ int ibcs2_pause(void); }
7930	AUE_NULL	STD	{ int ibcs2_utime(char *path, \
80				    struct ibcs2_utimbuf *buf); }
8131	AUE_NULL	UNIMPL	ibcs2_stty
8232	AUE_NULL	UNIMPL	ibcs2_gtty
8333	AUE_ACCESS	STD	{ int ibcs2_access(char *path, int flags); }
8434	AUE_NICE	STD	{ int ibcs2_nice(int incr); }
8535	AUE_STATFS	STD	{ int ibcs2_statfs(char *path, \
86				    struct ibcs2_statfs *buf, int len, \
87				    int fstype); }
8836	AUE_NULL	NOPROTO	{ int sync(void); }
8937	AUE_KILL	STD	{ int ibcs2_kill(int pid, int signo); }
9038	AUE_FSTATFS	STD	{ int ibcs2_fstatfs(int fd, \
91				    struct ibcs2_statfs *buf, int len, \
92				    int fstype); }
9339	AUE_NULL	STD	{ int ibcs2_pgrpsys(int type, caddr_t dummy, \
94				    int pid, int pgid); }
9540	AUE_NULL	STD	{ int ibcs2_xenix(int a1, int a2, int a3, \
96				    int a4, int a5); }
9741	AUE_NULL	NOPROTO	{ int dup(u_int fd); }
9842	AUE_PIPE	NOPROTO	{ int pipe(void); }
9943	AUE_NULL	STD	{ int ibcs2_times(struct tms *tp); }
10044	AUE_PROFILE	NOPROTO	{ int profil(caddr_t samples, u_int size, \
101				    u_int offset, u_int scale); }
10245	AUE_NULL	STD	{ int ibcs2_plock(int cmd); }
10346	AUE_SETGID	STD	{ int ibcs2_setgid(int gid); }
10447	AUE_GETGID	NOPROTO	{ gid_t getgid(void); }
10548	AUE_NULL	STD	{ int ibcs2_sigsys(int sig, ibcs2_sig_t fp); }
10649	AUE_MSGSYS	STD	{ int ibcs2_msgsys(int which, int a2, \
107				    int a3, int a4, int a5, int a6); }
10850	AUE_NULL	STD	{ int ibcs2_sysi86(int cmd, int *arg); }
10951	AUE_NULL	UNIMPL	ibcs2_acct
11052	AUE_SHMSYS	STD	{ int ibcs2_shmsys(int which, int a2, \
111				    int a3, int a4); }
11253	AUE_SEMSYS	STD	{ int ibcs2_semsys(int which, int a2, \
113				    int a3, int a4, int a5); }
11454	AUE_IOCTL	STD	{ int ibcs2_ioctl(int fd, int cmd, \
115				    caddr_t data); }
11655	AUE_NULL	STD	{ int ibcs2_uadmin(int cmd, int func, \
117				    caddr_t data); }
11856	AUE_NULL	UNIMPL	nosys
11957	AUE_NULL	STD	{ int ibcs2_utssys(int a1, int a2, \
120				    int flag); }
12158      AUE_FSYNC	NOPROTO	{ int fsync(int fd); }
12259	AUE_EXECVE	STD	{ int ibcs2_execve(char *path, char **argp, \
123				    char **envp); }
12460	AUE_UMASK	NOPROTO	{ int umask(int newmask); }
12561	AUE_CHROOT	NOPROTO	{ int chroot(char *path); }
12662	AUE_FCNTL	STD	{ int ibcs2_fcntl(int fd, int cmd, \
127				    char *arg); }
12863	AUE_NULL	STD	{ long ibcs2_ulimit(int cmd, int newlimit); }
12964	AUE_NULL	UNIMPL	reserved for unix/pc
13065	AUE_NULL	UNIMPL	reserved for unix/pc
13166	AUE_NULL	UNIMPL	reserved for unix/pc
13267	AUE_NULL	UNIMPL	reserved for unix/pc
13368	AUE_NULL	UNIMPL	reserved for unix/pc
13469	AUE_NULL	UNIMPL	reserved for unix/pc
13570	AUE_NULL	OBSOL	rfs_advfs
13671	AUE_NULL	OBSOL	rfs_unadvfs
13772	AUE_NULL	OBSOL	rfs_rmount
13873	AUE_NULL	OBSOL	rfs_rumount
13974	AUE_NULL	OBSOL	rfs_rfstart
14075	AUE_NULL	OBSOL	rfs_sigret
14176	AUE_NULL	OBSOL	rfs_rdebug
14277	AUE_NULL	OBSOL	rfs_rfstop
14378	AUE_NULL	UNIMPL	rfs_rfsys
14479	AUE_RMDIR	STD	{ int ibcs2_rmdir(char *path); }
14580	AUE_MKDIR	STD	{ int ibcs2_mkdir(char *path, int mode); }
14681	AUE_GETDIRENTRIES	STD	{ int ibcs2_getdents(int fd, char *buf, \
147				    int nbytes); }
14882	AUE_NULL	UNIMPL	nosys
14983	AUE_NULL	UNIMPL	nosys
15084	AUE_NULL	STD	{ int ibcs2_sysfs(int cmd, caddr_t d1, \
151				    char *buf); }
15285	AUE_GETMSG	STD	{ int ibcs2_getmsg(int fd, \
153				    struct ibcs2_stropts *ctl, \
154				    struct ibcs2_stropts *dat, int *flags); }
15586	AUE_PUTMSG	STD	{ int ibcs2_putmsg(int fd, \
156				    struct ibcs2_stropts *ctl, \
157				    struct ibcs2_stropts *dat, int flags); }
15887	AUE_POLL	NOPROTO	{ int poll(struct pollfd *fds, u_int nfds, \
159				    int timeout); }
16088	AUE_NULL	UNIMPL	nosys
16189	AUE_NULL	STD	{ int ibcs2_secure(int cmd, int a1, int a2, \
162				    int a3, int a4, int a5); }
16390	AUE_SYMLINK	STD	{ int ibcs2_symlink(char *path, \
164				    char *link); }
16591	AUE_LSTAT	STD	{ int ibcs2_lstat(char *path, \
166				    struct ibcs2_stat *st); }
16792	AUE_READLINK	STD	{ int ibcs2_readlink(char *path, char *buf, \
168				    int count); }
16993	AUE_NULL	UNIMPL	nosys
17094	AUE_NULL	UNIMPL	nosys
17195	AUE_NULL	UNIMPL	nosys
17296	AUE_NULL	UNIMPL	nosys
17397	AUE_NULL	UNIMPL	nosys
17498	AUE_NULL	UNIMPL	nosys
17599	AUE_NULL	UNIMPL	nosys
176100	AUE_NULL	UNIMPL	nosys
177101	AUE_NULL	UNIMPL	nosys
178102	AUE_NULL	UNIMPL	nosys
179103	AUE_NULL	NOPROTO	{ int sigreturn( \
180				    struct sigcontext *sigcntxp); }
181104	AUE_NULL	UNIMPL	nosys
182105	AUE_NULL	STD	{ int ibcs2_isc(void); }
183106	AUE_NULL	UNIMPL	nosys
184107	AUE_NULL	UNIMPL	nosys
185108	AUE_NULL	UNIMPL	nosys
186109	AUE_NULL	UNIMPL	nosys
187110	AUE_NULL	UNIMPL	nosys
188111	AUE_NULL	UNIMPL	nosys
189112	AUE_NULL	UNIMPL	nosys
190113	AUE_NULL	UNIMPL	nosys
191114	AUE_NULL	UNIMPL	nosys
192115	AUE_NULL	UNIMPL	nosys
193116	AUE_NULL	UNIMPL	nosys
194117	AUE_NULL	UNIMPL	nosys
195118	AUE_NULL	UNIMPL	nosys
196119	AUE_NULL	UNIMPL	nosys
197120	AUE_NULL	UNIMPL	nosys
198121	AUE_NULL	UNIMPL	nosys
199122	AUE_NULL	UNIMPL	nosys
200123	AUE_NULL	UNIMPL	nosys
201124	AUE_NULL	UNIMPL	nosys
202125	AUE_NULL	UNIMPL	nosys
203126	AUE_NULL	UNIMPL	nosys
204127	AUE_NULL	UNIMPL	nosys
205