syscalls.master revision 1.24
11.24Sjoerg	$NetBSD: syscalls.master,v 1.24 2005/10/18 18:37:44 joerg Exp $
21.1Smanu
31.1Smanu;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
41.1Smanu
51.1Smanu; Derived from NetBSD's sys/compat/linux/arch/i386/syscalls.master
61.21Sperry; sys/compat/linux/arch/m68k/syscalls.master
71.21Sperry; and from Linux's arch/ppc/kernel/misc.S
81.1Smanu;
91.1Smanu; We have problems for a few syscalls, specially:
101.1Smanu; 142 ppc_select -> sys_new_select -> sys_select (Conflicts with 82 ???).
111.1Smanu;
121.1Smanu; Expect problems with the following, which have an architecture dependent
131.1Smanu; implementation in Linux/powerpc:
141.1Smanu; 29  pause
151.1Smanu; 42  pipe      tested. no problem.
161.1Smanu; 59  olduname
171.1Smanu; 101 ioperm
181.1Smanu; 109 uname
191.1Smanu; 117 ipc
201.21Sperry;
211.1Smanu; Most of syscalls after 182 that were introduced in Linux-2.4 are UNIMPL.
221.1Smanu;
231.21Sperry; The following are UNIMPL here. The Linux kernel implements them but just logs
241.21Sperry; a kernel error and returns -ENOSYS.
251.1Smanu; 110 iopl
261.1Smanu; 113 vm86
271.1Smanu; 123 modify_ldt
281.1Smanu; 198 sys_pciconfig_read
291.1Smanu; 199 sys_pciconfig_write
301.1Smanu; 200 sys_pciconfig_iobase
311.1Smanu;
321.1Smanu; Emmanuel Dreyfus <p99dreyf@criens.u-psud.fr>
331.1Smanu
341.1Smanu; NetBSD powerpc COMPAT_LINUX system call name/number "master" file.
351.1Smanu; (See syscalls.conf to see what it is processed into.)
361.1Smanu;
371.1Smanu; Fields: number type [type-dependent ...]
381.1Smanu;	number	system call number, must be in order
391.1Smanu;	type	one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
401.1Smanu;		the compatibility options defined in syscalls.conf.
411.1Smanu;
421.1Smanu; types:
431.1Smanu;	STD	always included
441.1Smanu;	OBSOL	obsolete, not included in system
451.1Smanu;	UNIMPL	unimplemented, not included in system
461.1Smanu;	NODEF	included, but don't define the syscall number
471.1Smanu;	NOARGS	included, but don't define the syscall args structure
481.1Smanu;	INDIR	included, but don't define the syscall args structure
491.1Smanu;		and allow it to be "really" varargs.
501.1Smanu;
511.1Smanu; The compat options are defined in the syscalls.conf file, and the
521.1Smanu; compat option name is prefixed to the syscall name.  Other than
531.1Smanu; that, they're like NODEF (for 'compat' options), or STD (for
541.1Smanu; 'libcompat' options).
551.1Smanu;
561.1Smanu; The type-dependent arguments are as follows:
571.1Smanu; For STD, NODEF, NOARGS, and compat syscalls:
581.1Smanu;	{ pseudo-proto } [alias]
591.1Smanu; For other syscalls:
601.1Smanu;	[comment]
611.1Smanu;
621.1Smanu; #ifdef's, etc. may be included, and are copied to the output files.
631.1Smanu; #include's are copied to the syscall names and switch definition files only.
641.1Smanu
651.6Smrg#if defined(_KERNEL_OPT)
661.1Smanu#include "opt_compat_netbsd.h"
671.1Smanu#include "opt_compat_43.h"
681.1Smanu#endif
691.1Smanu
701.1Smanu#include <sys/param.h>
711.1Smanu#include <sys/poll.h>
721.1Smanu#include <sys/systm.h>
731.1Smanu#include <sys/signal.h>
741.1Smanu#include <sys/mount.h>
751.14Sthorpej#include <sys/sa.h>
761.1Smanu#include <sys/syscallargs.h>
771.1Smanu
781.1Smanu#include <compat/linux/common/linux_types.h>
791.1Smanu#include <compat/linux/common/linux_signal.h>
801.1Smanu#include <compat/linux/common/linux_siginfo.h>
811.1Smanu#include <compat/linux/common/linux_machdep.h>
821.1Smanu#include <compat/linux/common/linux_mmap.h>
831.1Smanu
841.1Smanu#include <compat/linux/linux_syscallargs.h>
851.1Smanu
861.3Sjdolecek0	NOARGS		{ int linux_sys_nosys(void); } syscall
871.1Smanu1	NOARGS		{ int sys_exit(int rval); }
881.1Smanu2	NOARGS		{ int sys_fork(void); }
891.1Smanu3	NOARGS		{ int sys_read(int fd, char *buf, u_int nbyte); }
901.1Smanu4	NOARGS		{ int sys_write(int fd, char *buf, u_int nbyte); }
911.1Smanu5	STD		{ int linux_sys_open(const char *path, int flags, \
921.1Smanu			    int mode); }
931.1Smanu6	NOARGS		{ int sys_close(int fd); }
941.1Smanu7	STD		{ int linux_sys_waitpid(int pid, int *status, \
951.1Smanu			    int options);}
961.1Smanu8	STD		{ int linux_sys_creat(const char *path, int mode); }
971.7Smanu9	STD		{ int linux_sys_link(const char *path, const \
981.7Smanu			    char *link); }
991.1Smanu10	STD		{ int linux_sys_unlink(const char *path); }
1001.1Smanu11	STD		{ int linux_sys_execve(const char *path, char **argp, \
1011.1Smanu			    char **envp); }
1021.1Smanu12	STD		{ int linux_sys_chdir(const char *path); }
1031.1Smanu13	STD		{ int linux_sys_time(linux_time_t *t); }
1041.1Smanu14	STD		{ int linux_sys_mknod(const char *path, int mode, \
1051.1Smanu			    int dev); }
1061.1Smanu15	STD		{ int linux_sys_chmod(const char *path, int mode); }
1071.1Smanu16	STD		{ int linux_sys_lchown(const char *path, int uid, \
1081.1Smanu			    int gid); }
1091.1Smanu17	OBSOL		break
1101.1Smanu18	OBSOL		ostat
1111.1Smanu19	NOARGS		{ long compat_43_sys_lseek(int fd, long offset, \
1121.1Smanu			    int whence); }
1131.2Sthorpej20	NOARGS MPSAFE	{ pid_t sys_getpid(void); }
1141.1Smanu21	UNIMPL		mount
1151.1Smanu22	OBSOL		umount
1161.1Smanu23	NOARGS		{ int sys_setuid(uid_t uid); }
1171.1Smanu24	NOARGS		{ uid_t sys_getuid(void); }
1181.1Smanu25	STD		{ int linux_sys_stime(linux_time_t *t); }
1191.1Smanu26	STD		{ int linux_sys_ptrace(int request, int pid, \
1201.7Smanu			    int addr, int data); }
1211.1Smanu27	STD		{ int linux_sys_alarm(unsigned int secs); }
1221.1Smanu28	OBSOL		ofstat
1231.1Smanu29	STD		{ int linux_sys_pause(void); }
1241.1Smanu30	STD		{ int linux_sys_utime(const char *path, \
1251.1Smanu			    struct linux_utimbuf *times); }
1261.1Smanu31	OBSOL		stty
1271.1Smanu32	OBSOL		gtty
1281.1Smanu33	STD		{ int linux_sys_access(const char *path, int flags); }
1291.1Smanu34	STD		{ int linux_sys_nice(int incr); }
1301.1Smanu35	OBSOL		ftime
1311.1Smanu36	NOARGS		{ int sys_sync(void); }
1321.1Smanu37	STD		{ int linux_sys_kill(int pid, int signum); }
1331.1Smanu38	STD		{ int linux_sys_rename(const char *from, \
1341.1Smanu			    const char *to); }
1351.1Smanu39	STD		{ int linux_sys_mkdir(const char *path, int mode); }
1361.1Smanu40	STD		{ int linux_sys_rmdir(const char *path); }
1371.1Smanu41	NOARGS		{ int sys_dup(u_int fd); }
1381.1Smanu42	STD		{ int linux_sys_pipe(int *pfds); }
1391.1Smanu43	STD		{ int linux_sys_times(struct times *tms); }
1401.1Smanu44	OBSOL		prof
1411.1Smanu45	STD		{ int linux_sys_brk(char *nsize); }
1421.1Smanu46	NOARGS		{ int sys_setgid(gid_t gid); }
1431.1Smanu47	NOARGS		{ gid_t sys_getgid(void); }
1441.1Smanu48	STD		{ int linux_sys_signal(int signum, \
1451.1Smanu			    linux_handler_t handler); }
1461.1Smanu49	NOARGS		{ uid_t sys_geteuid(void); }
1471.1Smanu50	NOARGS		{ gid_t sys_getegid(void); }
1481.1Smanu51	NOARGS		{ int sys_acct(char *path); }
1491.1Smanu52	UNIMPL		umount
1501.1Smanu53	OBSOL		lock
1511.1Smanu54	STD		{ int linux_sys_ioctl(int fd, u_long com, \
1521.1Smanu			    caddr_t data); }
1531.1Smanu55	STD		{ int linux_sys_fcntl(int fd, int cmd, void *arg); }
1541.1Smanu56	OBSOL		mpx
1551.1Smanu57	NOARGS		{ int sys_setpgid(int pid, int pgid); }
1561.1Smanu58	OBSOL		ulimit
1571.7Smanu59 	STD		{ int linux_sys_olduname(struct linux_old_utsname \
1581.7Smanu			   *up); }
1591.1Smanu60	NOARGS		{ int sys_umask(int newmask); }
1601.1Smanu61	NOARGS		{ int sys_chroot(char *path); }
1611.1Smanu62	UNIMPL		ustat
1621.1Smanu63	NOARGS		{ int sys_dup2(u_int from, u_int to); }
1631.1Smanu64	NOARGS		{ pid_t sys_getppid(void); }
1641.1Smanu65	NOARGS		{ int sys_getpgrp(void); }
1651.1Smanu66	NOARGS		{ int sys_setsid(void); }
1661.1Smanu67	STD		{ int linux_sys_sigaction(int signum, \
1671.1Smanu			    const struct linux_old_sigaction *nsa, \
1681.1Smanu			    struct linux_old_sigaction *osa); }
1691.1Smanu68	STD		{ int linux_sys_siggetmask(void); }
1701.1Smanu69	STD		{ int linux_sys_sigsetmask(linux_old_sigset_t mask); }
1711.21Sperry70	NOARGS		{ int sys_setreuid(uid_t ruid, uid_t euid); }
1721.1Smanu71	NOARGS		{ int sys_setregid(gid_t rgid, gid_t egid); }
1731.1Smanu72	STD		{ int linux_sys_sigsuspend(caddr_t restart, \
1741.1Smanu			    int oldmask, int mask); }
1751.1Smanu73	STD		{ int linux_sys_sigpending(linux_old_sigset_t *set); }
1761.1Smanu74	NOARGS		{ int compat_43_sys_sethostname(char *hostname, \
1771.1Smanu			    u_int len);}
1781.9Snathanw75	STD		{ int linux_sys_setrlimit(u_int which, \
1791.1Smanu			    struct orlimit *rlp); }
1801.9Snathanw76	STD		{ int linux_sys_getrlimit(u_int which, \
1811.1Smanu			    struct orlimit *rlp); }
1821.1Smanu77	NOARGS		{ int sys_getrusage(int who, struct rusage *rusage); }
1831.5Smanu78	STD		{ int linux_sys_gettimeofday(struct timeval *tp, \
1841.1Smanu			    struct timezone *tzp); }
1851.5Smanu79	STD		{ int linux_sys_settimeofday(struct timeval *tp, \
1861.1Smanu			    struct timezone *tzp); }
1871.1Smanu80	NOARGS		{ int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
1881.1Smanu81	NOARGS		{ int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
1891.1Smanu82	STD		{ int linux_sys_select(int nfds, fd_set* readfds, \
1901.1Smanu					fd_set* writefds, fd_set* exceptfds, \
1911.1Smanu					struct timeval *timeout); }
1921.1Smanu83	STD		{ int linux_sys_symlink(const char *path, \
1931.1Smanu			    const char *to); }
1941.1Smanu84	NOARGS		{ int compat_43_sys_lstat(const char *path, \
1951.1Smanu			    struct stat43 *up); } oolstat
1961.1Smanu85	STD		{ int linux_sys_readlink(const char *name, char *buf, \
1971.1Smanu			    int count); }
1981.24Sjoerg#ifdef EXEC_AOUT
1991.1Smanu86	STD		{ int linux_sys_uselib(const char *path); }
2001.24Sjoerg#else
2011.24Sjoerg86	UNIMPL		sys_uselib
2021.24Sjoerg#endif
2031.1Smanu87	STD		{ int linux_sys_swapon(char *name); }
2041.1Smanu88	STD		{ int linux_sys_reboot(int magic1, int magic2, \
2051.1Smanu			    int cmd, void *arg); }
2061.1Smanu89	STD		{ int linux_sys_readdir(int fd, caddr_t dent, \
2071.1Smanu			    unsigned int count); }
2081.7Smanu90	NOARGS		{ int linux_sys_mmap(unsigned long addr, size_t len, \
2091.7Smanu			    int prot, int flags, int fd, linux_off_t offset); }
2101.1Smanu91	NOARGS		{ int sys_munmap(caddr_t addr, int len); }
2111.1Smanu92	STD		{ int linux_sys_truncate(const char *path, \
2121.1Smanu			    long length); }
2131.1Smanu93	NOARGS		{ int compat_43_sys_ftruncate(int fd, long length); }
2141.1Smanu94	NOARGS		{ int sys_fchmod(int fd, int mode); }
2151.7Smanu95	NOARGS		{ int sys___posix_fchown(int fd, int uid, int gid); }
2161.1Smanu96	NOARGS		{ int sys_getpriority(int which, int who); }
2171.1Smanu97	NOARGS		{ int sys_setpriority(int which, int who, int prio); }
2181.1Smanu98	NOARGS		{ int sys_profil(caddr_t samples, u_int size, \
2191.1Smanu			    u_int offset, u_int scale); }
2201.1Smanu99	STD		{ int linux_sys_statfs(const char *path, \
2211.1Smanu			    struct linux_statfs *sp); }
2221.1Smanu100	STD		{ int linux_sys_fstatfs(int fd, \
2231.1Smanu			    struct linux_statfs *sp); }
2241.7Smanu101	STD		{ int linux_sys_ioperm(unsigned int lo, \
2251.7Smanu			    unsigned int hi, int val); }
2261.1Smanu102	STD		{ int linux_sys_socketcall(int what, void *args); }
2271.1Smanu103	UNIMPL		syslog
2281.1Smanu104	NOARGS		{ int sys_setitimer(u_int which, \
2291.1Smanu			    struct itimerval *itv, struct itimerval *oitv); }
2301.1Smanu105	NOARGS		{ int sys_getitimer(u_int which, \
2311.1Smanu			    struct itimerval *itv); }
2321.1Smanu106	STD		{ int linux_sys_stat(const char *path, \
2331.1Smanu			    struct linux_stat *sp); }
2341.1Smanu107	STD		{ int linux_sys_lstat(const char *path, \
2351.1Smanu			    struct linux_stat *sp); }
2361.1Smanu108	STD		{ int linux_sys_fstat(int fd, struct linux_stat *sp); }
2371.1Smanu109	STD		{ int linux_sys_uname(struct linux_utsname *up); }
2381.21Sperry110	UNIMPL		iopl
2391.1Smanu111	UNIMPL		vhangup
2401.1Smanu112	UNIMPL		idle
2411.21Sperry113	UNIMPL		vm86old
2421.1Smanu114	STD		{ int linux_sys_wait4(int pid, int *status, \
2431.1Smanu			    int options, struct rusage *rusage); }
2441.7Smanu115	STD		{ int linux_sys_swapoff(const char *path); }
2451.7Smanu116	STD		{ int linux_sys_sysinfo(struct linux_sysinfo *arg); }
2461.1Smanu117	STD		{ int linux_sys_ipc(int what, int a1, int a2, int a3, \
2471.1Smanu			    caddr_t ptr); }
2481.1Smanu118	NOARGS		{ int sys_fsync(int fd); }
2491.1Smanu119	STD		{ int linux_sys_sigreturn(struct linux_sigcontext *scp); }
2501.1Smanu120	STD		{ int linux_sys_clone(int flags, void *stack); }
2511.1Smanu121	STD		{ int linux_sys_setdomainname(char *domainname, \
2521.7Smanu			    int len); }
2531.1Smanu122	STD		{ int linux_sys_new_uname(struct linux_utsname *up); }
2541.21Sperry123	UNIMPL		modify_ldt
2551.1Smanu124	UNIMPL		adjtimex
2561.10Schristos125	STD		{ int linux_sys_mprotect(const void *start, \
2571.10Schristos			    unsigned long len, int prot); }
2581.1Smanu126	STD		{ int linux_sys_sigprocmask(int how, \
2591.1Smanu			    const linux_old_sigset_t *set, \
2601.1Smanu			    linux_old_sigset_t *oset); }
2611.1Smanu127	UNIMPL		create_module
2621.1Smanu128	UNIMPL		init_module
2631.1Smanu129	UNIMPL		delete_module
2641.1Smanu130	UNIMPL		get_kernel_syms
2651.1Smanu131	UNIMPL		quotactl
2661.1Smanu132	STD		{ int linux_sys_getpgid(int pid); }
2671.1Smanu133	NOARGS		{ int sys_fchdir(int fd); }
2681.1Smanu134	UNIMPL		bdflush
2691.1Smanu135	UNIMPL		sysfs
2701.1Smanu136	STD		{ int linux_sys_personality(int per); }
2711.1Smanu137	UNIMPL		afs_syscall
2721.1Smanu138	STD		{ int linux_sys_setfsuid(uid_t uid); }
2731.1Smanu139	NOARGS		{ int linux_sys_getfsuid(void); }
2741.1Smanu140	STD		{ int linux_sys_llseek(int fd, u_int32_t ohigh, \
2751.1Smanu			    u_int32_t olow, caddr_t res, int whence); }
2761.1Smanu141	STD		{ int linux_sys_getdents(int fd, \
2771.1Smanu			    struct linux_dirent *dent, unsigned int count); }
2781.7Smanu142	STD		{ int linux_sys_new_select(int nfds, fd_set *readfds, \
2791.1Smanu			    fd_set *writefds, fd_set *exceptfds, \
2801.1Smanu			    struct timeval *timeout); }
2811.1Smanu143	NOARGS		{ int sys_flock(int fd, int how); }
2821.1Smanu144	STD		{ int linux_sys_msync(caddr_t addr, int len, int fl); }
2831.1Smanu145	NOARGS		{ int sys_readv(int fd, struct iovec *iovp, \
2841.1Smanu				u_int iovcnt); }
2851.1Smanu146	NOARGS		{ int sys_writev(int fd, struct iovec *iovp, \
2861.1Smanu				u_int iovcnt); }
2871.1Smanu147	NOARGS		{ pid_t sys_getsid(pid_t pid); }
2881.1Smanu148	STD		{ int linux_sys_fdatasync(int fd); }
2891.1Smanu149	STD		{ int linux_sys___sysctl(struct linux___sysctl *lsp); }
2901.1Smanu150	NOARGS		{ int sys_mlock(caddr_t addr, size_t len); }
2911.1Smanu151	NOARGS		{ int sys_munlock(caddr_t addr, size_t len); }
2921.1Smanu152	NOARGS		{ int sys_mlockall(int flags); }
2931.1Smanu153	NOARGS		{ int sys_munlockall(void); }
2941.1Smanu154	STD		{ int linux_sys_sched_setparam(pid_t pid, \
2951.1Smanu			    const struct linux_sched_param *sp); }
2961.1Smanu155	STD		{ int linux_sys_sched_getparam(pid_t pid, \
2971.1Smanu			    struct linux_sched_param *sp); }
2981.1Smanu156	STD		{ int linux_sys_sched_setscheduler(pid_t pid, \
2991.1Smanu			    int policy, const struct linux_sched_param *sp); }
3001.1Smanu157	STD		{ int linux_sys_sched_getscheduler(pid_t pid); }
3011.1Smanu158	STD		{ int linux_sys_sched_yield(void); }
3021.1Smanu159	STD		{ int linux_sys_sched_get_priority_max(int policy); }
3031.1Smanu160	STD		{ int linux_sys_sched_get_priority_min(int policy); }
3041.1Smanu161	UNIMPL		sched_rr_get_interval
3051.1Smanu162	NOARGS		{ int sys_nanosleep(const struct timespec *rqtp, \
3061.1Smanu				struct timespec *rmtp); }
3071.1Smanu163	STD		{ void *linux_sys_mremap(void *old_address, \
3081.1Smanu			    size_t old_size, size_t new_size, u_long flags); }
3091.1Smanu164	STD		{ int linux_sys_setresuid(uid_t ruid, uid_t euid, \
3101.1Smanu			    uid_t suid); }
3111.1Smanu165	STD		{ int linux_sys_getresuid(uid_t *ruid, uid_t *euid, \
3121.1Smanu			    uid_t *suid); }
3131.1Smanu166	UNIMPL		query_module
3141.1Smanu167	NOARGS		{ int sys_poll(struct pollfd *fds, u_int nfds, \
3151.1Smanu			    int timeout); }
3161.1Smanu168	UNIMPL		nfsservctl
3171.1Smanu169	STD		{ int linux_sys_setresgid(gid_t rgid, gid_t egid, \
3181.1Smanu			    gid_t sgid); }
3191.1Smanu170	STD		{ int linux_sys_getresgid(gid_t *rgid, gid_t *egid, \
3201.1Smanu			    gid_t *sgid); }
3211.1Smanu171	UNIMPL		prctl
3221.1Smanu172	STD		{ int linux_sys_rt_sigreturn( \
3231.7Smanu			    struct linux_rt_sigframe *sfp); }
3241.1Smanu173	STD		{ int linux_sys_rt_sigaction(int signum, \
3251.1Smanu			    const struct linux_sigaction *nsa, \
3261.1Smanu			    struct linux_sigaction *osa, \
3271.1Smanu			    size_t sigsetsize); }
3281.1Smanu174	STD		{ int linux_sys_rt_sigprocmask(int how, \
3291.1Smanu			    const linux_sigset_t *set, \
3301.1Smanu			    linux_sigset_t *oset, \
3311.1Smanu			    size_t sigsetsize); }
3321.1Smanu175	STD		{ int linux_sys_rt_sigpending( \
3331.1Smanu			    linux_sigset_t *set, \
3341.1Smanu			    size_t sigsetsize); }
3351.1Smanu176	UNIMPL		rt_sigtimedwait
3361.1Smanu; XXX XAX int here?  sigset_t here?  siginfo_t
3371.1Smanu177	STD		{ int linux_sys_rt_queueinfo(int pid, int signum, \
3381.1Smanu			    void *uinfo); }
3391.1Smanu178	STD		{ int linux_sys_rt_sigsuspend(linux_sigset_t *unewset, \
3401.1Smanu			    size_t sigsetsize); }
3411.1Smanu179	STD		{ int linux_sys_pread(int fd, char *buf, \
3421.1Smanu			    size_t nbyte, linux_off_t offset); }
3431.1Smanu180	STD		{ int linux_sys_pwrite(int fd, char *buf, \
3441.1Smanu			    size_t nbyte, linux_off_t offset); }
3451.1Smanu181	STD		{ int linux_sys_chown(const char *path, \
3461.1Smanu			    int uid, int gid); }
3471.1Smanu182	NOARGS		{ int sys___getcwd(char *bufp, size_t length); }
3481.1Smanu183	UNIMPL		capget
3491.1Smanu184	UNIMPL		capset
3501.1Smanu185	STD		{ int linux_sys_sigaltstack( \
3511.1Smanu			    const struct linux_sigaltstack *ss, \
3521.1Smanu			    struct linux_sigaltstack *oss); }
3531.1Smanu186	UNIMPL		sendfile
3541.1Smanu187	UNIMPL		getpmsg
3551.1Smanu188	UNIMPL		putpmsg
3561.1Smanu189	NOARGS		{ int sys___vfork14(void); }
3571.8Schristos190	STD		{ int linux_sys_ugetrlimit(int which, \
3581.8Schristos			    struct rlimit *rlp); }
3591.1Smanu191	UNIMPL		/* unused */
3601.15Schristos192	NOARGS		{ linux_off_t linux_sys_mmap2(unsigned long addr, \
3611.15Schristos			    size_t len, int prot, int flags, int fd, \
3621.15Schristos			    linux_off_t offset); }
3631.13Sjdolecek193	STD		{ int linux_sys_truncate64(const char *path, \
3641.13Sjdolecek			    off_t length); }
3651.16Sjdolecek194	STD		{ int linux_sys_ftruncate64(unsigned int fd, \
3661.13Sjdolecek			    off_t length); }
3671.12Sjdolecek195	STD		{ int linux_sys_stat64(const char *path, \
3681.12Sjdolecek			    struct linux_stat64 *sp); }
3691.12Sjdolecek196	STD		{ int linux_sys_lstat64(const char *path, \
3701.12Sjdolecek			    struct linux_stat64 *sp); }
3711.12Sjdolecek197	STD		{ int linux_sys_fstat64(int fd, \
3721.12Sjdolecek			    struct linux_stat64 *sp); }
3731.21Sperry198	UNIMPL		sys_pciconfig_read
3741.1Smanu199	UNIMPL		sys_pciconfig_write
3751.1Smanu200	UNIMPL		sys_pciconfig_iobase
3761.1Smanu201	UNIMPL		/* Unused (MacOnLinux project) */
3771.11Schristos202	STD		{ int linux_sys_getdents64(int fd, \
3781.11Schristos			    struct linux_dirent64 *dent, unsigned int count); }
3791.4Sjdolecek203	UNIMPL		pivot_root
3801.12Sjdolecek204	STD		{ int linux_sys_fcntl64(int fd, int cmd, void *arg); }
3811.17Sjdolecek205	NOARGS		{ int sys_mincore(void *addr, size_t len, char *vec); }
3821.17Sjdolecek206	NOARGS		{ int sys_madvise(void *addr, size_t len, int behav); }
3831.18Sjdolecek207	UNIMPL		gettid
3841.18Sjdolecek208	UNIMPL		tkill
3851.22Sfvdl209	STD		{ int linux_sys_setxattr(char *path, char *name, \
3861.22Sfvdl			    void *value, size_t size, int flags); }
3871.22Sfvdl210	STD		{ int linux_sys_lsetxattr(char *path, char *name, \
3881.22Sfvdl			    void *value, size_t size, int flags); }
3891.22Sfvdl211	STD		{ int linux_sys_fsetxattr(int fd, char *name, \
3901.22Sfvdl			    void *value, size_t size, int flags); }
3911.22Sfvdl212	STD		{ ssize_t linux_sys_getxattr(char *path, char *name, \
3921.22Sfvdl			    void *value, size_t size); }
3931.22Sfvdl213	STD		{ ssize_t linux_sys_lgetxattr(char *path, char *name, \
3941.22Sfvdl			    void *value, size_t size); }
3951.22Sfvdl214	STD		{ ssize_t linux_sys_fgetxattr(int fd, char *name, \
3961.22Sfvdl			    void *value, size_t size); }
3971.22Sfvdl215	STD		{ ssize_t linux_sys_listxattr(char *path, char *list, \
3981.22Sfvdl			    size_t size); }
3991.22Sfvdl216	STD		{ ssize_t linux_sys_llistxattr(char *path, char *list, \
4001.22Sfvdl			    size_t size); }
4011.22Sfvdl217	STD		{ ssize_t linux_sys_flistxattr(int fd, char *list, \
4021.22Sfvdl			    size_t size); }
4031.22Sfvdl218	STD		{ int linux_sys_removexattr(char *path, char *name); }
4041.22Sfvdl219	STD		{ int linux_sys_lremovexattr(char *path, char *name); }
4051.22Sfvdl220	STD		{ int linux_sys_fremovexattr(int fd, char *name); }
4061.18Sjdolecek221	UNIMPL		futex
4071.18Sjdolecek222	UNIMPL		sched_setaffinity
4081.18Sjdolecek223	UNIMPL		sched_getaffinity
4091.18Sjdolecek224	UNIMPL		/* unused */
4101.18Sjdolecek225	UNIMPL		tuxcall
4111.18Sjdolecek226	UNIMPL		sendfile64
4121.18Sjdolecek227	UNIMPL		io_setup
4131.18Sjdolecek228	UNIMPL		io_destroy
4141.18Sjdolecek229	UNIMPL		io_getevents
4151.18Sjdolecek230	UNIMPL		io_submit
4161.18Sjdolecek231	UNIMPL		io_cancel
4171.18Sjdolecek232	UNIMPL		set_tid_address
4181.18Sjdolecek233	UNIMPL		fadvise64
4191.19Sjdolecek234	STD		{ int linux_sys_exit_group(int error_code); }
4201.18Sjdolecek235	UNIMPL		lookup_dcookie
4211.18Sjdolecek236	UNIMPL		epoll_create
4221.18Sjdolecek237	UNIMPL		epoll_ctl
4231.18Sjdolecek238	UNIMPL		epoll_wait
4241.18Sjdolecek239	UNIMPL		remap_file_pages
4251.18Sjdolecek240	UNIMPL		timer_create
4261.18Sjdolecek241	UNIMPL		timer_settime
4271.18Sjdolecek242	UNIMPL		timer_gettime
4281.18Sjdolecek243	UNIMPL		timer_getoverrun
4291.18Sjdolecek244	UNIMPL		timer_delete
4301.23Sfvdl245	STD		{ int linux_sys_clock_settime(clockid_t which, \
4311.23Sfvdl			    struct linux_timespec *tp); }
4321.23Sfvdl246	STD		{ int linux_sys_clock_gettime(clockid_t which, \
4331.23Sfvdl			    struct linux_timespec *tp); }
4341.23Sfvdl247	STD		{ int linux_sys_clock_getres(clockid_t which, \
4351.23Sfvdl			    struct linux_timespec *tp); }
4361.23Sfvdl248	STD		{ int linux_sys_clock_nanosleep(clockid_t which, \
4371.23Sfvdl			    int flags, struct linux_timespec *rqtp, \
4381.23Sfvdl			    struct linux_timespec *rmtp); }
4391.18Sjdolecek249	UNIMPL		swapcontext
4401.18Sjdolecek250	UNIMPL		tgkill
4411.18Sjdolecek251	UNIMPL		utimes
4421.20Sjdolecek252	STD		{ int linux_sys_statfs64(const char *path, \
4431.20Sjdolecek			    size_t sz, struct linux_statfs64 *sp); }
4441.20Sjdolecek253	STD		{ int linux_sys_fstatfs64(int fd, \
4451.20Sjdolecek			    size_t sz, struct linux_statfs64 *sp); }
4461.18Sjdolecek254	UNIMPL		fadvise64_64
4471.18Sjdolecek255	UNIMPL		rtas
4481.18Sjdolecek256	UNIMPL		/* reserved for sys_debug_setcontext */
4491.18Sjdolecek257	UNIMPL		/* reserved for vserver */
4501.18Sjdolecek258	UNIMPL		/* reserved for new sys_remap_file_pages */
4511.18Sjdolecek259	UNIMPL		/* reserved for new sys_mbind */
4521.18Sjdolecek260	UNIMPL		/* reserved for new sys_get_mempolicy */
4531.18Sjdolecek261	UNIMPL		/* reserved for new sys_set_mempolicy */
4541.18Sjdolecek262	UNIMPL		mq_open
4551.18Sjdolecek263	UNIMPL		mq_unlink
4561.18Sjdolecek264	UNIMPL		mq_timedsend
4571.18Sjdolecek265	UNIMPL		mq_timedreceive
4581.18Sjdolecek266	UNIMPL		mq_notify
4591.18Sjdolecek267	UNIMPL		mq_getsetattr
4601.18Sjdolecek268	UNIMPL		kexec_load
461