1999-07-16 Roland McGrath <roland@baalperazim.frob.com>

* elf/dl-reloc.c (_dl_reloc_bad_type): New function.
	* elf/ldsodefs.h: Declare it.
	* sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Use it
	instead of assert.
	(elf_machine_lazy_rel): Likewise.
	* sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
	(elf_machine_lazy_rel): Likewise.
	* sysdeps/mips/dl-machine.h (elf_machine_rel): Likewise.
	* sysdeps/mips/mips64/dl-machine.h (elf_machine_rel): Likewise.
	* sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
	(elf_machine_lazy_rel): Likewise.
	* sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
	(elf_machine_lazy_rel): Likewise.
	* sysdeps/generic/dl-machine.h (elf_machine_rel): Likewise.
	* sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
	(elf_machine_lazy_rel): Likewise.
	* sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
	(elf_machine_lazy_rel): Likewise.

1999-07-21  Mark Kettenis  <kettenis@gnu.org>

	* sysdeps/mach/hurd/read.c: Do not include <hurd.h> and
	<hurd/fd.h>.
	* sysdeps/mach/hurd/write.c: Do not include <hurd.h> and
	<hurd/fd.h>.
	(__libc_write): Call __pwrite instead of __pread.
This commit is contained in:
Roland McGrath 1999-07-20 22:56:39 +00:00
parent c768719df4
commit 8d18723936
3 changed files with 30 additions and 5 deletions

View File

@ -1,3 +1,32 @@
1999-07-16 Roland McGrath <roland@baalperazim.frob.com>
* elf/dl-reloc.c (_dl_reloc_bad_type): New function.
* elf/ldsodefs.h: Declare it.
* sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Use it
instead of assert.
(elf_machine_lazy_rel): Likewise.
* sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
(elf_machine_lazy_rel): Likewise.
* sysdeps/mips/dl-machine.h (elf_machine_rel): Likewise.
* sysdeps/mips/mips64/dl-machine.h (elf_machine_rel): Likewise.
* sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
(elf_machine_lazy_rel): Likewise.
* sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
(elf_machine_lazy_rel): Likewise.
* sysdeps/generic/dl-machine.h (elf_machine_rel): Likewise.
* sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
(elf_machine_lazy_rel): Likewise.
* sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
(elf_machine_lazy_rel): Likewise.
1999-07-21 Mark Kettenis <kettenis@gnu.org>
* sysdeps/mach/hurd/read.c: Do not include <hurd.h> and
<hurd/fd.h>.
* sysdeps/mach/hurd/write.c: Do not include <hurd.h> and
<hurd/fd.h>.
(__libc_write): Call __pwrite instead of __pread.
1999-07-20 Mark Kettenis <kettenis@gnu.org>
* sysdeps/mach/hurd/mmap.c (__mmap): Use correct arguments in

View File

@ -18,8 +18,6 @@
#include <errno.h>
#include <unistd.h>
#include <hurd.h>
#include <hurd/fd.h>
/* Read NBYTES into BUF from FD. Return the number read or -1. */
ssize_t

View File

@ -18,13 +18,11 @@
#include <errno.h>
#include <unistd.h>
#include <hurd.h>
#include <hurd/fd.h>
ssize_t
__libc_write (int fd, const void *buf, size_t nbytes)
{
return __pread (fd, buf, nbytes, (off_t) -1);
return __pwrite (fd, buf, nbytes, (off_t) -1);
}
weak_alias (__libc_write, __write)