Hash :
939b0c71
Author :
Date :
2020-05-26T18:00:04
sethostname: Make more robust in multithreaded applications. * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen. * modules/sethostname (Depends-on): Add fopen-gnu.
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]
fopen-gnu [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