29bffbcb639b9082f169e7cfc6212900c467c35d
[musl] / src / network / connect.c
1 #include <sys/socket.h>
2 #include "syscall.h"
3 #include "libc.h"
4
5 int connect(int fd, const struct sockaddr *addr, socklen_t len)
6 {
7         int ret;
8         CANCELPT_BEGIN;
9         ret = socketcall(connect, fd, addr, len, 0, 0, 0);
10         CANCELPT_END;
11         return ret;
12 }