fix centos6 build failures
[trinity.git] / syscalls / connect.c
blobde279e6cfdc8a594962e97adf6bd33ce84e1f6b1
1 /*
2 * SYSCALL_DEFINE3(connect, int, fd, struct sockaddr __user *, uservaddr, int, addrlen
4 * If the connection or binding succeeds, zero is returned.
5 * On error, -1 is returned, and errno is set appropriately.
6 */
7 #include "sanitise.h"
9 struct syscall syscall_connect = {
10 .name = "connect",
11 .num_args = 3,
12 .arg1name = "fd",
13 .arg1type = ARG_FD,
14 .arg2name = "uservaddr",
15 .arg2type = ARG_SOCKADDR,
16 .arg3name = "addrlen",
17 .arg3type = ARG_SOCKADDRLEN,
18 .rettype = RET_ZERO_SUCCESS,
19 .flags = NEED_ALARM,