unistd.h (f4091322d7397c8eb85c071570cab0e82ee3e261) unistd.h (415bfae9e9dbc2232f1797a3ac78a22049a75e06)
1#ifndef _ASM_PARISC_UNISTD_H_
2#define _ASM_PARISC_UNISTD_H_
3
4#include <uapi/asm/unistd.h>
5
6#ifndef __ASSEMBLY__
7
8#define SYS_ify(syscall_name) __NR_##syscall_name

--- 150 unchanged lines hidden (view full) ---

159#define __ARCH_WANT_SYS_OLD_GETRLIMIT
160#define __ARCH_WANT_SYS_OLDUMOUNT
161#define __ARCH_WANT_SYS_SIGPENDING
162#define __ARCH_WANT_SYS_SIGPROCMASK
163#define __ARCH_WANT_SYS_RT_SIGACTION
164#define __ARCH_WANT_SYS_RT_SIGSUSPEND
165#define __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND
166#define __ARCH_WANT_SYS_EXECVE
1#ifndef _ASM_PARISC_UNISTD_H_
2#define _ASM_PARISC_UNISTD_H_
3
4#include <uapi/asm/unistd.h>
5
6#ifndef __ASSEMBLY__
7
8#define SYS_ify(syscall_name) __NR_##syscall_name

--- 150 unchanged lines hidden (view full) ---

159#define __ARCH_WANT_SYS_OLD_GETRLIMIT
160#define __ARCH_WANT_SYS_OLDUMOUNT
161#define __ARCH_WANT_SYS_SIGPENDING
162#define __ARCH_WANT_SYS_SIGPROCMASK
163#define __ARCH_WANT_SYS_RT_SIGACTION
164#define __ARCH_WANT_SYS_RT_SIGSUSPEND
165#define __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND
166#define __ARCH_WANT_SYS_EXECVE
167#define __ARCH_WANT_SYS_FORK
168#define __ARCH_WANT_SYS_VFORK
169#define __ARCH_WANT_SYS_CLONE
167
168#endif /* __ASSEMBLY__ */
169
170#undef STR
171
172/*
173 * "Conditional" syscalls
174 *
175 * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
176 * but it doesn't work on all toolchains, so we just do it by hand
177 */
178#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
179
180#endif /* _ASM_PARISC_UNISTD_H_ */
170
171#endif /* __ASSEMBLY__ */
172
173#undef STR
174
175/*
176 * "Conditional" syscalls
177 *
178 * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
179 * but it doesn't work on all toolchains, so we just do it by hand
180 */
181#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
182
183#endif /* _ASM_PARISC_UNISTD_H_ */