syscalls.master revision 158406
1105197Ssam $FreeBSD: head/sys/i386/linux/syscalls.master 158406 2006-05-10 18:17:29Z netchild $
2105197Ssam
3139823Simp;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
4105197Ssam; System call name/number master file (or rather, slave, from LINUX).
5105197Ssam; Processed to create linux_sysent.c, linux_proto.h and linux_syscall.h.
6105197Ssam
7105197Ssam; Columns: number audit type nargs name alt{name,tag,rtyp}/comments
8105197Ssam;	number	system call number, must be in order
9105197Ssam;	audit	the audit event associated with the system call
10105197Ssam;		A value of AUE_NULL means no auditing, but it also means that
11105197Ssam;		there is no audit event for the call at this time. For the
12105197Ssam;		case where the event exists, but we don't want auditing, the
13105197Ssam;		event should be #defined to AUE_NULL in audit_kevents.h.
14105197Ssam;	type	one of STD, OBSOL, UNIMPL
15105197Ssam;	name	psuedo-prototype of syscall routine
16105197Ssam;		If one of the following alts is different, then all appear:
17105197Ssam;	audit   the audit event associated with the system call
18105197Ssam;		A value of AUE_NULL means no auditing, but it also means that
19105197Ssam;		there is no audit event for the call at this time. For the
20105197Ssam;		case where the event exists, but we don't want auditing, the
21105197Ssam;		event should be #defined to AUE_NULL in audit_kevents.h.
22105197Ssam;	altname	name of system call if different
23105197Ssam;	alttag	name of args struct tag if different from [o]`name'"_args"
24105197Ssam;	altrtyp	return type if not int (bogus - syscalls always return int)
25105197Ssam;		for UNIMPL/OBSOL, name continues with comments
26105197Ssam
27105197Ssam; types:
28105197Ssam;	AUE_NULL	STD	always included
29105197Ssam;	OBSOL	obsolete, not included in system, only specifies name
30105197Ssam;	AUE_NULL	UNIMPL	not implemented, placeholder only
31105197Ssam
32105197Ssam#include <sys/param.h>
33105197Ssam#include <sys/sysent.h>
34105197Ssam#include <sys/sysproto.h>
35105197Ssam#include <compat/linux/linux_sysproto.h>
36105197Ssam#include <i386/linux/linux.h>
37105197Ssam#include <i386/linux/linux_proto.h>
38105197Ssam
39105197Ssam; Isn't pretty, but there seems to be no other way to trap nosys
40105197Ssam#define	nosys	linux_nosys
41105197Ssam
42105197Ssam; #ifdef's, etc. may be included, and are copied to the output files.
43105197Ssam
44105197Ssam0	AUE_NULL	UNIMPL	setup
45105197Ssam1	AUE_EXIT	MNOPROTO { void sys_exit(int rval); } exit \
46105197Ssam				    sys_exit_args void
47105197Ssam2	AUE_FORK	MSTD	{ int linux_fork(void); }
48105197Ssam3	AUE_NULL	MNOPROTO { int read(int fd, char *buf, \
49105197Ssam				    u_int nbyte); }
50105197Ssam4	AUE_NULL	MNOPROTO { int write(int fd, char *buf, \
51105197Ssam				    u_int nbyte); }
52105197Ssam5	AUE_OPEN_RWTC	MSTD	{ int linux_open(char *path, l_int flags, \
53105197Ssam				    l_int mode); }
54105197Ssam6	AUE_CLOSE	MNOPROTO { int close(int fd); }
55105197Ssam7	AUE_WAIT4	MSTD	{ int linux_waitpid(l_pid_t pid, \
56105197Ssam				    l_int *status, l_int options); }
57105197Ssam8	AUE_O_CREAT	MSTD	{ int linux_creat(char *path, \
58105197Ssam				    l_int mode); }
59105197Ssam9	AUE_LINK	MSTD	{ int linux_link(char *path, char *to); }
60105197Ssam10	AUE_UNLINK	MSTD	{ int linux_unlink(char *path); }
61105197Ssam11	AUE_EXECVE	MSTD	{ int linux_execve(char *path, char **argp, \
62105197Ssam				    char **envp); }
63105197Ssam12	AUE_CHDIR	MSTD	{ int linux_chdir(char *path); }
64105197Ssam13	AUE_NULL	MSTD	{ int linux_time(l_time_t *tm); }
65105197Ssam14	AUE_MKNOD	MSTD	{ int linux_mknod(char *path, l_int mode, \
66105197Ssam				    l_dev_t dev); }
67105197Ssam15	AUE_CHMOD	MSTD	{ int linux_chmod(char *path, \
68105197Ssam				    l_mode_t mode); }
69105197Ssam16	AUE_LCHOWN	MSTD	{ int linux_lchown16(char *path, \
70105197Ssam				    l_uid16_t uid, l_gid16_t gid); }
71105197Ssam17	AUE_NULL	UNIMPL	break
72105197Ssam18	AUE_STAT	MSTD	{ int linux_stat(char *path, \
73105197Ssam				    struct linux_stat *up); }
74105197Ssam19	AUE_LSEEK	MSTD	{ int linux_lseek(l_uint fdes, l_off_t off, \
75105197Ssam				    l_int whence); }
76105197Ssam20	AUE_GETPID	MSTD	{ int linux_getpid(void); }
77105197Ssam21	AUE_MOUNT	STD	{ int linux_mount(char *specialfile, \
78105197Ssam				    char *dir, char *filesystemtype, \
79105197Ssam				    l_ulong rwflag, void *data); }
80105197Ssam22	AUE_UMOUNT	STD	{ int linux_oldumount(char *path); }
81105197Ssam23	AUE_SETUID	MSTD	{ int linux_setuid16(l_uid16_t uid); }
82105197Ssam24	AUE_GETUID	MSTD	{ int linux_getuid16(void); }
83105197Ssam25	AUE_SETTIMEOFDAY	MSTD	{ int linux_stime(void); }
84158704Spjd26	AUE_PTRACE	MSTD	{ int linux_ptrace(l_long req, l_long pid, \
85158704Spjd				    l_long addr, l_long data); }
86105197Ssam27	AUE_NULL	MSTD	{ int linux_alarm(l_uint secs); }
87105197Ssam28	AUE_FSTAT	MSTD	{ int linux_fstat(l_uint fd, \
88158704Spjd				    struct linux_stat *up); }
89105197Ssam29	AUE_NULL	MSTD	{ int linux_pause(void); }
90105197Ssam30	AUE_UTIME	MSTD	{ int linux_utime(char *fname, \
91105197Ssam				    struct l_utimbuf *times); }
92105197Ssam31	AUE_NULL	UNIMPL	stty
93105197Ssam32	AUE_NULL	UNIMPL	gtty
94105197Ssam33	AUE_ACCESS	MSTD	{ int linux_access(char *path, l_int flags); }
95105197Ssam34	AUE_NICE	MSTD	{ int linux_nice(l_int inc); }
96105197Ssam35	AUE_NULL	UNIMPL	ftime
97105197Ssam36	AUE_SYNC	MNOPROTO	{ int sync(void); }
98105197Ssam37	AUE_KILL	MSTD	{ int linux_kill(l_int pid, l_int signum); }
99105197Ssam38	AUE_RENAME	MSTD	{ int linux_rename(char *from, char *to); }
100105197Ssam39	AUE_MKDIR	MSTD	{ int linux_mkdir(char *path, l_int mode); }
101105197Ssam40	AUE_RMDIR	MSTD	{ int linux_rmdir(char *path); }
102105197Ssam41	AUE_DUP		MNOPROTO { int dup(u_int fd); }
103105197Ssam42	AUE_PIPE	MSTD	{ int linux_pipe(l_ulong *pipefds); }
104105197Ssam43	AUE_NULL	MSTD	{ int linux_times(struct l_times_argv *buf); }
105105197Ssam44	AUE_NULL	UNIMPL	prof
106105197Ssam45	AUE_NULL	STD	{ int linux_brk(l_ulong dsend); }
107105197Ssam46	AUE_SETGID	MSTD	{ int linux_setgid16(l_gid16_t gid); }
108105197Ssam47	AUE_GETGID	MSTD	{ int linux_getgid16(void); }
109105197Ssam48	AUE_NULL	MSTD	{ int linux_signal(l_int sig, \
110105197Ssam				    l_handler_t handler); }
111105197Ssam49	AUE_GETEUID	MSTD	{ int linux_geteuid16(void); }
112105197Ssam50	AUE_GETEGID	MSTD	{ int linux_getegid16(void); }
113171133Sgnn51	AUE_ACCT	MNOPROTO { int acct(char *path); }
114105197Ssam52	AUE_UMOUNT	STD	{ int linux_umount(char *path, l_int flags); }
115105197Ssam53	AUE_NULL	UNIMPL	lock
116105197Ssam54	AUE_IOCTL	STD	{ int linux_ioctl(l_uint fd, l_uint cmd, \
117105197Ssam				    l_ulong arg); }
118105197Ssam55	AUE_FCNTL	MSTD	{ int linux_fcntl(l_uint fd, l_uint cmd, \
119158704Spjd				    l_ulong arg); }
120105197Ssam56	AUE_NULL	UNIMPL	mpx
121158704Spjd57	AUE_SETPGRP	MNOPROTO { int setpgid(int pid, int pgid); }
122105197Ssam58	AUE_NULL	UNIMPL	ulimit
123158704Spjd59	AUE_NULL	MSTD	{ int linux_olduname(void); }
124105197Ssam60	AUE_UMASK	MNOPROTO { int umask(int newmask); }
125105197Ssam61	AUE_CHROOT	MNOPROTO	{ int chroot(char *path); }
126105197Ssam62	AUE_NULL	MSTD	{ int linux_ustat(l_dev_t dev, \
127105197Ssam				    struct l_ustat *ubuf); }
128105197Ssam63	AUE_DUP2	MNOPROTO { int dup2(u_int from, u_int to); }
129105197Ssam64	AUE_GETPPID	MNOPROTO { int getppid(void); }
130105197Ssam65	AUE_GETPGRP	MNOPROTO { int getpgrp(void); }
131105197Ssam66	AUE_SETSID	MNOPROTO { int setsid(void); }
132105197Ssam67	AUE_NULL	MSTD	{ int linux_sigaction(l_int sig, \
133105197Ssam				    l_osigaction_t *nsa, \
134105197Ssam				    l_osigaction_t *osa); }
135105197Ssam68	AUE_NULL	MSTD	{ int linux_sgetmask(void); }
136105197Ssam69	AUE_NULL	MSTD	{ int linux_ssetmask(l_osigset_t mask); }
137105197Ssam70	AUE_SETREUID	MSTD	{ int linux_setreuid16(l_uid16_t ruid, \
138105197Ssam				    l_uid16_t euid); }
139105197Ssam71	AUE_SETREGID	MSTD	{ int linux_setregid16(l_gid16_t rgid, \
140105197Ssam				    l_gid16_t egid); }
141105197Ssam72	AUE_NULL	MSTD	{ int linux_sigsuspend(l_int hist0, \
142105197Ssam				    l_int hist1, l_osigset_t mask); }
143105197Ssam73	AUE_NULL	MSTD	{ int linux_sigpending(l_osigset_t *mask); }
144105197Ssam74	AUE_SYSCTL	MSTD	{ int linux_sethostname(char *hostname, \
145120585Ssam				    u_int len); }
146105197Ssam75	AUE_SETRLIMIT	MSTD	{ int linux_setrlimit(l_uint resource, \
147105197Ssam				    struct l_rlimit *rlim); }
148105197Ssam76	AUE_GETRLIMIT	MSTD	{ int linux_old_getrlimit(l_uint resource, \
149105197Ssam				    struct l_rlimit *rlim); }
150105197Ssam77	AUE_GETRUSAGE	MNOPROTO	{ int getrusage(int who, \
151105197Ssam				    struct rusage *rusage); }
152105197Ssam78	AUE_NULL	MNOPROTO { int gettimeofday( \
153105197Ssam				    struct timeval *tp, \
154105197Ssam				    struct timezone *tzp); }
155105197Ssam79	AUE_SETTIMEOFDAY	MNOPROTO { int settimeofday( \
156105197Ssam				    struct timeval *tp, \
157105197Ssam				    struct timezone *tzp); }
158105197Ssam80	AUE_GETGROUPS	MSTD	{ int linux_getgroups16(l_uint gidsetsize, \
159105197Ssam				    l_gid16_t *gidset); }
160105197Ssam81	AUE_SETGROUPS	MSTD	{ int linux_setgroups16(l_uint gidsetsize, \
161105197Ssam				    l_gid16_t *gidset); }
162105197Ssam82	AUE_SELECT	MSTD	{ int linux_old_select( \
163105197Ssam				    struct l_old_select_argv *ptr); }
164105197Ssam83	AUE_SYMLINK	MSTD	{ int linux_symlink(char *path, char *to); }
165105197Ssam84	AUE_STAT	MSTD	{ int linux_lstat(char *path, struct ostat *up); }
166105197Ssam85	AUE_READLINK	MSTD	{ int linux_readlink(char *name, char *buf, \
167120585Ssam				    l_int count); }
168120585Ssam86	AUE_USELIB	STD	{ int linux_uselib(char *library); }
169105197Ssam87	AUE_SWAPON	MNOPROTO	{ int swapon(char *name); }
170105197Ssam88	AUE_REBOOT	MSTD	{ int linux_reboot(l_int magic1, \
171105197Ssam				    l_int magic2, l_uint cmd, void *arg); }
172105197Ssam89	AUE_O_GETDENTS	STD	{ int linux_readdir(l_uint fd, \
173105197Ssam				    struct l_dirent *dent, l_uint count); }
174105197Ssam90	AUE_MMAP	MSTD	{ int linux_mmap(struct l_mmap_argv *ptr); }
175105197Ssam91	AUE_MUNMAP	MNOPROTO	{ int munmap(caddr_t addr, int len); }
176105197Ssam92	AUE_TRUNCATE	MSTD	{ int linux_truncate(char *path, \
177105197Ssam				    l_ulong length); }
178120585Ssam93	AUE_FTRUNCATE	MSTD	{ int linux_ftruncate(int fd, long length); }
179120585Ssam94	AUE_FCHMOD	MNOPROTO	{ int fchmod(int fd, int mode); }
180105197Ssam95	AUE_FCHOWN	MNOPROTO	{ int fchown(int fd, int uid, int gid); }
181105197Ssam96	AUE_GETPRIORITY	MSTD	{ int linux_getpriority(int which, int who); }
182105197Ssam97	AUE_SETPRIORITY	MNOPROTO { int setpriority(int which, int who, \
183105197Ssam				    int prio); }
184105197Ssam98	AUE_AUE_PROFILE	UNIMPL	profil
185120585Ssam99	AUE_STATFS	MSTD	{ int linux_statfs(char *path, \
186120585Ssam				    struct l_statfs_buf *buf); }
187105197Ssam100	AUE_FSTATFS	MSTD	{ int linux_fstatfs(l_uint fd, \
188105197Ssam				    struct l_statfs_buf *buf); }
189105197Ssam101	AUE_NULL	MSTD	{ int linux_ioperm(l_ulong start, \
190105197Ssam				    l_ulong length, l_int enable); }
191120585Ssam102	AUE_NULL	MSTD	{ int linux_socketcall(l_int what, \
192120585Ssam				    l_ulong args); }
193105197Ssam103	AUE_NULL	MSTD	{ int linux_syslog(l_int type, char *buf, \
194105197Ssam				    l_int len); }
195105197Ssam104	AUE_SETITIMER	MSTD	{ int linux_setitimer(l_int which, \
196105197Ssam				    struct l_itimerval *itv, \
197105197Ssam				    struct l_itimerval *oitv); }
198105197Ssam105	AUE_GETITIMER	MSTD	{ int linux_getitimer(l_int which, \
199105197Ssam				    struct l_itimerval *itv); }
200105197Ssam106	AUE_STAT	MSTD	{ int linux_newstat(char *path, \
201105197Ssam				    struct l_newstat *buf); }
202105197Ssam107	AUE_LSTAT	MSTD	{ int linux_newlstat(char *path, \
203105197Ssam				    struct l_newstat *buf); }
204157123Sgnn108	AUE_FSTAT	MSTD	{ int linux_newfstat(l_uint fd, \
205158704Spjd				    struct l_newstat *buf); }
206105197Ssam109	AUE_NULL	MSTD	{ int linux_uname(void); }
207105197Ssam110	AUE_NULL	MSTD	{ int linux_iopl(l_ulong level); }
208105197Ssam111	AUE_NULL	MSTD	{ int linux_vhangup(void); }
209105197Ssam112	AUE_NULL	UNIMPL	idle
210105197Ssam113	AUE_NULL	MSTD	{ int linux_vm86old(void); }
211105197Ssam114	AUE_WAIT4	MSTD	{ int linux_wait4(l_pid_t pid, \
212105197Ssam				    l_uint *status, l_int options, \
213105197Ssam				    struct l_rusage *rusage); }
214105197Ssam115	AUE_SWAPOFF	MSTD	{ int linux_swapoff(void); }
215105197Ssam116	AUE_NULL	MSTD	{ int linux_sysinfo(struct l_sysinfo *info); }
216105197Ssam117	AUE_NULL	STD	{ int linux_ipc(l_uint what, l_int arg1, \
217105197Ssam				    l_int arg2, l_int arg3, void *ptr, \
218105197Ssam				    l_long arg5); }
219105197Ssam118	AUE_FSYNC	MNOPROTO	{ int fsync(int fd); }
220105197Ssam119	AUE_SIGRETURN	MSTD	{ int linux_sigreturn( \
221105197Ssam				    struct l_sigframe *sfp); }
222105197Ssam120	AUE_RFORK	MSTD	{ int linux_clone(l_int flags, void *stack); }
223105197Ssam121	AUE_SYSCTL	MNOPROTO { int setdomainname(char *name, \
224105197Ssam				    int len); }
225105197Ssam122	AUE_NULL	MSTD	{ int linux_newuname( \
226105197Ssam				    struct l_new_utsname *buf); }
227105197Ssam123	AUE_NULL	MSTD	{ int linux_modify_ldt(l_int func, \
228105197Ssam				    void *ptr, l_ulong bytecount); }
229105197Ssam124	AUE_ADJTIME	MSTD	{ int linux_adjtimex(void); }
230105197Ssam125	AUE_MPROTECT	MNOPROTO	{ int mprotect(caddr_t addr, int len, \
231105197Ssam				    int prot); }
232105197Ssam126	AUE_SIGPROCMASK	MSTD	{ int linux_sigprocmask(l_int how, \
233105197Ssam				    l_osigset_t *mask, l_osigset_t *omask); }
234105197Ssam127	AUE_NULL	MSTD	{ int linux_create_module(void); }
235157123Sgnn128	AUE_NULL	MSTD	{ int linux_init_module(void); }
236105197Ssam129	AUE_NULL	MSTD	{ int linux_delete_module(void); }
237105197Ssam130	AUE_NULL	MSTD	{ int linux_get_kernel_syms(void); }
238105197Ssam131	AUE_QUOTACTL	MSTD	{ int linux_quotactl(void); }
239105197Ssam132	AUE_GETPGID	MNOPROTO	{ int getpgid(int pid); }
240105197Ssam133	AUE_FCHDIR	MNOPROTO	{ int fchdir(int fd); }
241105197Ssam134	AUE_BDFLUSH	MSTD	{ int linux_bdflush(void); }
242105197Ssam135	AUE_NULL	MSTD	{ int linux_sysfs(l_int option, \
243105197Ssam				    l_ulong arg1, l_ulong arg2); }
244105197Ssam136	AUE_PERSONALITY	MSTD	{ int linux_personality(l_ulong per); }
245105197Ssam137	AUE_NULL	UNIMPL	afs_syscall
246105197Ssam138	AUE_SETFSUID	MSTD	{ int linux_setfsuid16(l_uid16_t uid); }
247105197Ssam139	AUE_SETFSGID	MSTD	{ int linux_setfsgid16(l_gid16_t gid); }
248105197Ssam140	AUE_LSEEK	MSTD	{ int linux_llseek(l_int fd, l_ulong ohigh, \
249105197Ssam				    l_ulong olow, l_loff_t *res, \
250105197Ssam				    l_uint whence); }
251105197Ssam141	AUE_O_GETDENTS	STD	{ int linux_getdents(l_uint fd, void *dent, \
252105197Ssam				    l_uint count); }
253105197Ssam142	AUE_SELECT	MSTD	{ int linux_select(l_int nfds, \
254105197Ssam				    l_fd_set *readfds, l_fd_set *writefds, \
255105197Ssam				    l_fd_set *exceptfds, \
256105197Ssam				    struct l_timeval *timeout); }
257105197Ssam143	AUE_FLOCK	MNOPROTO	{ int flock(int fd, int how); }
258105197Ssam144	AUE_MSYNC	MSTD	{ int linux_msync(l_ulong addr, \
259105197Ssam				    l_size_t len, l_int fl); }
260105197Ssam145	AUE_READV	MNOPROTO	{ int readv(int fd, struct iovec *iovp, \
261105197Ssam				    u_int iovcnt); }
262105197Ssam146	AUE_WRITEV	MNOPROTO	{ int writev(int fd, struct iovec *iovp, \
263105197Ssam				    u_int iovcnt); }
264105197Ssam147	AUE_GETSID	MSTD	{ int linux_getsid(l_pid_t pid); }
265105197Ssam148	AUE_NULL	MSTD	{ int linux_fdatasync(l_uint fd); }
266105197Ssam149	AUE_SYSCTL	MSTD	{ int linux_sysctl( \
267105197Ssam				    struct l___sysctl_args *args); }
268105197Ssam150	AUE_MLOCK	MNOPROTO { int mlock(const void *addr, size_t len); }
269105197Ssam151	AUE_MUNLOCK	MNOPROTO { int munlock(const void *addr, size_t len); }
270105197Ssam152	AUE_MLOCKALL	MNOPROTO { int mlockall(int how); }
271105197Ssam153	AUE_MUNLOCKALL	MNOPROTO { int munlockall(void); }
272105197Ssam154	AUE_SCHED_SETPARAM	MNOPROTO { int sched_setparam(pid_t pid, \
273105197Ssam				    const struct sched_param *param); }
274120585Ssam155	AUE_SCHED_GETPARAM	MNOPROTO { int sched_getparam(pid_t pid, \
275105197Ssam				    struct sched_param *param); }
276105197Ssam156	AUE_SCHED_SETSCHEDULER	MSTD	{ int linux_sched_setscheduler(l_pid_t pid, \
277105197Ssam				    l_int policy, \
278105197Ssam				    struct l_sched_param *param); }
279105197Ssam157	AUE_SCHED_GETSCHEDULER	MSTD	{ int linux_sched_getscheduler(l_pid_t pid); }
280105197Ssam158	AUE_NULL	MNOPROTO	{ int sched_yield(void); }
281105197Ssam159	AUE_SCHED_GET_PRIORITY_MAX	MSTD	{ int linux_sched_get_priority_max( \
282105197Ssam				    l_int policy); }
283105197Ssam160	AUE_SCHED_GET_PRIORITY_MIN	MSTD	{ int linux_sched_get_priority_min( \
284105197Ssam				    l_int policy); }
285105197Ssam161	AUE_SCHED_RR_GET_INTERVAL	MNOPROTO { int sched_rr_get_interval(l_pid_t pid, \
286105197Ssam				    struct l_timespec *interval); }
287105197Ssam162	AUE_NULL	MNOPROTO { int nanosleep( \
288105197Ssam				    const struct timespec *rqtp, \
289105197Ssam				    struct timespec *rmtp); }
290105197Ssam163	AUE_NULL	MSTD	{ int linux_mremap(l_ulong addr, \
291105197Ssam				    l_ulong old_len, l_ulong new_len, \
292105197Ssam				    l_ulong flags, l_ulong new_addr); }
293105197Ssam164	AUE_SETRESUID	MSTD	{ int linux_setresuid16(l_uid16_t ruid, \
294105197Ssam				    l_uid16_t euid, l_uid16_t suid); }
295105197Ssam165	AUE_GETRESUID	MSTD	{ int linux_getresuid16(l_uid16_t *ruid, \
296105197Ssam				    l_uid16_t *euid, l_uid16_t *suid); }
297105197Ssam166	AUE_NULL	MSTD	{ int linux_vm86(void); }
298105197Ssam167	AUE_NULL	MSTD	{ int linux_query_module(void); }
299105197Ssam168	AUE_POLL	MNOPROTO	{ int poll(struct pollfd*, \
300105197Ssam				    unsigned int nfds, long timeout); }
301105197Ssam169	AUE_NULL	MSTD	{ int linux_nfsservctl(void); }
302105197Ssam170	AUE_SETRESGID	MSTD	{ int linux_setresgid16(l_gid16_t rgid, \
303105197Ssam				    l_gid16_t egid, l_gid16_t sgid); }
304105197Ssam171	AUE_GETRESGID	MSTD	{ int linux_getresgid16(l_gid16_t *rgid, \
305105197Ssam				    l_gid16_t *egid, l_gid16_t *sgid); }
306105197Ssam172	AUE_PRCTL	MSTD	{ int linux_prctl(void); }
307105197Ssam173	AUE_NULL	MSTD	{ int linux_rt_sigreturn( \
308105197Ssam				    struct l_ucontext *ucp); }
309105197Ssam174	AUE_NULL	MSTD	{ int linux_rt_sigaction(l_int sig, \
310105197Ssam				    l_sigaction_t *act, l_sigaction_t *oact, \
311120585Ssam				    l_size_t sigsetsize); }
312120585Ssam175	AUE_NULL	MSTD	{ int linux_rt_sigprocmask(l_int how, \
313105197Ssam				    l_sigset_t *mask, l_sigset_t *omask, \
314105197Ssam				    l_size_t sigsetsize); }
315105197Ssam176	AUE_NULL	MSTD	{ int linux_rt_sigpending(l_sigset_t *set, \
316105197Ssam				    l_size_t sigsetsize); }
317105197Ssam177	AUE_NULL	MSTD	{ int linux_rt_sigtimedwait(void); }
318105197Ssam178	AUE_NULL	MSTD	{ int linux_rt_sigqueueinfo(void); }
319105197Ssam179	AUE_NULL	MSTD	{ int linux_rt_sigsuspend( \
320105197Ssam				    l_sigset_t *newset, \
321105197Ssam				    l_size_t sigsetsize); }
322105197Ssam180	AUE_PREAD	MSTD	{ int linux_pread(l_uint fd, char *buf, \
323105197Ssam				    l_size_t nbyte, l_loff_t offset); }
324105197Ssam181	AUE_PWRITE	MSTD	{ int linux_pwrite(l_uint fd, char *buf, \
325105197Ssam				    l_size_t nbyte, l_loff_t offset); }
326105197Ssam182	AUE_CHOWN	MSTD	{ int linux_chown16(char *path, \
327105197Ssam				    l_uid16_t uid, l_gid16_t gid); }
328105197Ssam183	AUE_GETCWD	MSTD	{ int linux_getcwd(char *buf, \
329105197Ssam				    l_ulong bufsize); }
330105197Ssam184	AUE_CAPGET	MSTD	{ int linux_capget(void); }
331105197Ssam185	AUE_CAPSET	MSTD	{ int linux_capset(void); }
332105197Ssam186	AUE_NULL	MSTD	{ int linux_sigaltstack(l_stack_t *uss, \
333105197Ssam				    l_stack_t *uoss); }
334120585Ssam187	AUE_SENDFILE	MSTD	{ int linux_sendfile(void); }
335120585Ssam188	AUE_GETPMSG	UNIMPL	getpmsg
336120585Ssam189	AUE_PUTPMSG	UNIMPL	putpmsg
337105197Ssam190	AUE_VFORK	MSTD	{ int linux_vfork(void); }
338105197Ssam191	AUE_GETRLIMIT	MSTD	{ int linux_getrlimit(l_uint resource, \
339105197Ssam				    struct l_rlimit *rlim); }
340105197Ssam192	AUE_MMAP	MSTD	{ int linux_mmap2(l_ulong addr, l_ulong len, \
341105197Ssam				    l_ulong prot, l_ulong flags, l_ulong fd, \
342105197Ssam				    l_ulong pgoff); }
343105197Ssam193	AUE_TRUNCATE	MSTD	{ int linux_truncate64(char *path, \
344105197Ssam				    l_loff_t length); }
345105197Ssam194	AUE_FTRUNCATE	MSTD	{ int linux_ftruncate64(l_uint fd, \
346105197Ssam				    l_loff_t length); }
347105197Ssam195	AUE_STAT	MSTD	{ int linux_stat64(char *filename, \
348105197Ssam				    struct l_stat64 *statbuf, l_long flags); }
349120585Ssam196	AUE_LSTAT	MSTD	{ int linux_lstat64(char *filename, \
350120585Ssam				    struct l_stat64 *statbuf, l_long flags); }
351120585Ssam197	AUE_FSTAT	MSTD	{ int linux_fstat64(l_ulong fd, \
352105197Ssam				    struct l_stat64 *statbuf, l_long flags); }
353105197Ssam198	AUE_LCHOWN	MSTD	{ int linux_lchown(char *path, l_uid_t uid, \
354105197Ssam				    l_gid_t gid); }
355105197Ssam199	AUE_GETUID	MSTD	{ int linux_getuid(void); }
356105197Ssam200	AUE_GETGID	MSTD	{ int linux_getgid(void); }
357105197Ssam201	AUE_GETEUID	MNOPROTO { int geteuid(void); }
358105197Ssam202	AUE_GETEGID	MNOPROTO { int getegid(void); }
359105197Ssam203	AUE_SETREUID	MNOPROTO { int setreuid(uid_t ruid, uid_t euid); }
360105197Ssam204	AUE_SETREGID	MNOPROTO { int setregid(gid_t rgid, gid_t egid); }
361105197Ssam205	AUE_GETGROUPS	MSTD	{ int linux_getgroups(l_int gidsetsize, \
362105197Ssam				    l_gid_t *grouplist); }
363105197Ssam206	AUE_SETGROUPS	MSTD	{ int linux_setgroups(l_int gidsetsize, \
364105197Ssam				    l_gid_t *grouplist); }
365105197Ssam207	AUE_FCHOWN	NODEF	fchown fchown fchown_args int
366105197Ssam208	AUE_SETRESUID	MNOPROTO { int setresuid(uid_t ruid, uid_t euid, \
367105197Ssam				    uid_t suid); }
368105197Ssam209	AUE_GETRESUID	MNOPROTO { int getresuid(uid_t *ruid, uid_t *euid, \
369105197Ssam				    uid_t *suid); }
370105197Ssam210	AUE_SETRESGID	MNOPROTO { int setresgid(gid_t rgid, gid_t egid, \
371105197Ssam				    gid_t sgid); }
372105197Ssam211	AUE_GETRESGID	MNOPROTO { int getresgid(gid_t *rgid, gid_t *egid, \
373105197Ssam				    gid_t *sgid); }
374105197Ssam212	AUE_CHOWN	MSTD	{ int linux_chown(char *path, l_uid_t uid, \
375120585Ssam				    l_gid_t gid); }
376120585Ssam213	AUE_SETUID	MNOPROTO { int setuid(uid_t uid); }
377120585Ssam214	AUE_SETGID	MNOPROTO { int setgid(gid_t gid); }
378105197Ssam215	AUE_SETFSUID	MSTD	{ int linux_setfsuid(l_uid_t uid); }
379105197Ssam216	AUE_SETFSGID	MSTD	{ int linux_setfsgid(l_gid_t gid); }
380105197Ssam217	AUE_PIVOT_ROOT	MSTD	{ int linux_pivot_root(char *new_root, \
381105197Ssam				    char *put_old); }
382105197Ssam218	AUE_MINCORE	MSTD	{ int linux_mincore(l_ulong start, \
383105197Ssam				    l_size_t len, u_char *vec); }
384105197Ssam219	AUE_MADVISE	MNOPROTO { int madvise(void *addr, size_t len, \
385105197Ssam				    int behav); }
386105197Ssam220	AUE_O_GETDENTS	STD	{ int linux_getdents64(l_uint fd, \
387105197Ssam				    void *dirent, l_uint count); }
388105197Ssam221	AUE_FCNTL	MSTD	{ int linux_fcntl64(l_uint fd, l_uint cmd, \
389105197Ssam				    l_ulong arg); }
390105197Ssam222	AUE_NULL	UNIMPL
391120585Ssam223	AUE_NULL	UNIMPL
392120585Ssam224	AUE_NULL	MSTD	{ long linux_gettid(void); }
393105197Ssam225	AUE_NULL	UNIMPL	linux_readahead
394105197Ssam226	AUE_NULL	MSTD	{ int linux_setxattr(void); }
395105197Ssam227	AUE_NULL	MSTD	{ int linux_lsetxattr(void); }
396105197Ssam228	AUE_NULL	MSTD	{ int linux_fsetxattr(void); }
397105197Ssam229	AUE_NULL	MSTD	{ int linux_getxattr(void); }
398105197Ssam230	AUE_NULL	MSTD	{ int linux_lgetxattr(void); }
399105197Ssam231	AUE_NULL	MSTD	{ int linux_fgetxattr(void); }
400105197Ssam232	AUE_NULL	MSTD	{ int linux_listxattr(void); }
401105197Ssam233	AUE_NULL	MSTD	{ int linux_llistxattr(void); }
402105197Ssam234	AUE_NULL	MSTD	{ int linux_flistxattr(void); }
403105197Ssam235	AUE_NULL	MSTD	{ int linux_removexattr(void); }
404105197Ssam236	AUE_NULL	MSTD	{ int linux_lremovexattr(void); }
405105197Ssam237	AUE_NULL	MSTD	{ int linux_fremovexattr(void); }
406105197Ssam238	AUE_NULL	MSTD	{ int linux_tkill(int tid, int sig); }
407105197Ssam239	AUE_SENDFILE	UNIMPL	linux_sendfile64
408105197Ssam240	AUE_NULL	UNIMPL	linux_futex
409120585Ssam241	AUE_NULL	UNIMPL	linux_sched_setaffinity
410105197Ssam242	AUE_NULL	UNIMPL	linux_sched_getaffinity
411105197Ssam243	AUE_NULL	MSTD	{ int linux_set_thread_area(void *entry); }
412105197Ssam244	AUE_NULL	UNIMPL	linux_get_thread_area
413105197Ssam245	AUE_NULL	UNIMPL	linux_io_setup
414105197Ssam246	AUE_NULL	UNIMPL	linux_io_destroy
415105197Ssam247	AUE_NULL	UNIMPL	linux_io_getevents
416105197Ssam248	AUE_NULL	UNIMPL	linux_io_submit
417105197Ssam249	AUE_NULL	UNIMPL	linux_io_cancel
418105197Ssam250	AUE_NULL	MSTD	{ int linux_fadvise64(void); }
419105197Ssam251	AUE_NULL	UNIMPL
420105197Ssam252	AUE_EXIT	MNOPROTO { void sys_exit(int rval); } exit_group \
421105197Ssam				    sys_exit_args void
422105197Ssam253	AUE_NULL	UNIMPL	linux_lookup_dcookie
423105197Ssam254	AUE_NULL	UNIMPL	linux_epoll_create
424105197Ssam255	AUE_NULL	UNIMPL	linux_epoll_ctl
425105197Ssam256	AUE_NULL	UNIMPL	linux_epoll_wait
426105197Ssam257	AUE_NULL	UNIMPL	linux_remap_file_pages
427105197Ssam258	AUE_NULL	UNIMPL	linux_set_tid_address
428105197Ssam259	AUE_NULL	UNIMPL	linux_timer_create
429105197Ssam260	AUE_NULL	UNIMPL	linux_timer_settime
430105197Ssam261	AUE_NULL	UNIMPL	linux_timer_gettime
431105197Ssam262	AUE_NULL	UNIMPL	linux_timer_getoverrun
432105197Ssam263	AUE_NULL	UNIMPL	linux_timer_delete
433105197Ssam264	AUE_CLOCK_SETTIME	UNIMPL	linux_clock_settime
434105197Ssam265	AUE_NULL	UNIMPL	linux_clock_gettime
435120585Ssam266	AUE_NULL	UNIMPL	linux_clock_getres
436120585Ssam267	AUE_NULL	UNIMPL	linux_clock_nanosleep
437105197Ssam