var scope reduction
[trinity.git] / syscalls / getpeername.c
blob9b96c546d8d2cf7e6140d8aaff682ffa801dd225
1 /*
2 * SYSCALL_DEFINE3(getpeername, int, fd, struct sockaddr __user *, usockaddr, int __user *, usockaddr_len)
3 */
4 #include "sanitise.h"
6 struct syscallentry syscall_getpeername = {
7 .name = "getpeername",
8 .num_args = 3,
9 .arg1name = "fd",
10 .arg1type = ARG_FD,
11 .arg2name = "usockaddr",
12 .arg2type = ARG_SOCKADDR,
13 .arg3name = "usockaddr_len",
14 .arg3type = ARG_SOCKADDRLEN,
15 .rettype = RET_ZERO_SUCCESS,
16 .flags = NEED_ALARM,