sethostname
-----------

LSB specification:
 https://refspecs.linuxbase.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/baselib-sethostname-2.html

Documentation:

  * Host Identification (libc),

  * man sethostname.

Gnulib module: sethostname

Portability problems fixed by Gnulib:

  * This function is missing on some platforms: Minix 3.1.8, Cygwin 1.7.x, mingw, MSVC 14, Android 5.1. Note that the Gnulib replacement may fail with ENOSYS on some platforms.

  * This function is not declared on some platforms: AIX 7.1, Solaris 10.

Portability problems not fixed by Gnulib:

  * The first parameter is char * instead of const char * on some platforms: Solaris 11 2010-11.

  * The second parameter is int instead of size_t on some platforms: macOS 12.5, FreeBSD 14.0, MidnightBSD 3.0, IRIX 6.5, Solaris 11 2010-11, Solaris 11 OpenIndiana, Solaris 11 OmniOS.