1999-07-21 Mark Kettenis <kettenis@gnu.org>
authorroland <roland>
Tue, 20 Jul 1999 22:56:21 +0000 (22:56 +0000)
committerroland <roland>
Tue, 20 Jul 1999 22:56:21 +0000 (22:56 +0000)
* 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.

sysdeps/mach/hurd/read.c
sysdeps/mach/hurd/write.c

index 7e2b880..2d50496 100644 (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
index b019cf2..e9d8c9d 100644 (file)
 
 #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)