aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mach
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-01-24 10:40:26 +0000
committerRoland McGrath <roland@gnu.org>1999-01-24 10:40:26 +0000
commit67afae58601ff74fcbcfac1f63fa3ab9962f2918 (patch)
tree6818bad79679b719c9e1a8740731eabe6bf2b125 /sysdeps/mach
parent8d097a18d8eca79c2d38429ec0a5cb636b58b591 (diff)
downloadglibc-67afae58601ff74fcbcfac1f63fa3ab9962f2918.zip
glibc-67afae58601ff74fcbcfac1f63fa3ab9962f2918.tar.gz
glibc-67afae58601ff74fcbcfac1f63fa3ab9962f2918.tar.bz2
1999-01-23 Roland McGrath <roland@baalperazim.frob.com>
* sysdeps/unix/sysv/linux/sys/mtio.h: Moved to... * sysdeps/gnu/sys/mtio.h: ...here. (_IOT_mtop, _IOT_mtget, _IOT_mtpos, _IOT_mtconfiginfo): New macros. * sysdeps/gnu/Dist: Add sys/mtio.h. * sysdeps/unix/sysv/linux/Dist: Remove sys/mtio.h. * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc] (sysdep_headers): Don't add sys/mtio.h here. * sysdeps/gnu/Makefile [$(subdir) = misc] (sysdep_headers): Add it here instead.
Diffstat (limited to 'sysdeps/mach')
-rw-r--r--sysdeps/mach/hurd/dl-sysdep.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
index efe33d7..c79c388 100644
--- a/sysdeps/mach/hurd/dl-sysdep.c
+++ b/sysdeps/mach/hurd/dl-sysdep.c
@@ -1,5 +1,5 @@
/* Operating system support for run-time dynamic linker. Hurd version.
- Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1995, 96, 97, 98, 99 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -514,9 +514,9 @@ __libc_write (int fd, const void *buf, size_t nbytes)
{
error_t err;
mach_msg_type_number_t nwrote;
-
+
assert (fd < _hurd_init_dtablesize);
-
+
err = __io_write (_hurd_init_dtable[fd], buf, nbytes, -1, &nwrote);
if (err)
return __hurd_fail (err);
@@ -638,11 +638,17 @@ __getpid ()
return pid;
}
+/* This is called only in some strange cases trying to guess a value
+ for $ORIGIN for the executable. The dynamic linker copes with
+ getcwd failing (dl-object.c), and it's too much hassle to include
+ the functionality here. (We could, it just requires duplicating or
+ reusing getcwd.c's code but using our special lookup function as in
+ `open', above.) */
char *
weak_function
__getcwd (char *buf, size_t size)
{
- abort ();
+ errno = ENOSYS;
return NULL;
}