summaryrefslogblamecommitdiff
path: root/src/linux/sethostname.c
blob: 9313b3245574720836f74a22ba052d7fc3e7b319 (plain) (tree)
1
2
3
4
5
6
7
8
                   
                   



                                             
                                                   
 
#define _GNU_SOURCE
#include <unistd.h>
#include "syscall.h"

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