about summary refs log tree commit diff
path: root/src/network/setsockopt.c
blob: b50303b86ac52032e13f38b901ba07a62a08bab0 (plain) (blame)
1
2
3
4
5
6
7
8
9
#include <sys/socket.h>
#include "syscall.h"
#include "socketcall.h"

int setsockopt(int fd, int level, int optname, const void *optval, socklen_t optlen)
{
	unsigned long args[] = { fd, level, optname, (unsigned long)optval, optlen };
	return syscall2(__NR_socketcall, SYS_SETSOCKOPT, (long)args);
}