hash: relax license to LGPLv2+, for libguestfs
[gnulib.git] / doc / posix-functions / gethostname.texi
1 @node gethostname
2 @section @code{gethostname}
3 @findex gethostname
4
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/gethostname.html}
6
7 Gnulib module: gethostname
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 On mingw and MSVC 9, this function has a prototype that differs from that
13 specified by POSIX, and it is defined only in the ws2_32 library.
14 @end itemize
15
16 Portability problems not fixed by Gnulib:
17 @itemize
18 @item
19 This function's second argument type is @code{int} instead of @code{size_t}
20 on some platforms:
21 OSF/1 5.1, Solaris 10.
22 @item
23 If the given buffer is too small for the host name, some implementations
24 fail with @code{EINVAL}, instead of returning a truncated host name.
25 @end itemize