Hash :
1917369d
Author :
Date :
2011-12-03T14:09:14
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.
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