From f5348425d095f93cce1532c7ca20915aea480868 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 5 Jul 1996 17:05:14 +0000 Subject: Fri Jul 5 12:22:51 1996 Roland McGrath * elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h". * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for _dl_rtld_map. (RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP]. (elf_machine_rel): Use it instead of testing fn ptr arg at runtime. (elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare _dl_rtld_map weak only here. * posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname. --- posix/unistd.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'posix') diff --git a/posix/unistd.h b/posix/unistd.h index 92e874e..0c4ddcc 100644 --- a/posix/unistd.h +++ b/posix/unistd.h @@ -620,6 +620,13 @@ extern long int gethostid __P ((void)); extern int sethostid __P ((long int __id)); +/* Get and set the NIS (aka YP) domain name, if any. + Called just like `gethostname' and `sethostname'. + The NIS domain name is usually the empty string when not using NIS. */ +extern int getdomainname __P ((char *__name, size_t __len)); +extern int setdomainname __P ((__const char *__name, size_t __len)); + + /* Return the number of bytes in a page. This is the system's page size, which is not necessarily the same as the hardware page size. */ extern size_t __getpagesize __P ((void)); -- cgit v1.1