summaryrefslogtreecommitdiff
path: root/lib/libc/socket/connect.c
blob: 19c9ef95997e6e269da7f8331a53cd0dd1bdc632 (plain)
1
2
3
4
5
6
7
8
9
#include "asm/unistd_64.h" // for __NR_connect

#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);
}