2 * long sys_arch_prctl(int code, unsigned long addr)
4 * On success, arch_prctl() returns 0
5 * On error, -1 is returned, and errno is set to indicate the error.
8 #if defined(__i386__) || defined (__x86_64__)
11 #include <asm/prctl.h>
12 #include <sys/prctl.h>
14 struct syscallentry syscall_arch_prctl
= {
16 .flags
= AVOID_SYSCALL
,
22 .values
= { ARCH_SET_FS
, ARCH_GET_FS
, ARCH_SET_GS
, ARCH_GET_GS
},
25 .arg2type
= ARG_ADDRESS
,
26 .rettype
= RET_BORING
,