banan-os/libc/sys/socket.cpp

9 lines
174 B
C++
Raw Normal View History

2024-02-01 23:39:09 +02:00
#include <sys/socket.h>
#include <sys/syscall.h>
#include <unistd.h>
int socket(int domain, int type, int protocol)
{
return syscall(SYS_SOCKET, domain, type, protocol);
}