blob: 5e90fa2b7eed348cadae62e3dd0523c2954ddee7 [file] [log] [blame]
Khem Raj82706b82008-07-03 19:02:41 +09001# ifdef CONFIG_SUPERH32
David Howellsa1ce3922012-10-02 18:01:25 +01002# include <asm/unistd_32.h>
Khem Raj82706b82008-07-03 19:02:41 +09003# else
David Howellsa1ce3922012-10-02 18:01:25 +01004# include <asm/unistd_64.h>
Khem Raj82706b82008-07-03 19:02:41 +09005# endif
Paul Mundt8bf6e1b2012-03-28 17:10:05 +09006
Paul Mundt8bf6e1b2012-03-28 17:10:05 +09007# define __ARCH_WANT_OLD_READDIR
8# define __ARCH_WANT_OLD_STAT
9# define __ARCH_WANT_STAT64
10# define __ARCH_WANT_SYS_ALARM
11# define __ARCH_WANT_SYS_GETHOSTNAME
12# define __ARCH_WANT_SYS_IPC
13# define __ARCH_WANT_SYS_PAUSE
14# define __ARCH_WANT_SYS_SGETMASK
15# define __ARCH_WANT_SYS_SIGNAL
16# define __ARCH_WANT_SYS_TIME
17# define __ARCH_WANT_SYS_UTIME
18# define __ARCH_WANT_SYS_WAITPID
19# define __ARCH_WANT_SYS_SOCKETCALL
20# define __ARCH_WANT_SYS_FADVISE64
21# define __ARCH_WANT_SYS_GETPGRP
22# define __ARCH_WANT_SYS_LLSEEK
23# define __ARCH_WANT_SYS_NICE
24# define __ARCH_WANT_SYS_OLD_GETRLIMIT
25# define __ARCH_WANT_SYS_OLD_UNAME
26# define __ARCH_WANT_SYS_OLDUMOUNT
27# define __ARCH_WANT_SYS_SIGPENDING
28# define __ARCH_WANT_SYS_SIGPROCMASK
Al Viro0ad95132012-10-27 00:13:51 -040029# define __ARCH_WANT_SYS_FORK
30# define __ARCH_WANT_SYS_VFORK
31# define __ARCH_WANT_SYS_CLONE
Paul Mundt8bf6e1b2012-03-28 17:10:05 +090032
33/*
34 * "Conditional" syscalls
35 *
36 * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
37 * but it doesn't work on all toolchains, so we just do it by hand
38 */
39# define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
40
David Howells0a9426d2012-10-09 09:47:37 +010041#include <uapi/asm/unistd.h>