aboutsummaryrefslogtreecommitdiff
path: root/src/linux/sethostname.c
blob: 5be1346b8fe326a8a9b9d6562822d00876429ec6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#define _GNU_SOURCE
#include <unistd.h>
#include "syscall.h"

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


#ifdef TEST
int
main(void) {
	return 0;
}
#endif