summaryrefslogtreecommitdiffstats
path: root/tests/override_gethostname_nonfqdn.c
blob: 5f538573c83a1e81659bb9324b1285db48db2555 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>

int gethostname(char *name, size_t __attribute__((unused)) len)
{
	*name++  = 'n';
	*name++  = 'o';
	*name++  = 'n';
	*name++  = 'f';
	*name++  = 'q';
	*name++  = 'd';
	*name++  = 'n';
	*name++  = '\0';
	return 0;
}