/* (x86-64 only) * long sys_arch_prctl(int code, unsigned long addr) * * On success, arch_prctl() returns 0 * On error, -1 is returned, and errno is set to indicate the error. */ #if defined(__i386__) || defined (__x86_64__) #include "sanitise.h" #include #include struct syscallentry syscall_arch_prctl = { .name = "arch_prctl", .flags = AVOID_SYSCALL, .num_args = 2, .arg1name = "code", .arg1type = ARG_OP, .arg1list = { .num = 4, .values = { ARCH_SET_FS, ARCH_GET_FS, ARCH_SET_GS, ARCH_GET_GS }, }, .arg2name = "addr", .arg2type = ARG_ADDRESS, .rettype = RET_BORING, }; #endif .