File: gethostname

package info (click to toggle)
gnulib 20100704%2Bstable-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 52,504 kB
  • ctags: 17,021
  • sloc: ansic: 198,371; sh: 19,713; yacc: 1,219; cpp: 1,048; perl: 774; lisp: 271; makefile: 192; java: 5
file content (31 lines) | stat: -rw-r--r-- 340 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Description:
gethostname() function: Return machine's hostname.

Files:
lib/gethostname.c
m4/gethostname.m4
lib/w32sock.h

Depends-on:
unistd
sys_socket
errno
sockets

configure.ac:
gl_FUNC_GETHOSTNAME
gl_UNISTD_MODULE_INDICATOR([gethostname])

Makefile.am:

Include:
<unistd.h>

Link:
$(GETHOSTNAME_LIB)

License:
LGPLv2+

Maintainer:
all