From 639c324856be406e80c000720151c34ec6904d87 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 18 Mar 2001 21:34:58 +0000 Subject: Update. 2001-03-18 Ulrich Drepper * 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. --- posix/unistd.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'posix') 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. */ -- cgit v1.2.3