initial check-in, version 0.5.0
[musl] / src / network / socketpair.c
1 #include <sys/socket.h>
2 #include "syscall.h"
3 #include "socketcall.h"
4
5 int socketpair(int domain, int type, int protocol, int fd[2])
6 {
7         unsigned long args[] = { domain, type, protocol, (unsigned long)fd };
8         return syscall2(__NR_socketcall, SYS_SOCKETPAIR, (long)args);
9 }