summaryrefslogtreecommitdiff
path: root/lib/libc/socket/connect.c
blob: dabe51357f261f0f7c1d9c7224d618f393db412d (plain)
1
2
3
4
5
6
7
8
9


#include <sys/socket.h> // for connect, socklen_t
#include <syscall.h>	// for __syscall_3, syscall

int connect(int socket, const struct sockaddr *address, socklen_t address_len)
{
	return syscall(connect, socket, address, address_len);
}