blob: d37089d9716a2eaf6eb8c8ddf54da79ce0db9dda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "asm/unistd_64.h" // for __NR_recvfrom
#include <sys/socket.h> // for recvfrom, socklen_t
#include <sys/types.h> // for size_t, ssize_t
#include <syscall.h> // for __syscall_6, syscall
ssize_t recvfrom(int socket, void *restrict buffer, size_t length, int flags,
struct sockaddr *restrict address,
socklen_t *restrict address_len)
{
return syscall(recvfrom, socket, buffer, length, flags, address,
address_len);
}
|