* 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.
#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
#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)