summaryrefslogtreecommitdiff
path: root/src/network/shutdown.c
blob: 91950c8a8ff0be4a582683d346cfce4467c66058 (plain) (blame)
1
2
3
4
5
6
7
8
9
#include <sys/socket.h>
#include "syscall.h"
#include "socketcall.h"

int shutdown(int fd, int how)
{
	unsigned long args[] = { fd, how };
	return syscall2(__NR_socketcall, SYS_SHUTDOWN, (long)args);
}