summaryrefslogtreecommitdiff
path: root/src/misc/setdomainname.c
blob: 22d3f746396d3cb2f35960e1ae688d1da392f31c (plain) (blame)
1
2
3
4
5
6
7
8
#define _GNU_SOURCE
#include <unistd.h>
#include "syscall.h"

int setdomainname(const char *name, size_t len)
{
	return syscall(SYS_setdomainname, name, len);
}