xref: /netbsd-src/sys/compat/linux/arch/arm/syscalls.master (revision 413d532bcc3f62d122e56d92e13ac64825a40baf)
1	$NetBSD: syscalls.master,v 1.55 2014/04/08 16:48:01 njoly Exp $
2
3; Derived from sys/compat/linux/arch/*/syscalls.master
4; and from Linux 2.4.12 arch/arm/kernel/calls.S
5
6; NetBSD/arm COMPAT_LINUX system call name/number "master" file.
7; (See syscalls.conf to see what it is processed into.)
8;
9; Fields: number type [type-dependent ...]
10;	number	system call number, must be in order
11;	type	one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
12;		the compatibility options defined in syscalls.conf.
13;
14; types:
15;	STD	always included
16;	OBSOL	obsolete, not included in system
17;	UNIMPL	unimplemented, not included in system
18;	NODEF	included, but don't define the syscall number
19;	NOARGS	included, but don't define the syscall args structure
20;	INDIR	included, but don't define the syscall args structure
21;		and allow it to be "really" varargs.
22;
23; The compat options are defined in the syscalls.conf file, and the
24; compat option name is prefixed to the syscall name.  Other than
25; that, they're like NODEF (for 'compat' options), or STD (for
26; 'libcompat' options).
27;
28; The type-dependent arguments are as follows:
29; For STD, NODEF, NOARGS, and compat syscalls:
30;	{ pseudo-proto } [alias]
31; For other syscalls:
32;	[comment]
33;
34; #ifdef's, etc. may be included, and are copied to the output files.
35; #include's are copied to the syscall names and switch definition files only.
36
37#include <sys/param.h>
38#include <sys/poll.h>
39#include <sys/systm.h>
40#include <sys/signal.h>
41#include <sys/mount.h>
42#include <sys/syscallargs.h>
43#include <sys/time.h>
44
45#include <compat/sys/time.h>
46#include <compat/linux/common/linux_types.h>
47#include <compat/linux/common/linux_mmap.h>
48#include <compat/linux/common/linux_signal.h>
49#include <compat/linux/common/linux_siginfo.h>
50#include <compat/linux/common/linux_machdep.h>
51
52#include <compat/linux/linux_syscallargs.h>
53
54%%
55; XXX We have to explicitly declare linux_sys_nosys.
560	NOARGS		{ int|linux_sys||nosys(void); }
571	STD		{ int|linux_sys||exit(int rval); }
582	NOARGS		{ int|sys||fork(void); }
593	NOARGS		{ ssize_t|sys||read(int fd, void *buf, size_t nbyte); }
604	NOARGS		{ ssize_t|sys||write(int fd, const void *buf, \
61			    size_t nbyte); }
625	STD		{ int|linux_sys||open(const char *path, int flags, \
63			    linux_umode_t mode); }
646	NOARGS		{ int|sys||close(int fd); }
657	STD		{ int|linux_sys||waitpid(int pid, int *status, \
66			    int options);}
678	STD		{ int|linux_sys||creat(const char *path, linux_umode_t mode); }
689	NOARGS		{ int|sys||link(const char *path, const char *link); }
6910	STD		{ int|linux_sys||unlink(const char *path); }
7011	NOARGS		{ int|sys||execve(const char *path, char **argp, \
71			    char **envp); }
7212	NOARGS		{ int|sys||chdir(const char *path); }
7313	STD		{ int|linux_sys||time(linux_time_t *t); }
7414	STD		{ int|linux_sys||mknod(const char *path, linux_umode_t mode, \
75			    int dev); }
7615	NOARGS		{ int|sys||chmod(const char *path, int mode); }
7716	STD		{ int|linux_sys||lchown16(const char *path, \
78			    linux_uid16_t uid, linux_gid16_t gid); }
7917	OBSOL		break
8018	OBSOL		ostat
8119	NOARGS		{ long|compat_43_sys||lseek(int fd, long offset, \
82			    int whence); }
8320	NOARGS 		{ pid_t|sys||getpid(void); }
8421	UNIMPL		mount
8522	OBSOL		umount
8623	NOARGS		{ int|sys||setuid(uid_t uid); }
8724	NOARGS		{ uid_t|sys||getuid(void); }
8825	STD		{ int|linux_sys||stime(linux_time_t *t); }
8926	STD		{ int|linux_sys||ptrace(int request, int pid, \
90			    int addr, int data); }
9127	STD		{ int|linux_sys||alarm(unsigned int secs); }
9228	OBSOL		ofstat
9329	STD		{ int|linux_sys||pause(void); }
9430	STD		{ int|linux_sys||utime(const char *path, \
95			    struct linux_utimbuf *times); }
9631	OBSOL		stty
9732	OBSOL		gtty
9833	NOARGS		{ int|sys||access(const char *path, int flags); }
9934	STD		{ int|linux_sys||nice(int incr); }
10035	OBSOL		ftime
10136	NOARGS		{ int|sys||sync(void); }
10237	STD		{ int|linux_sys||kill(int pid, int signum); }
10338	NOARGS		{ int|sys||__posix_rename(const char *from, \
104			    const char *to); }
10539	NOARGS		{ int|sys||mkdir(const char *path, linux_umode_t mode); }
10640	NOARGS		{ int|sys||rmdir(const char *path); }
10741	NOARGS		{ int|sys||dup(int fd); }
10842	STD		{ int|linux_sys||pipe(int *pfds); }
10943	STD		{ int|linux_sys||times(struct times *tms); }
11044	OBSOL		prof
11145	STD		{ int|linux_sys||brk(char *nsize); }
11246	NOARGS		{ int|sys||setgid(gid_t gid); }
11347	NOARGS		{ gid_t|sys||getgid(void); }
11448	STD		{ int|linux_sys||signal(int signum, \
115			    linux_handler_t handler); }
11649	NOARGS		{ uid_t|sys||geteuid(void); }
11750	NOARGS		{ gid_t|sys||getegid(void); }
11851	NOARGS		{ int|sys||acct(char *path); }
11952	UNIMPL		umount
12053	OBSOL		lock
12154	STD		{ int|linux_sys||ioctl(int fd, u_long com, \
122			    void *data); }
12355	STD		{ int|linux_sys||fcntl(int fd, int cmd, void *arg); }
12456	OBSOL		mpx
12557	NOARGS		{ int|sys||setpgid(int pid, int pgid); }
12658	OBSOL		ulimit
12759 	STD		{ int|linux_sys||oldolduname( \
128			   struct linux_oldold_utsname *up); }
12960	NOARGS		{ int|sys||umask(int newmask); }
13061	NOARGS		{ int|sys||chroot(char *path); }
13162	UNIMPL		ustat
13263	NOARGS		{ int|sys||dup2(int from, int to); }
13364	NOARGS		{ pid_t|sys||getppid(void); }
13465	NOARGS		{ int|sys||getpgrp(void); }
13566	NOARGS		{ int|sys||setsid(void); }
13667	STD		{ int|linux_sys||sigaction(int signum, \
137			    const struct linux_old_sigaction *nsa, \
138			    struct linux_old_sigaction *osa); }
13968	STD		{ int|linux_sys||siggetmask(void); }
14069	STD		{ int|linux_sys||sigsetmask(linux_old_sigset_t mask); }
14170	STD		{ int|linux_sys||setreuid16(linux_uid16_t ruid, \
142			    linux_uid16_t euid); }
14371	STD		{ int|linux_sys||setregid16(linux_gid16_t rgid, \
144			    linux_gid16_t egid); }
14572	STD		{ int|linux_sys||sigsuspend(void *restart, \
146			    int oldmask, int mask); }
14773	STD		{ int|linux_sys||sigpending(linux_old_sigset_t *set); }
14874	NOARGS		{ int|compat_43_sys||sethostname(char *hostname, \
149			    u_int len);}
15075	STD		{ int|linux_sys||setrlimit(u_int which, \
151			    struct orlimit *rlp); }
15276	STD		{ int|linux_sys||getrlimit(u_int which, \
153			    struct orlimit *rlp); }
15477	NOARGS		{ int|compat_50_sys||getrusage(int who, struct rusage50 *rusage); }
15578	STD		{ int|linux_sys||gettimeofday(struct timeval50 *tp, \
156			    struct timezone *tzp); }
15779	STD		{ int|linux_sys||settimeofday(struct timeval50 *tp, \
158			    struct timezone *tzp); }
15980	STD		{ int|linux_sys||getgroups16(int gidsetsize, \
160			    linux_gid16_t *gidset); }
16181	STD		{ int|linux_sys||setgroups16(int gidsetsize, \
162			    linux_gid16_t *gidset); }
16382	STD		{ int|linux_sys||oldselect(struct linux_oldselect *lsp); }
16483	NOARGS		{ int|sys||symlink(const char *path, const char *to); }
16584	NOARGS		{ int|compat_43_sys||lstat(const char *path, \
166			    struct stat43 *up); } oolstat
16785	NOARGS		{ int|sys||readlink(const char *name, char *buf, \
168			    int count); }
169#ifdef EXEC_AOUT
17086	STD		{ int|linux_sys||uselib(const char *path); }
171#else
17286	EXCL		uselib
173#endif
17487	STD		{ int|linux_sys||swapon(char *name); }
17588	STD		{ int|linux_sys||reboot(int magic1, int magic2, \
176			    int cmd, void *arg); }
17789	STD		{ int|linux_sys||readdir(int fd, void *dent, \
178			    unsigned int count); }
17990	STD		{ int|linux_sys||old_mmap(struct linux_oldmmap *lmp); }
18091	NOARGS		{ int|sys||munmap(void *addr, int len); }
18192	NOARGS		{ int|compat_43_sys||truncate(const char *path, \
182			    long length); }
18393	NOARGS		{ int|compat_43_sys||ftruncate(int fd, long length); }
18494	NOARGS		{ int|sys||fchmod(int fd, linux_umode_t mode); }
18595	STD		{ int|linux_sys||fchown16(int fd, linux_uid16_t uid, \
186			    linux_gid16_t gid); }
18796	STD		{ int|linux_sys||getpriority(int which, int who); }
18897	NOARGS		{ int|sys||setpriority(int which, int who, int prio); }
18998	NOARGS		{ int|sys||profil(void *samples, u_int size, \
190			    u_int offset, u_int scale); }
19199	STD		{ int|linux_sys||statfs(const char *path, \
192			    struct linux_statfs *sp); }
193100	STD		{ int|linux_sys||fstatfs(int fd, \
194			    struct linux_statfs *sp); }
195101	UNIMPL
196102	STD		{ int|linux_sys||socketcall(int what, void *args); }
197103	UNIMPL		syslog
198104	NOARGS		{ int|compat_50_sys||setitimer(int which, \
199			    struct itimerval50 *itv, \
200			    struct itimerval50 *oitv); }
201105	NOARGS		{ int|compat_50_sys||getitimer(int which, \
202			    struct itimerval50 *itv); }
203106	STD		{ int|linux_sys||stat(const char *path, \
204			    struct linux_stat *sp); }
205107	STD		{ int|linux_sys||lstat(const char *path, \
206			    struct linux_stat *sp); }
207108	STD		{ int|linux_sys||fstat(int fd, struct linux_stat *sp); }
208109	STD		{ int|linux_sys||olduname(struct linux_oldutsname *up); }
209110	UNIMPL
210111	UNIMPL		vhangup
211112	UNIMPL		idle
212113	UNIMPL		syscall
213114	STD		{ int|linux_sys||wait4(int pid, int *status, \
214			    int options, struct rusage50 *rusage); }
215115	STD		{ int|linux_sys||swapoff(const char *path); }
216116	STD		{ int|linux_sys||sysinfo(struct linux_sysinfo *arg); }
217117	STD		{ int|linux_sys||ipc(int what, int a1, int a2, int a3, \
218			    void *ptr); }
219118	NOARGS		{ int|sys||fsync(int fd); }
220119	STD		{ int|linux_sys||sigreturn(struct linux_sigcontext *scp); }
221120	STD		{ int|linux_sys||clone(int flags, void *stack, \
222			    void *parent_tidptr, void *tls, void *child_tidptr); }
223121	STD		{ int|linux_sys||setdomainname(char *domainname, \
224			    int len); }
225122	STD		{ int|linux_sys||uname(struct linux_utsname *up); }
226123	UNIMPL		modify_ldt
227124	UNIMPL		adjtimex
228125	STD		{ int|linux_sys||mprotect(const void *start, \
229			    unsigned long len, int prot); }
230126	STD		{ int|linux_sys||sigprocmask(int how, \
231			    const linux_old_sigset_t *set, \
232			    linux_old_sigset_t *oset); }
233127	UNIMPL		create_module
234128	UNIMPL		init_module
235129	UNIMPL		delete_module
236130	UNIMPL		get_kernel_syms
237131	UNIMPL		quotactl
238132	NOARGS		{ pid_t|sys||getpgid(pid_t pid); }
239133	NOARGS		{ int|sys||fchdir(int fd); }
240134	UNIMPL		bdflush
241135	UNIMPL		sysfs
242136	STD		{ int|linux_sys||personality(unsigned long per); }
243137	UNIMPL		afs_syscall
244138	STD		{ int|linux_sys||setfsuid(uid_t uid); }
245139	STD		{ int|linux_sys||setfsgid(gid_t gid); }
246140	STD		{ int|linux_sys||llseek(int fd, u_int32_t ohigh, \
247			    u_int32_t olow, void *res, int whence); }
248141	STD		{ int|linux_sys||getdents(int fd, \
249			    struct linux_dirent *dent, unsigned int count); }
250142	STD		{ int|linux_sys||select(int nfds, fd_set *readfds, \
251			    fd_set *writefds, fd_set *exceptfds, \
252			    struct timeval50 *timeout); }
253143	NOARGS		{ int|sys||flock(int fd, int how); }
254144	NOARGS		{ int|sys|13|msync(void *addr, size_t len, int flags); }
255145	NOARGS		{ ssize_t|sys||readv(int fd, \
256			    const struct iovec *iovp, int iovcnt); }
257146	NOARGS		{ ssize_t|sys||writev(int fd, \
258			    const struct iovec *iovp, int iovcnt); }
259147	NOARGS		{ pid_t|sys||getsid(pid_t pid); }
260148	STD		{ int|linux_sys||fdatasync(int fd); }
261149	STD		{ int|linux_sys||__sysctl(struct linux___sysctl *lsp); }
262150	NOARGS		{ int|sys||mlock(void *addr, size_t len); }
263151	NOARGS		{ int|sys||munlock(void *addr, size_t len); }
264152	NOARGS		{ int|sys||mlockall(int flags); }
265153	NOARGS		{ int|sys||munlockall(void); }
266154	STD		{ int|linux_sys||sched_setparam(pid_t pid, \
267			    const struct linux_sched_param *sp); }
268155	STD		{ int|linux_sys||sched_getparam(pid_t pid, \
269			    struct linux_sched_param *sp); }
270156	STD		{ int|linux_sys||sched_setscheduler(pid_t pid, \
271			    int policy, const struct linux_sched_param *sp); }
272157	STD		{ int|linux_sys||sched_getscheduler(pid_t pid); }
273158	STD		{ int|linux_sys||sched_yield(void); }
274159	STD		{ int|linux_sys||sched_get_priority_max(int policy); }
275160	STD		{ int|linux_sys||sched_get_priority_min(int policy); }
276161	UNIMPL		sched_rr_get_interval
277162	STD		{ int|linux_sys||nanosleep( \
278			    const struct linux_timespec *rqtp, \
279			    struct linux_timespec *rmtp); }
280163	STD		{ void *|linux_sys||mremap(void *old_address, \
281			    size_t old_size, size_t new_size, u_long flags); }
282164	STD		{ int|linux_sys||setresuid16(linux_uid16_t ruid, \
283			    linux_uid16_t euid, linux_uid16_t suid); }
284165	STD		{ int|linux_sys||getresuid16(linux_uid16_t *ruid, \
285			    linux_uid16_t *euid, linux_uid16_t *suid); }
286166	UNIMPL
287167	UNIMPL		query_module
288168	NOARGS		{ int|sys||poll(struct pollfd *fds, u_int nfds, \
289			    int timeout); }
290169	UNIMPL		nfsservctl
291170	STD		{ int|linux_sys||setresgid16(linux_gid16_t rgid, \
292			    linux_gid16_t egid, linux_gid16_t sgid); }
293171	STD		{ int|linux_sys||getresgid16(linux_gid16_t *rgid, \
294			    linux_gid16_t *egid, linux_gid16_t *sgid); }
295172	UNIMPL		prctl
296173	UNIMPL		rt_sigreturn
297;173	STD		{ int|linux_sys||rt_sigreturn( \
298;			    struct linux_rt_sigframe *sfp); }
299174	STD		{ int|linux_sys||rt_sigaction(int signum, \
300			    const struct linux_sigaction *nsa, \
301			    struct linux_sigaction *osa, \
302			    size_t sigsetsize); }
303175	STD		{ int|linux_sys||rt_sigprocmask(int how, \
304			    const linux_sigset_t *set, \
305			    linux_sigset_t *oset, \
306			    size_t sigsetsize); }
307176	STD		{ int|linux_sys||rt_sigpending( \
308			    linux_sigset_t *set, \
309			    size_t sigsetsize); }
310177	STD		{ int|linux_sys||rt_sigtimedwait( \
311			    const linux_sigset_t *set, \
312			    linux_siginfo_t *info, \
313			    const struct linux_timespec *timeout); }
314178	STD		{ int|linux_sys||rt_queueinfo(int pid, int signum, \
315			    linux_siginfo_t *uinfo); }
316179	STD		{ int|linux_sys||rt_sigsuspend(linux_sigset_t *unewset, \
317			    size_t sigsetsize); }
318180	STD		{ int|linux_sys||pread(int fd, char *buf, \
319			    size_t nbyte, linux_off_t offset); }
320181	STD		{ int|linux_sys||pwrite(int fd, char *buf, \
321			    size_t nbyte, linux_off_t offset); }
322182	STD		{ int|linux_sys||chown16(const char *path, \
323			    linux_uid16_t uid, linux_gid16_t gid); }
324183	NOARGS		{ int|sys||__getcwd(char *bufp, size_t length); }
325184	UNIMPL		capget
326185	UNIMPL		capset
327186	STD		{ int|linux_sys||sigaltstack( \
328			    const struct linux_sigaltstack *ss, \
329			    struct linux_sigaltstack *oss); }
330187	UNIMPL		sendfile
331188	UNIMPL		getpmsg
332189	UNIMPL		putpmsg
333190	NOARGS		vfork { int|sys|14|vfork(void); }
334191	STD		{ int|linux_sys||ugetrlimit(int which, \
335			    struct rlimit *rlp); }
336#define linux_sys_mmap2_args linux_sys_mmap_args
337192	NOARGS		{ linux_off_t|linux_sys||mmap2(unsigned long addr, \
338			    size_t len, int prot, int flags, int fd, \
339			    linux_off_t offset); }
340193	STD		{ int|linux_sys||truncate64(const char *path, \
341				off_t length); }
342194	STD		{ int|linux_sys||ftruncate64(unsigned int fd, \
343				off_t length); }
344195	STD		{ int|linux_sys||stat64(const char *path, \
345				struct linux_stat64 *sp); }
346196	STD		{ int|linux_sys||lstat64(const char *path, \
347				struct linux_stat64 *sp); }
348197	STD		{ int|linux_sys||fstat64(int fd, \
349				struct linux_stat64 *sp); }
350198	NOARGS		{ int|sys||__posix_lchown(const char *path, uid_t uid, \
351				gid_t gid); }
352199	NOARGS		getuid32 { uid_t|sys||getuid(void); }
353200	NOARGS		getgid32 { gid_t|sys||getgid(void); }
354201	NOARGS		geteuid32 { uid_t|sys||geteuid(void); }
355202	NOARGS		getegid32 { gid_t|sys||getegid(void); }
356203	NOARGS		setreuid32 { int|sys||setreuid(uid_t ruid, \
357				uid_t euid); }
358204	NOARGS		setregid32 { int|sys||setregid(gid_t rgid, \
359				gid_t egid); }
360205	NOARGS		getgroups32 { int|sys||getgroups(u_int gidsetsize, \
361				gid_t *gidset); }
362206	NOARGS		setgroups32 { int|sys||setgroups(u_int gidsetsize, \
363				gid_t *gidset); }
364207	NOARGS		fchown32 { int|sys||__posix_fchown(int fd, uid_t uid, \
365				gid_t gid); }
366208	STD		setresuid32 { int|linux_sys||setresuid(uid_t ruid, \
367				uid_t euid, uid_t suid); }
368209	STD		getresuid32 { int|linux_sys||getresuid(uid_t *ruid, \
369				uid_t *euid, uid_t *suid); }
370210	STD		setresgid32 { int|linux_sys||setresgid(gid_t rgid, \
371				gid_t egid, gid_t sgid); }
372211	STD		getresgid32 { int|linux_sys||getresgid(gid_t *rgid, \
373				gid_t *egid, gid_t *sgid); }
374212	NOARGS		chown32 { int|sys||__posix_chown(const char *path, \
375				uid_t uid, gid_t gid); }
376213	NOARGS		setuid32 { int|sys||setuid(uid_t uid); }
377214	NOARGS		setgid32 { int|sys||setgid(gid_t gid); }
378215	NOARGS		setfsuid32 { int|linux_sys||setfsuid(uid_t uid); }
379216	NOARGS		setfsgid32 { int|linux_sys||setfsgid(gid_t gid); }
380217	STD		{ int|linux_sys||getdents64(int fd, \
381			    struct linux_dirent64 *dent, unsigned int count); }
382218	UNIMPL		pivot_root
383219	NOARGS		{ int|sys||mincore(void *addr, size_t len, char *vec); }
384220	NOARGS		{ int|sys||madvise(void *addr, size_t len, int behav); }
385221	STD		{ int|linux_sys||fcntl64(int fd, int cmd, void *arg); }
386222	UNIMPL		/* for tux */
387223	UNIMPL		/* unused */
388224	NOARGS		{ pid_t|linux_sys||gettid(void); }
389225	UNIMPL		readahead
390226	STD		{ int|linux_sys||setxattr(char *path, char *name, \
391			    void *value, size_t size, int flags); }
392227	STD		{ int|linux_sys||lsetxattr(char *path, char *name, \
393			    void *value, size_t size, int flags); }
394228	STD		{ int|linux_sys||fsetxattr(int fd, char *name, \
395			    void *value, size_t size, int flags); }
396229	STD		{ ssize_t|linux_sys||getxattr(char *path, char *name, \
397			    void *value, size_t size); }
398230	STD		{ ssize_t|linux_sys||lgetxattr(char *path, char *name, \
399			    void *value, size_t size); }
400231	STD		{ ssize_t|linux_sys||fgetxattr(int fd, char *name, \
401			    void *value, size_t size); }
402232	STD		{ ssize_t|linux_sys||listxattr(char *path, char *list, \
403			    size_t size); }
404233	STD		{ ssize_t|linux_sys||llistxattr(char *path, char *list, \
405			    size_t size); }
406234	STD		{ ssize_t|linux_sys||flistxattr(int fd, char *list, \
407			    size_t size); }
408235	STD		{ int|linux_sys||removexattr(char *path, char *name); }
409236	STD		{ int|linux_sys||lremovexattr(char *path, char *name); }
410237	STD		{ int|linux_sys||fremovexattr(int fd, char *name); }
411238	STD		{ int|linux_sys||tkill(int tid, int sig); }
412239	UNIMPL		sendfile64
413240	STD		{ int|linux_sys||futex(int *uaddr, int op, int val, \
414			    const struct linux_timespec *timeout, int *uaddr2, \
415			    int val3); }
416241	STD		{ int|linux_sys||sched_setaffinity(pid_t pid, \
417			    unsigned int len, unsigned long *mask); }
418242	STD		{ int|linux_sys||sched_getaffinity(pid_t pid, \
419			    unsigned int len, unsigned long *mask); }
420243	UNIMPL		io_setup
421244	UNIMPL		io_destroy
422245	UNIMPL		io_getevents
423246	UNIMPL		io_submit
424247	UNIMPL		io_cancel
425248	STD		{ int|linux_sys||exit_group(int error_code); }
426249	UNIMPL		lookup_dcookie
427250	UNIMPL		epoll_create
428251	UNIMPL		epoll_ctl
429252	UNIMPL		epoll_wait
430253	UNIMPL		remap_file_pages
431254	UNIMPL		set_thread_area
432255	UNIMPL		get_thread_area
433256	STD		{ int|linux_sys||set_tid_address(int *tid); }
434257	UNIMPL		timer_create
435258	UNIMPL		timer_settime
436259	UNIMPL		timer_gettime
437260	UNIMPL		timer_getoverrun
438261	UNIMPL		timer_delete
439262	STD		{ int|linux_sys||clock_settime(clockid_t which, \
440			    struct linux_timespec *tp); }
441263	STD		{ int|linux_sys||clock_gettime(clockid_t which, \
442			    struct linux_timespec *tp); }
443264	STD		{ int|linux_sys||clock_getres(clockid_t which, \
444			    struct linux_timespec *tp); }
445265	STD		{ int|linux_sys||clock_nanosleep(clockid_t which, \
446			    int flags, struct linux_timespec *rqtp, \
447			    struct linux_timespec *rmtp); }
448266	STD		{ int|linux_sys||statfs64(const char *path, \
449			    size_t sz, struct linux_statfs64 *sp); }
450267	STD		{ int|linux_sys||fstatfs64(int fd, \
451			    size_t sz, struct linux_statfs64 *sp); }
452268	STD		{ int|linux_sys||tgkill(int tgid, int tid, int sig); }
453269	STD		{ int|linux_sys||utimes(const char *path, struct linux_timeval *times); }
454270	STD		{ int|linux_sys||fadvise64_64(int fd, \
455			    linux_off_t offset, linux_off_t len, int advice); }
456271	UNIMPL		pciconfig_iobase
457272	UNIMPL		pciconfig_read
458273	UNIMPL		pciconfig_write
459274	UNIMPL		mq_open
460275	UNIMPL		mq_unlink
461276	UNIMPL		mq_timedsend
462277	UNIMPL		mq_timedreceive
463278	UNIMPL		mq_notify
464279	UNIMPL		mq_getsetattr
465280	UNIMPL		waitid
466281	UNIMPL		socket
467282	UNIMPL		bind
468283	UNIMPL		connect
469284	UNIMPL		listen
470285	UNIMPL		accept
471286	UNIMPL		getsockname
472287	UNIMPL		getpeername
473288	UNIMPL		socketpair
474289	UNIMPL		send
475290	UNIMPL		sendto
476291	UNIMPL		recv
477292	UNIMPL		recvfrom
478293	UNIMPL		shutdown
479294	UNIMPL		setsockopt
480295	UNIMPL		getsockopt
481296	UNIMPL		sendmsg
482297	UNIMPL		recvmsg
483298	UNIMPL		semop
484299	UNIMPL		semget
485300	UNIMPL		semctl
486301	UNIMPL		msgsnd
487302	UNIMPL		msgrcv
488303	UNIMPL		msgget
489304	UNIMPL		msgctl
490305	UNIMPL		shmat
491306	UNIMPL		shmdt
492307	UNIMPL		shmget
493308	UNIMPL		shmctl
494309	UNIMPL		add_key
495310	UNIMPL		request_key
496311	UNIMPL		keyctl
497312	UNIMPL		semtimedop
498313	UNIMPL		vserver
499314	UNIMPL		ioptio_set
500315	UNIMPL		ioptio_get
501316	UNIMPL		inotify_init
502317	UNIMPL		inotify_add_watch
503318	UNIMPL		inotify_rm_watch
504319	UNIMPL		mbind
505320	UNIMPL		get_mempolicy
506321	UNIMPL		set_mempolicy
507322	STD 		{ int|linux_sys||openat(int fd, const char *path, \
508			    int flags, ... linux_umode_t mode); }
509323	NOARGS		{ int|sys||mkdirat(int fd, const char *path, \
510			    linux_umode_t mode); }
511324	STD		{ int|linux_sys||mknodat(int fd, const char *path, \
512			    linux_umode_t mode, unsigned dev); }
513325	STD		{ int|linux_sys||fchownat(int fd, const char *path, \
514			    uid_t owner, gid_t group, int flag); }
515326	UNIMPL		futimesat
516327	STD		{ int|linux_sys||fstatat64(int fd, const char *path, \
517			    struct linux_stat64 *sp, int flag); }
518328	STD		{ int|linux_sys||unlinkat(int fd, const char *path, \
519			    int flag); }
520329	NOARGS		{ int|sys||renameat(int fromfd, const char *from, \
521			    int tofd, const char *to); }
522330	STD		{ int|linux_sys||linkat(int fd1, const char *name1, \
523			    int fd2, const char *name2, int flags); }
524331	NOARGS		{ int|sys||symlinkat(const char *path1, int fd, \
525			    const char *path2); }
526332	NOARGS		{ int|sys||readlinkat(int fd, const char *path, \
527			    char *buf, size_t bufsize); }
528333	STD		{ int|linux_sys||fchmodat(int fd, const char *path, \
529			    linux_umode_t mode); }
530334	STD		{ int|linux_sys||faccessat(int fd, const char *path, \
531			    int amode); }
532335	UNIMPL		pselect6
533336	STD		{ int|linux_sys||ppoll(struct pollfd *fds, int nfds, \
534			    struct linux_timespec *timeout, \
535			    linux_sigset_t *sigset); }
536337	UNIMPL		unshare
537338	STD		{ int|linux_sys||set_robust_list( \
538			    struct linux_robust_list_head *head, size_t len); }
539339	STD		{ int|linux_sys||get_robust_list(int pid, \
540			    struct linux_robust_list_head **head, \
541			    size_t *len); }
542340	UNIMPL		splice
543341	UNIMPL		sync_file_range2
544342	UNIMPL		tee
545343	UNIMPL		vmsplice
546344	UNIMPL		move_pages
547345	UNIMPL		getcpu
548346	UNIMPL		epoll_wait
549347	UNIMPL		kexec_load
550348	STD		{ int|linux_sys||utimensat(int fd, const char *path, \
551			    struct linux_timespec *times, int flag); }
552349	UNIMPL		signalfd
553350	UNIMPL		timerfd_create
554351	UNIMPL		eventfd
555352	UNIMPL		fallocate
556353	UNIMPL		timerfd_settime
557354	UNIMPL		timerfd_gettime
558355	UNIMPL		signalfd4
559356	UNIMPL		eventfd2
560357	UNIMPL		epoll_create1
561358	STD		{ int|linux_sys||dup3(int from, int to, int flags); }
562359	STD		{ int|linux_sys||pipe2(int *pfds, int flags); }
563360	UNIMPL		inotify_init1
564361	UNIMPL		preadv
565362	UNIMPL		pwritev
566363	UNIMPL		rt_tgsigqueueinfo
567364	UNIMPL		perf_counter_open
568365	UNIMPL		recvmmsg
569366	UNIMPL
570367	UNIMPL
571368	UNIMPL
572369	UNIMPL
573370	UNIMPL
574371	UNIMPL
575372	UNIMPL
576373	UNIMPL
577374	UNIMPL
578375	UNIMPL
579376	UNIMPL
580377	UNIMPL
581378	UNIMPL
582379	UNIMPL
583380	UNIMPL
584381	UNIMPL
585382	UNIMPL
586383	UNIMPL
587
588; ARMLinux actually has two ranges of syscalls.  Normal syscalls use
589; SWI numbers starting at 0x900000 (__NR_SYSCALL_BASE).  Special
590; ARM-specific syscalls use SWI numbers starting at 0x9f0000
591; (__ARM_NR_BASE).  linux_syscall() (in arch/arm/arm/linux_syscall.c)
592; remaps these down to 0x900180 so that we can use one linux_sysent
593; array for the whole lot.
594
595384	UNIMPL		/* base */
596385	STD		{ int|linux_sys||breakpoint(void); }
597386	STD		{ int|linux_sys||cacheflush(uintptr_t from, \
598				intptr_t to, int flags); }
599387	UNIMPL		usr26
600388	UNIMPL		usr32
601389	STD		{ int|linux_sys||set_tls(void *tls); }
602