summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1998-10-24 01:36:01 +0000
committerRoland McGrath <roland@gnu.org>1998-10-24 01:36:01 +0000
commit3c068816891b464d64d7f5aeb77450bf0656a50b (patch)
tree2c1fee1aefb53668c4abe409ef9cca41c426da67 /sysdeps
parent501e2da554d7c10ff06e140e97c4fa8e9f575f17 (diff)
downloadglibc-3c068816891b464d64d7f5aeb77450bf0656a50b.tar.gz
glibc-3c068816891b464d64d7f5aeb77450bf0656a50b.tar.xz
glibc-3c068816891b464d64d7f5aeb77450bf0656a50b.zip
1998-10-24 Roland McGrath <roland@baalperazim.frob.com>
	* sysdeps/mach/hurd/dl-sysdep.c (__getcwd): New weak function.

	* mach/Versions, hurd/Versions: Add numerous symbols.
	Remove libmachuser and libhurduser sections, punt
	versioning for those libraries for now.

	* misc/Versions: Add reboot here; it exists on all platforms.
	* sysdeps/unix/sysv/linux/Versions: Remove reboot here.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/hurd/dl-sysdep.c22
1 files changed, 14 insertions, 8 deletions
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
index 2495af4de9..7e8ed23a8b 100644
--- a/sysdeps/mach/hurd/dl-sysdep.c
+++ b/sysdeps/mach/hurd/dl-sysdep.c
@@ -504,11 +504,11 @@ off_t weak_function
 __lseek (int fd, off_t offset, int whence)
 {
   error_t err;
-  
+
   err = __io_seek ((mach_port_t) fd, offset, whence, &offset);
   if (err)
     return __hurd_fail (err);
-  
+
   return offset;
 }
 
@@ -574,9 +574,9 @@ int weak_function
 __fxstat (int vers, int fd, struct stat *buf)
 {
   error_t err;
-  
+
   assert (vers == _STAT_VER);
-  
+
   err = __io_stat ((mach_port_t) fd, buf);
   if (err)
     return __hurd_fail (err);
@@ -589,7 +589,7 @@ __xstat (int vers, const char *file, struct stat *buf)
 {
   error_t err;
   mach_port_t port;
-  
+
   assert (vers == _STAT_VER);
 
   err = open_file (file, 0, &port, buf);
@@ -606,7 +606,7 @@ __getpid ()
 {
   pid_t pid, ppid;
   int orphaned;
-  
+
   if (__proc_getpids (_dl_hurd_data->portarray[INIT_PORT_PROC],
 		      &pid, &ppid, &orphaned))
     return -1;
@@ -645,7 +645,7 @@ abort (void)
     /* Try for ever and ever.  */
     ABORT_INSTRUCTION;
 }
-
+
 /* This function is called by interruptible RPC stubs.  For initial
    dynamic linking, just use the normal mach_msg.  Since this defn is
    weak, the real defn in libc.so will override it if we are linked into
@@ -664,7 +664,13 @@ _hurd_intr_rpc_mach_msg (mach_msg_header_t *msg,
 		     timeout, notify);
 }
 
-
+char * weak_function
+__getcwd (char *buf, size_t size) /* XXX loser elf/dl-object.c */
+{
+  abort ();
+  return NULL;
+}
+
 void
 internal_function
 _dl_show_auxv (void)