summaryrefslogblamecommitdiff
path: root/src/network/connect.c
blob: 29bffbcb639b9082f169e7cfc6212900c467c35d (plain) (tree)
1
2
3
4
5
6
7
8
9

                       



                                                               

                       
                                                          


                     
#include <sys/socket.h>
#include "syscall.h"
#include "libc.h"

int connect(int fd, const struct sockaddr *addr, socklen_t len)
{
	int ret;
	CANCELPT_BEGIN;
	ret = socketcall(connect, fd, addr, len, 0, 0, 0);
	CANCELPT_END;
	return ret;
}