summaryrefslogtreecommitdiff
path: root/src/linux/sethostname.c
blob: 79a87078c936e7c71707eaef23668cdf798a93d5 (plain)
1
2
3
4
5
6
7
#include <unistd.h>
#include "syscall.h"

int sethostname(const char *name, size_t len)
{
	return syscall(SYS_sethostname, name, len);
}