aboutsummaryrefslogtreecommitdiff
path: root/posix
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-07-05 17:05:14 +0000
committerRoland McGrath <roland@gnu.org>1996-07-05 17:05:14 +0000
commitf5348425d095f93cce1532c7ca20915aea480868 (patch)
tree3c74c90bad1a39953be39bc190d6985b887320ef /posix
parent503054c0dd57109017b36870c430dab00fccaa8b (diff)
downloadglibc-f5348425d095f93cce1532c7ca20915aea480868.zip
glibc-f5348425d095f93cce1532c7ca20915aea480868.tar.gz
glibc-f5348425d095f93cce1532c7ca20915aea480868.tar.bz2
Fri Jul 5 12:22:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* 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.
Diffstat (limited to 'posix')
-rw-r--r--posix/unistd.h7
1 files changed, 7 insertions, 0 deletions
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));