2024-02-01 23:39:09 +02:00
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <sys/syscall.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
|
2024-02-02 01:31:58 +02:00
|
|
|
int bind(int socket, const struct sockaddr* address, socklen_t address_len)
|
|
|
|
{
|
|
|
|
return syscall(SYS_BIND, socket, address, address_len);
|
|
|
|
}
|
|
|
|
|
2024-02-01 23:39:09 +02:00
|
|
|
int socket(int domain, int type, int protocol)
|
|
|
|
{
|
|
|
|
return syscall(SYS_SOCKET, domain, type, protocol);
|
|
|
|
}
|