blob: 0c9db0ad88b631b55719def9f497584a62f9798b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#include "asm/unistd_64.h" // for __NR_getsockopt
#include <sys/socket.h> // for getsockopt, socklen_t
#include <syscall.h> // for __syscall_5, syscall
int getsockopt(int socket, int level, int option_name,
void *restrict option_value, socklen_t *restrict option_len)
{
return syscall(getsockopt, socket, level, option_name, option_value,
option_len);
}
|