150477Speter $FreeBSD$
211394Sswallace
311394Sswallace;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
411394Sswallace; System call name/number master file (or rather, slave, from IBCS2).
511394Sswallace; Processed to created ibcs2_sysent.c, ibcs2_syscalls.c and ibcs2_syscall.h.
611394Sswallace
7155403Srwatson; Columns: number audit type nargs name alt{name,tag,rtyp}/comments
811394Sswallace;	number	system call number, must be in order
9146806Srwatson;	audit	the audit event associated with the system call
10146806Srwatson;		A value of AUE_NULL means no auditing, but it also means that
11146806Srwatson;		there is no audit event for the call at this time. For the
12146806Srwatson;		case where the event exists, but we don't want auditing, the
13146806Srwatson;		event should be #defined to AUE_NULL in audit_kevents.h.
1411397Sswallace;	type	one of STD, OBSOL, UNIMPL, COMPAT
1511397Sswallace;	name	psuedo-prototype of syscall routine
1611397Sswallace;		If one of the following alts is different, then all appear:
1711394Sswallace;	altname	name of system call if different
1811397Sswallace;	alttag	name of args struct tag if different from [o]`name'"_args"
1911397Sswallace;	altrtyp	return type if not int (bogus - syscalls always return int)
2011394Sswallace;		for UNIMPL/OBSOL, name continues with comments
2111394Sswallace
2211394Sswallace; types:
2311394Sswallace;	STD	always included
2411397Sswallace;	COMPAT	included on COMPAT #ifdef
2511394Sswallace;	OBSOL	obsolete, not included in system, only specifies name
2611394Sswallace;	UNIMPL	not implemented, placeholder only
2711394Sswallace
2811397Sswallace#include <sys/param.h>
2911397Sswallace#include <sys/sysent.h>
3011397Sswallace#include <sys/sysproto.h>
3111397Sswallace#include <i386/ibcs2/ibcs2_types.h>
3211397Sswallace#include <i386/ibcs2/ibcs2_signal.h>
3311397Sswallace#include <i386/ibcs2/ibcs2_proto.h>
3411397Sswallace
3511394Sswallace; #ifdef's, etc. may be included, and are copied to the output files.
3611394Sswallace
37160798Sjhb0	AUE_NULL	NOPROTO	{ int nosys(void); } syscall nosys_args int
38160798Sjhb1	AUE_EXIT	NOPROTO	{ void sys_exit(int rval); } exit \
39146806Srwatson				    sys_exit_args void
40160798Sjhb2	AUE_FORK	NOPROTO	{ int fork(void); }
41160798Sjhb3	AUE_NULL	STD	{ int ibcs2_read(int fd, char *buf, \
42146806Srwatson				    u_int nbytes); }
43160798Sjhb4	AUE_NULL	NOPROTO	{ int write(int fd, char *buf, \
44146806Srwatson				    u_int nbytes); }
45160798Sjhb5	AUE_OPEN_RWTC	STD	{ int ibcs2_open(char *path, int flags, \
46146806Srwatson				    int mode); }
47160798Sjhb6	AUE_CLOSE	NOPROTO	{ int close(int fd); }
48160798Sjhb7	AUE_WAIT4	STD	{ int ibcs2_wait(int a1, int a2, int a3); }
49160798Sjhb8	AUE_CREAT	STD	{ int ibcs2_creat(char *path, int mode); }
50160798Sjhb9	AUE_LINK	NOPROTO	{ int link(char *path, char *link); }
51160798Sjhb10	AUE_UNLINK	STD	{ int ibcs2_unlink(char *path); }
52160798Sjhb11	AUE_EXECVE	STD	{ int ibcs2_execv(char *path, char **argp); }
53160798Sjhb12	AUE_CHDIR	STD	{ int ibcs2_chdir(char *path); }
54160798Sjhb13	AUE_NULL	STD	{ int ibcs2_time(ibcs2_time_t *tp); }
55160798Sjhb14	AUE_MKNOD	STD	{ int ibcs2_mknod(char* path, int mode, \
56146806Srwatson				    int dev); }
57160798Sjhb15	AUE_CHMOD	STD	{ int ibcs2_chmod(char *path, int mode); }
58160798Sjhb16	AUE_CHOWN	STD	{ int ibcs2_chown(char *path, int uid, \
59146806Srwatson				    int gid); }
60160798Sjhb17	AUE_NULL	NOPROTO	{ int obreak(caddr_t nsize); }
61160798Sjhb18	AUE_STAT	STD	{ int ibcs2_stat(char* path, \
62146806Srwatson				    struct ibcs2_stat *st); }
63160798Sjhb19	AUE_LSEEK	STD	{ long ibcs2_lseek(int fd, long offset, \
64146806Srwatson				    int whence); }
65160798Sjhb20	AUE_NULL	NOPROTO	{ pid_t getpid(void); }
66160798Sjhb21	AUE_MOUNT	STD	{ int ibcs2_mount(char *special, char *dir, \
67146806Srwatson				    int flags, int fstype, char *data, \
68146806Srwatson				    int len); }
69160798Sjhb22	AUE_UMOUNT	STD	{ int ibcs2_umount(char *name); }
70160798Sjhb23	AUE_SETUID	STD	{ int ibcs2_setuid(int uid); }
71160798Sjhb24	AUE_GETUID	NOPROTO	{ uid_t getuid(void); }
72160798Sjhb25	AUE_SETTIMEOFDAY	STD	{ int ibcs2_stime(long *timep); }
73160798Sjhb26	AUE_PTRACE	NOPROTO	{ int ptrace(int req, pid_t pid, \
74146806Srwatson				    caddr_t addr, int data); }
75160798Sjhb27	AUE_NULL	STD	{ int ibcs2_alarm(unsigned sec); }
76160798Sjhb28	AUE_FSTAT	STD	{ int ibcs2_fstat(int fd, \
77146806Srwatson				    struct ibcs2_stat *st); }
78160798Sjhb29	AUE_NULL	STD	{ int ibcs2_pause(void); }
79160798Sjhb30	AUE_NULL	STD	{ int ibcs2_utime(char *path, \
80146806Srwatson				    struct ibcs2_utimbuf *buf); }
81191919Sed31	AUE_NULL	UNIMPL	ibcs2_stty
82191919Sed32	AUE_NULL	UNIMPL	ibcs2_gtty
83160798Sjhb33	AUE_ACCESS	STD	{ int ibcs2_access(char *path, int flags); }
84160798Sjhb34	AUE_NICE	STD	{ int ibcs2_nice(int incr); }
85160798Sjhb35	AUE_STATFS	STD	{ int ibcs2_statfs(char *path, \
86146806Srwatson				    struct ibcs2_statfs *buf, int len, \
87146806Srwatson				    int fstype); }
88160798Sjhb36	AUE_NULL	NOPROTO	{ int sync(void); }
89160798Sjhb37	AUE_KILL	STD	{ int ibcs2_kill(int pid, int signo); }
90160798Sjhb38	AUE_FSTATFS	STD	{ int ibcs2_fstatfs(int fd, \
91146806Srwatson				    struct ibcs2_statfs *buf, int len, \
92146806Srwatson				    int fstype); }
93160798Sjhb39	AUE_NULL	STD	{ int ibcs2_pgrpsys(int type, caddr_t dummy, \
94146806Srwatson				    int pid, int pgid); }
95160798Sjhb40	AUE_NULL	STD	{ int ibcs2_xenix(int a1, int a2, int a3, \
96146806Srwatson				    int a4, int a5); }
97160798Sjhb41	AUE_NULL	NOPROTO	{ int dup(u_int fd); }
98160798Sjhb42	AUE_PIPE	NOPROTO	{ int pipe(void); }
99160798Sjhb43	AUE_NULL	STD	{ int ibcs2_times(struct tms *tp); }
100160798Sjhb44	AUE_PROFILE	NOPROTO	{ int profil(caddr_t samples, u_int size, \
101146806Srwatson				    u_int offset, u_int scale); }
102160798Sjhb45	AUE_NULL	STD	{ int ibcs2_plock(int cmd); }
103160798Sjhb46	AUE_SETGID	STD	{ int ibcs2_setgid(int gid); }
104160798Sjhb47	AUE_GETGID	NOPROTO	{ gid_t getgid(void); }
105160798Sjhb48	AUE_NULL	STD	{ int ibcs2_sigsys(int sig, ibcs2_sig_t fp); }
106160798Sjhb49	AUE_MSGSYS	STD	{ int ibcs2_msgsys(int which, int a2, \
107146806Srwatson				    int a3, int a4, int a5, int a6); }
108160798Sjhb50	AUE_NULL	STD	{ int ibcs2_sysi86(int cmd, int *arg); }
109146806Srwatson51	AUE_NULL	UNIMPL	ibcs2_acct
110160798Sjhb52	AUE_SHMSYS	STD	{ int ibcs2_shmsys(int which, int a2, \
111146806Srwatson				    int a3, int a4); }
112160798Sjhb53	AUE_SEMSYS	STD	{ int ibcs2_semsys(int which, int a2, \
113146806Srwatson				    int a3, int a4, int a5); }
114160798Sjhb54	AUE_IOCTL	STD	{ int ibcs2_ioctl(int fd, int cmd, \
115146806Srwatson				    caddr_t data); }
116160798Sjhb55	AUE_NULL	STD	{ int ibcs2_uadmin(int cmd, int func, \
117146806Srwatson				    caddr_t data); }
118146806Srwatson56	AUE_NULL	UNIMPL	nosys
119160798Sjhb57	AUE_NULL	STD	{ int ibcs2_utssys(int a1, int a2, \
120146806Srwatson				    int flag); }
121160798Sjhb58      AUE_FSYNC	NOPROTO	{ int fsync(int fd); }
122160798Sjhb59	AUE_EXECVE	STD	{ int ibcs2_execve(char *path, char **argp, \
123146806Srwatson				    char **envp); }
124160798Sjhb60	AUE_UMASK	NOPROTO	{ int umask(int newmask); }
125160798Sjhb61	AUE_CHROOT	NOPROTO	{ int chroot(char *path); }
126160798Sjhb62	AUE_FCNTL	STD	{ int ibcs2_fcntl(int fd, int cmd, \
127146806Srwatson				    char *arg); }
128160798Sjhb63	AUE_NULL	STD	{ long ibcs2_ulimit(int cmd, int newlimit); }
129146806Srwatson64	AUE_NULL	UNIMPL	reserved for unix/pc
130146806Srwatson65	AUE_NULL	UNIMPL	reserved for unix/pc
131146806Srwatson66	AUE_NULL	UNIMPL	reserved for unix/pc
132146806Srwatson67	AUE_NULL	UNIMPL	reserved for unix/pc
133146806Srwatson68	AUE_NULL	UNIMPL	reserved for unix/pc
134146806Srwatson69	AUE_NULL	UNIMPL	reserved for unix/pc
135146806Srwatson70	AUE_NULL	OBSOL	rfs_advfs
136146806Srwatson71	AUE_NULL	OBSOL	rfs_unadvfs
137146806Srwatson72	AUE_NULL	OBSOL	rfs_rmount
138146806Srwatson73	AUE_NULL	OBSOL	rfs_rumount
139146806Srwatson74	AUE_NULL	OBSOL	rfs_rfstart
140146806Srwatson75	AUE_NULL	OBSOL	rfs_sigret
141146806Srwatson76	AUE_NULL	OBSOL	rfs_rdebug
142146806Srwatson77	AUE_NULL	OBSOL	rfs_rfstop
143146806Srwatson78	AUE_NULL	UNIMPL	rfs_rfsys
144160798Sjhb79	AUE_RMDIR	STD	{ int ibcs2_rmdir(char *path); }
145160798Sjhb80	AUE_MKDIR	STD	{ int ibcs2_mkdir(char *path, int mode); }
146160798Sjhb81	AUE_GETDIRENTRIES	STD	{ int ibcs2_getdents(int fd, char *buf, \
147146806Srwatson				    int nbytes); }
148146806Srwatson82	AUE_NULL	UNIMPL	nosys
149146806Srwatson83	AUE_NULL	UNIMPL	nosys
150160798Sjhb84	AUE_NULL	STD	{ int ibcs2_sysfs(int cmd, caddr_t d1, \
151146806Srwatson				    char *buf); }
152160798Sjhb85	AUE_GETMSG	STD	{ int ibcs2_getmsg(int fd, \
153146806Srwatson				    struct ibcs2_stropts *ctl, \
154146806Srwatson				    struct ibcs2_stropts *dat, int *flags); }
155160798Sjhb86	AUE_PUTMSG	STD	{ int ibcs2_putmsg(int fd, \
156146806Srwatson				    struct ibcs2_stropts *ctl, \
157146806Srwatson				    struct ibcs2_stropts *dat, int flags); }
158160798Sjhb87	AUE_POLL	NOPROTO	{ int poll(struct pollfd *fds, u_int nfds, \
159160138Sjhb				    int timeout); }
160146806Srwatson88	AUE_NULL	UNIMPL	nosys
161160798Sjhb89	AUE_NULL	STD	{ int ibcs2_secure(int cmd, int a1, int a2, \
162146806Srwatson				    int a3, int a4, int a5); }
163160798Sjhb90	AUE_SYMLINK	STD	{ int ibcs2_symlink(char *path, \
164146806Srwatson				    char *link); }
165160798Sjhb91	AUE_LSTAT	STD	{ int ibcs2_lstat(char *path, \
166146806Srwatson				    struct ibcs2_stat *st); }
167160798Sjhb92	AUE_READLINK	STD	{ int ibcs2_readlink(char *path, char *buf, \
168146806Srwatson				    int count); }
169146806Srwatson93	AUE_NULL	UNIMPL	nosys
170146806Srwatson94	AUE_NULL	UNIMPL	nosys
171146806Srwatson95	AUE_NULL	UNIMPL	nosys
172146806Srwatson96	AUE_NULL	UNIMPL	nosys
173146806Srwatson97	AUE_NULL	UNIMPL	nosys
174146806Srwatson98	AUE_NULL	UNIMPL	nosys
175146806Srwatson99	AUE_NULL	UNIMPL	nosys
176146806Srwatson100	AUE_NULL	UNIMPL	nosys
177146806Srwatson101	AUE_NULL	UNIMPL	nosys
178146806Srwatson102	AUE_NULL	UNIMPL	nosys
179160798Sjhb103	AUE_NULL	NOPROTO	{ int sigreturn( \
180146806Srwatson				    struct sigcontext *sigcntxp); }
181146806Srwatson104	AUE_NULL	UNIMPL	nosys
182160798Sjhb105	AUE_NULL	STD	{ int ibcs2_isc(void); }
183146806Srwatson106	AUE_NULL	UNIMPL	nosys
184146806Srwatson107	AUE_NULL	UNIMPL	nosys
185146806Srwatson108	AUE_NULL	UNIMPL	nosys
186146806Srwatson109	AUE_NULL	UNIMPL	nosys
187146806Srwatson110	AUE_NULL	UNIMPL	nosys
188146806Srwatson111	AUE_NULL	UNIMPL	nosys
189146806Srwatson112	AUE_NULL	UNIMPL	nosys
190146806Srwatson113	AUE_NULL	UNIMPL	nosys
191146806Srwatson114	AUE_NULL	UNIMPL	nosys
192146806Srwatson115	AUE_NULL	UNIMPL	nosys
193146806Srwatson116	AUE_NULL	UNIMPL	nosys
194146806Srwatson117	AUE_NULL	UNIMPL	nosys
195146806Srwatson118	AUE_NULL	UNIMPL	nosys
196146806Srwatson119	AUE_NULL	UNIMPL	nosys
197146806Srwatson120	AUE_NULL	UNIMPL	nosys
198146806Srwatson121	AUE_NULL	UNIMPL	nosys
199146806Srwatson122	AUE_NULL	UNIMPL	nosys
200146806Srwatson123	AUE_NULL	UNIMPL	nosys
201146806Srwatson124	AUE_NULL	UNIMPL	nosys
202146806Srwatson125	AUE_NULL	UNIMPL	nosys
203146806Srwatson126	AUE_NULL	UNIMPL	nosys
204146806Srwatson127	AUE_NULL	UNIMPL	nosys
205