aboutsummaryrefslogtreecommitdiff
path: root/posix/unistd.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-03-18 21:34:58 +0000
committerUlrich Drepper <drepper@redhat.com>2001-03-18 21:34:58 +0000
commit639c324856be406e80c000720151c34ec6904d87 (patch)
tree66c902de399c96cd4adfa578f888e0fdfa3b0441 /posix/unistd.h
parent2bd7e9c3878b2a828999bd7c133419351d4007d7 (diff)
downloadglibc-639c324856be406e80c000720151c34ec6904d87.tar
glibc-639c324856be406e80c000720151c34ec6904d87.tar.gz
glibc-639c324856be406e80c000720151c34ec6904d87.tar.bz2
glibc-639c324856be406e80c000720151c34ec6904d87.zip
Update.
2001-03-18 Ulrich Drepper <drepper@redhat.com> * Makerules (build-shlib): Remove unnecessary slashes introduced in last change. * configure.in: Test for -Bgroup option of linker. * config.make.in: Define have-Bgroup. * conform/data/unistd.h-data: Require gethostname. * posix/unistd.h: Make gethostname prototype available for __USE_XOPEN2K. * crypt/Makefile: When generating DSO link with libc_nonshared.a. * debug/Makefile: Likewise. * dlfcn/Makefile: Likewise. * hesiod/Makefile: Likewise. * iconvdata/extra-module.mk: Likewise. * locale/Makefile: Likewise. * login/Makefile: Likewise. * math/Makefile: Likewise. * nis/Makefile: Likewise. * nss/Makefile: Likewise. * resolv/Makefile: Likewise. * rt/Makefile: Likewise. * posix/unistd.h (gethostname): Change type of second parameter back to size_t as per upcoming XPG6.
Diffstat (limited to 'posix/unistd.h')
-rw-r--r--posix/unistd.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/posix/unistd.h b/posix/unistd.h
index 1148cb74fc..612d872d31 100644
--- a/posix/unistd.h
+++ b/posix/unistd.h
@@ -727,13 +727,15 @@ extern int setlogin (__const char *__name) __THROW;
#endif
-#if defined __USE_BSD || (defined __USE_XOPEN && !defined __USE_UNIX98)
-
+#if defined __USE_BSD || defined __USE_XOPEN2K
/* Put the name of the current host in no more than LEN bytes of NAME.
The result is null-terminated if LEN is large enough for the full
name and the terminator. */
extern int gethostname (char *__name, size_t __len) __THROW;
+#endif
+
+#if defined __USE_BSD || (defined __USE_XOPEN && !defined __USE_UNIX98)
/* Set the name of the current host to NAME, which is LEN bytes long.
This call is restricted to the super-user. */
extern int sethostname (__const char *__name, size_t __len) __THROW;
@@ -784,7 +786,6 @@ extern void setusershell (void) __THROW; /* Rewind and re-read the file. */
terminal. If NOCHDIR is zero, do `chdir ("/")'. If NOCLOSE is zero,
redirects stdin, stdout, and stderr to /dev/null. */
extern int daemon (int __nochdir, int __noclose) __THROW;
-
#endif /* Use BSD || X/Open. */