add new renameat2 syscall
[trinity.git] / syscalls / arch_prctl.c
blob77d09fb340ca7828cbdd5636a93b3ec0c7883644
1 /* (x86-64 only)
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.
6 */
8 #if defined(__i386__) || defined (__x86_64__)
10 #include "sanitise.h"
11 #include <asm/prctl.h>
12 #include <sys/prctl.h>
14 struct syscallentry syscall_arch_prctl = {
15 .name = "arch_prctl",
16 .flags = AVOID_SYSCALL,
17 .num_args = 2,
18 .arg1name = "code",
19 .arg1type = ARG_OP,
20 .arg1list = {
21 .num = 4,
22 .values = { ARCH_SET_FS, ARCH_GET_FS, ARCH_SET_GS, ARCH_GET_GS },
24 .arg2name = "addr",
25 .arg2type = ARG_ADDRESS,
26 .rettype = RET_BORING,
28 #endif