Home
last modified time | relevance | path

Searched refs:hostname (Results 1 – 2 of 2) sorted by relevance

/unit/src/
H A Dnxt_runtime.c1150 char hostname[NXT_MAXHOSTNAMELEN + 1]; in nxt_runtime_hostname() local
1152 if (gethostname(hostname, NXT_MAXHOSTNAMELEN) != 0) { in nxt_runtime_hostname()
1165 hostname[NXT_MAXHOSTNAMELEN] = '\0'; in nxt_runtime_hostname()
1167 length = nxt_strlen(hostname); in nxt_runtime_hostname()
1168 rt->hostname.length = length; in nxt_runtime_hostname()
1170 rt->hostname.start = nxt_mp_nget(rt->mem_pool, length); in nxt_runtime_hostname()
1172 if (rt->hostname.start != NULL) { in nxt_runtime_hostname()
1173 nxt_memcpy_lowcase(rt->hostname.start, (u_char *) hostname, length); in nxt_runtime_hostname()
H A Dnxt_runtime.h27 nxt_str_t hostname; member