]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - include/asm-generic/unistd.h
CONFIG_SYMBOL_PREFIX: cleanup.
[mirror_ubuntu-zesty-kernel.git] / include / asm-generic / unistd.h
CommitLineData
8a1ab315 1#include <uapi/asm-generic/unistd.h>
b92021b0 2#include <linux/export.h>
e64a1617
AB
3
4/*
5 * These are required system calls, we should
6 * invert the logic eventually and let them
7 * be selected by default.
8 */
9#if __BITS_PER_LONG == 32
10#define __ARCH_WANT_STAT64
11#define __ARCH_WANT_SYS_LLSEEK
12#endif
e64a1617
AB
13
14/*
15 * "Conditional" syscalls
16 *
17 * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
18 * but it doesn't work on all toolchains, so we just do it by hand
19 */
20#ifndef cond_syscall
b92021b0
RR
21#define cond_syscall(x) asm(".weak\t" VMLINUX_SYMBOL_STR(x) "\n\t" \
22 ".set\t" VMLINUX_SYMBOL_STR(x) "," \
23 VMLINUX_SYMBOL_STR(sys_ni_syscall))
e64a1617 24#endif