aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/hurd/read.c2
-rw-r--r--sysdeps/mach/hurd/write.c4
2 files changed, 1 insertions, 5 deletions
diff --git a/sysdeps/mach/hurd/read.c b/sysdeps/mach/hurd/read.c
index 7e2b880903..2d504968d8 100644
--- a/sysdeps/mach/hurd/read.c
+++ b/sysdeps/mach/hurd/read.c
@@ -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
diff --git a/sysdeps/mach/hurd/write.c b/sysdeps/mach/hurd/write.c
index b019cf2023..e9d8c9d539 100644
--- a/sysdeps/mach/hurd/write.c
+++ b/sysdeps/mach/hurd/write.c
@@ -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)