]> Savannah Git Hosting - gnulib.git/commit
Add a new sethostname module
authorBen Walton <bwalton@artsci.utoronto.ca>
Sat, 3 Dec 2011 04:04:17 +0000 (23:04 -0500)
committerBruno Haible <bruno@clisp.org>
Sat, 3 Dec 2011 12:30:02 +0000 (13:30 +0100)
commitab8fbf44bf4633d1c326940ce1d0715fb63936d4
treedc2e9ce704c5fd8ee2408513044ce6fc4a7ec968
parent9b764306b5b16e3554b57631842d4fedc49df043
Add a new sethostname module

Define sethostname on platforms that do not provide the declaration.
Provide a function for platforms that lack it.  The general handling
of the provided function is to simply return -1 and set errno to
ENOSYS.  A specific handler is provided for Minix.

* lib/sethostname.c (sethostname): New file.  Provide sethostname
for systems that lack it.
* m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
sethostname declaration and function.
* modules/sethostname: New file.  Define the sethostname module.

Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
ChangeLog
doc/glibc-functions/sethostname.texi
lib/sethostname.c [new file with mode: 0644]
m4/sethostname.m4 [new file with mode: 0644]
modules/sethostname [new file with mode: 0644]