1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-14 14:01:48 +03:00
Files
gnulib/modules/sethostname
Bruno Haible 1917369d72 Tweak last commit.
* lib/sethostname.c: Don't include <string.h>.
(sethostname): No need to copy the argument string to the stack. Don't
call clearerr. Preserve errno when fprintf failed.
* m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
Don't invoke AC_REPLACE_FUNCS.
* modules/sethostname (Link): Remove empty section.
* doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
failure problem.
2011-12-03 14:09:14 +01:00

30 lines
408 B
Plaintext

Description:
sethostname() function: Set machine's hostname.
Files:
lib/sethostname.c
m4/sethostname.m4
m4/gethostname.m4
Depends-on:
unistd
errno [test $HAVE_SETHOSTNAME = 0]
configure.ac:
gl_FUNC_SETHOSTNAME
if test $HAVE_SETHOSTNAME = 0; then
AC_LIBOBJ([sethostname])
fi
gl_UNISTD_MODULE_INDICATOR([sethostname])
Makefile.am:
Include:
<unistd.h>
License:
LGPLv2+
Maintainer:
Ben Walton