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