2 * prctl syscall for AVR32 Linux.
4 * Copyright (C) 2010 Atmel Corporation
6 * This file is subject to the terms and conditions of the GNU Lesser General
7 * Public License. See the file "COPYING.LIB" in the main directory of this
8 * archive for more details.
10 #include <sys/syscall.h>
11 #include <sys/prctl.h>
15 #define __NR___syscall_prctl __NR_prctl
16 static inline _syscall5(int, __syscall_prctl
, int, option
, long, arg2
,
17 long, arg3
, long, arg4
, long, arg5
);
19 int prctl(int __option
, ...)
27 va_start(ap
, __option
);
28 arg2
= va_arg(ap
, long);
29 arg3
= va_arg(ap
, long);
30 arg4
= va_arg(ap
, long);
31 arg5
= va_arg(ap
, long);
34 return INLINE_SYSCALL(prctl
, 5, __option
, arg2
, arg3
, arg4
, arg5
);