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

int sethostname(const char *name, size_t len)
{
	return syscall2(__NR_sethostname, (long)name, len);
}