···1818#define __ARCH_WANT_SYS_VFORK1919#define __ARCH_WANT_SYS_CLONE20202121-/* "Conditional" syscalls. What we want is2222-2323- __attribute__((weak,alias("sys_ni_syscall")))2424-2525- but that raises the problem of what type to give the symbol. If we use2626- a prototype, it'll conflict with the definition given in this file and2727- others. If we use __typeof, we discover that not all symbols actually2828- have declarations. If we use no prototype, then we get warnings from2929- -Wstrict-prototypes. Ho hum. */3030-3131-#define cond_syscall(x) asm(".weak\t" #x "\n" #x " = sys_ni_syscall")3232-3321#endif /* _ALPHA_UNISTD_H */
-8
arch/arm/include/asm/unistd.h
···4444#define __ARCH_WANT_SYS_CLONE45454646/*4747- * "Conditional" syscalls4848- *4949- * What we want is __attribute__((weak,alias("sys_ni_syscall"))),5050- * but it doesn't work on all toolchains, so we just do it by hand5151- */5252-#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")5353-5454-/*5547 * Unimplemented (or alternatively implemented) syscalls5648 */5749#define __IGNORE_fadvise64_64
-8
arch/avr32/include/asm/unistd.h
···4141#define __ARCH_WANT_SYS_VFORK4242#define __ARCH_WANT_SYS_CLONE43434444-/*4545- * "Conditional" syscalls4646- *4747- * What we want is __attribute__((weak,alias("sys_ni_syscall"))),4848- * but it doesn't work on all toolchains, so we just do it by hand4949- */5050-#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");5151-5244#endif /* __ASM_AVR32_UNISTD_H */
-8
arch/blackfin/include/asm/unistd.h
···2020#define __ARCH_WANT_SYS_NICE2121#define __ARCH_WANT_SYS_VFORK22222323-/*2424- * "Conditional" syscalls2525- *2626- * What we want is __attribute__((weak,alias("sys_ni_syscall"))),2727- * but it doesn't work on all toolchains, so we just do it by hand2828- */2929-#define cond_syscall(x) asm(".weak\t_" #x "\n\t.set\t_" #x ",_sys_ni_syscall");3030-3123#endif /* __ASM_BFIN_UNISTD_H */
-8
arch/cris/include/asm/unistd.h
···3434#define __ARCH_WANT_SYS_VFORK3535#define __ARCH_WANT_SYS_CLONE36363737-/*3838- * "Conditional" syscalls3939- *4040- * What we want is __attribute__((weak,alias("sys_ni_syscall"))),4141- * but it doesn't work on all toolchains, so we just do it by hand4242- */4343-#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")4444-4537#endif /* _ASM_CRIS_UNISTD_H_ */
-10
arch/frv/include/asm/unistd.h
···3131#define __ARCH_WANT_SYS_VFORK3232#define __ARCH_WANT_SYS_CLONE33333434-/*3535- * "Conditional" syscalls3636- *3737- * What we want is __attribute__((weak,alias("sys_ni_syscall"))),3838- * but it doesn't work on all toolchains, so we just do it by hand3939- */4040-#ifndef cond_syscall4141-#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")4242-#endif4343-4434#endif /* _ASM_UNISTD_H_ */
···4646struct pt_regs;4747asmlinkage long sys_ia64_pipe(void);48484949-/*5050- * "Conditional" syscalls5151- *5252- * Note, this macro can only be used in the file which defines sys_ni_syscall, i.e., in5353- * kernel/sys_ni.c. This version causes warnings because the declaration isn't a5454- * proper prototype, but we can't use __typeof__ either, because not all cond_syscall()5555- * declarations have prototypes at the moment.5656- */5757-#define cond_syscall(x) asmlinkage long x (void) __attribute__((weak,alias("sys_ni_syscall")))5858-5949#endif /* !__ASSEMBLY__ */6050#endif /* _ASM_IA64_UNISTD_H */
-10
arch/m32r/include/asm/unistd.h
···4848#define __IGNORE_getresgid4949#define __IGNORE_chown50505151-/*5252- * "Conditional" syscalls5353- *5454- * What we want is __attribute__((weak,alias("sys_ni_syscall"))),5555- * but it doesn't work on all toolchains, so we just do it by hand5656- */5757-#ifndef cond_syscall5858-#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")5959-#endif6060-6151#endif /* _ASM_M32R_UNISTD_H */
-8
arch/m68k/include/asm/unistd.h
···3232#define __ARCH_WANT_SYS_FORK3333#define __ARCH_WANT_SYS_VFORK34343535-/*3636- * "Conditional" syscalls3737- *3838- * What we want is __attribute__((weak,alias("sys_ni_syscall"))),3939- * but it doesn't work on all toolchains, so we just do it by hand4040- */4141-#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")4242-4335#endif /* _ASM_M68K_UNISTD_H_ */
-8
arch/microblaze/include/asm/unistd.h
···3737#define __ARCH_WANT_SYS_VFORK3838#define __ARCH_WANT_SYS_FORK39394040-/*4141- * "Conditional" syscalls4242- *4343- * What we want is __attribute__((weak,alias("sys_ni_syscall"))),4444- * but it doesn't work on all toolchains, so we just do it by hand4545- */4646-#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");4747-4840#endif /* __ASSEMBLY__ */4941#endif /* _ASM_MICROBLAZE_UNISTD_H */
···63636464#endif /* !__ASSEMBLY__ */65656666-/*6767- * "Conditional" syscalls6868- *6969- * What we want is __attribute__((weak,alias("sys_ni_syscall"))),7070- * but it doesn't work on all toolchains, so we just do it by hand7171- */7272-#define cond_syscall(x) asm(".weak\t" #x "\n" #x "\t=\tsys_ni_syscall")7373-7466#endif /* _ASM_UNISTD_H */
-10
arch/mn10300/include/asm/unistd.h
···4545#define __ARCH_WANT_SYS_VFORK4646#define __ARCH_WANT_SYS_CLONE47474848-/*4949- * "Conditional" syscalls5050- *5151- * What we want is __attribute__((weak,alias("sys_ni_syscall"))),5252- * but it doesn't work on all toolchains, so we just do it by hand5353- */5454-#ifndef cond_syscall5555-#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");5656-#endif5757-5848#endif /* _ASM_UNISTD_H */
-8
arch/parisc/include/asm/unistd.h
···170170171171#undef STR172172173173-/*174174- * "Conditional" syscalls175175- *176176- * What we want is __attribute__((weak,alias("sys_ni_syscall"))),177177- * but it doesn't work on all toolchains, so we just do it by hand178178- */179179-#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")180180-181173#endif /* _ASM_PARISC_UNISTD_H_ */
···5656#define __ARCH_WANT_SYS_VFORK5757#define __ARCH_WANT_SYS_CLONE58585959-/*6060- * "Conditional" syscalls6161- */6262-#define cond_syscall(x) \6363- asmlinkage long x (void) __attribute__((weak,alias("sys_ni_syscall")))6464-6559#endif /* __ASSEMBLY__ */6660#endif /* _ASM_POWERPC_UNISTD_H_ */
-6
arch/powerpc/include/uapi/asm/linkage.h
···11-#ifndef _ASM_POWERPC_LINKAGE_H22-#define _ASM_POWERPC_LINKAGE_H33-44-/* Nothing to see here... */55-66-#endif /* _ASM_POWERPC_LINKAGE_H */
-8
arch/s390/include/asm/unistd.h
···5454#define __ARCH_WANT_SYS_VFORK5555#define __ARCH_WANT_SYS_CLONE56565757-/*5858- * "Conditional" syscalls5959- *6060- * What we want is __attribute__((weak,alias("sys_ni_syscall"))),6161- * but it doesn't work on all toolchains, so we just do it by hand6262- */6363-#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")6464-6557#endif /* _ASM_S390_UNISTD_H_ */
-8
arch/sh/include/asm/unistd.h
···3030# define __ARCH_WANT_SYS_VFORK3131# define __ARCH_WANT_SYS_CLONE32323333-/*3434- * "Conditional" syscalls3535- *3636- * What we want is __attribute__((weak,alias("sys_ni_syscall"))),3737- * but it doesn't work on all toolchains, so we just do it by hand3838- */3939-# define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")4040-4133#include <uapi/asm/unistd.h>
-8
arch/sparc/include/asm/unistd.h
···4545#define __ARCH_WANT_COMPAT_SYS_SENDFILE4646#endif47474848-/*4949- * "Conditional" syscalls5050- *5151- * What we want is __attribute__((weak,alias("sys_ni_syscall"))),5252- * but it doesn't work on all toolchains, so we just do it by hand5353- */5454-#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")5555-5648#endif /* _SPARC_UNISTD_H */
-8
arch/x86/include/asm/unistd.h
···5050# define __ARCH_WANT_SYS_VFORK5151# define __ARCH_WANT_SYS_CLONE52525353-/*5454- * "Conditional" syscalls5555- *5656- * What we want is __attribute__((weak,alias("sys_ni_syscall"))),5757- * but it doesn't work on all toolchains, so we just do it by hand5858- */5959-# define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")6060-6153#endif /* _ASM_X86_UNISTD_H */
-8
arch/xtensa/include/asm/unistd.h
···44#define __ARCH_WANT_SYS_CLONE55#include <uapi/asm/unistd.h>6677-/*88- * "Conditional" syscalls99- *1010- * What we want is __attribute__((weak,alias("sys_ni_syscall"))),1111- * but it doesn't work on all toolchains, so we just do it by hand1212- */1313-#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");1414-157#define __ARCH_WANT_STAT64168#define __ARCH_WANT_SYS_UTIME179#define __ARCH_WANT_SYS_LLSEEK
-17
include/asm-generic/unistd.h
···99#define __ARCH_WANT_STAT641010#define __ARCH_WANT_SYS_LLSEEK1111#endif1212-1313-/*1414- * "Conditional" syscalls1515- *1616- * What we want is __attribute__((weak,alias("sys_ni_syscall"))),1717- * but it doesn't work on all toolchains, so we just do it by hand1818- */1919-#ifndef cond_syscall2020-#ifdef CONFIG_SYMBOL_PREFIX2121-#define __SYMBOL_PREFIX CONFIG_SYMBOL_PREFIX2222-#else2323-#define __SYMBOL_PREFIX2424-#endif2525-#define cond_syscall(x) asm(".weak\t" __SYMBOL_PREFIX #x "\n\t" \2626- ".set\t" __SYMBOL_PREFIX #x "," \2727- __SYMBOL_PREFIX "sys_ni_syscall")2828-#endif