fchmod-tests, fchmodat tests, lchmod tests: Add more tests.
[gnulib.git] / doc / glibc-functions / sethostname.texi
blob8294a4a38cac52223d0bba389d2d4838cd6381a8
1 @node sethostname
2 @subsection @code{sethostname}
3 @findex sethostname
5 LSB specification:@* @url{https://refspecs.linuxbase.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/baselib-sethostname-2.html}
7 Documentation:
8 @itemize
9 @item
10 @ifinfo
11 @ref{Host Identification,,Host Identification,libc},
12 @end ifinfo
13 @ifnotinfo
14 @url{https://www.gnu.org/software/libc/manual/html_node/Host-Identification.html},
15 @end ifnotinfo
16 @item
17 @uref{https://www.kernel.org/doc/man-pages/online/pages/man2/sethostname.2.html,,man sethostname}.
18 @end itemize
20 Gnulib module: sethostname
22 Portability problems fixed by Gnulib:
23 @itemize
24 @item
25 This function is missing on some platforms:
26 Minix 3.1.8, Cygwin 1.7.x, mingw, MSVC 14, Android 5.1.
27 Note that the Gnulib replacement may fail with ENOSYS on some platforms.
28 @item
29 This function is not declared on some platforms:
30 AIX 7.1, Solaris 10.
31 @end itemize
33 Portability problems not fixed by Gnulib:
34 @itemize
35 @item
36 The first parameter is @code{char *} instead of @code{const char *}
37 on some platforms: Solaris 11 2010-11.
38 @item
39 The second parameter is @code{int} instead of @code{size_t}
40 on some platforms: Mac OS X 10.12, Solaris 11 2010-11.
41 @end itemize