1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
/* (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 <asm/prctl.h>
#include <sys/prctl.h>
struct syscall 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
|