Kernel/LibC: Add SYS_SOCKET
This commit is contained in:
8
libc/sys/socket.cpp
Normal file
8
libc/sys/socket.cpp
Normal file
@@ -0,0 +1,8 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user