summaryrefslogtreecommitdiff
path: root/lib/libc/socket/socketpair.c
blob: e116c645ad670f0cb10df5e7b27581bed887fd20 (plain)
1
2
3
4
5
6
7
8
#include "asm/unistd_64.h" // for __NR_socketpair

#include <syscall.h> // for __syscall_4, syscall

int socketpair(int domain, int type, int protocol, int socket_vector[2])
{
	return syscall(socketpair, domain, type, protocol, socket_vector);
}