mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
* sysdeps/mach/hurd/pread.c (__pread): Include <hurd/fd.h>. Fix typo.
* sysdeps/mach/hurd/pwrite.c (__pwrite): Include <hurd/fd.h>.
This commit is contained in:
parent
180c9ab7e3
commit
c768719df4
@ -3,7 +3,8 @@
|
||||
* sysdeps/mach/hurd/mmap.c (__mmap): Use correct arguments in
|
||||
__vm_allocate calls.
|
||||
|
||||
1999-07-20 Mark Kettenis <kettenis@gnu.org>
|
||||
* sysdeps/mach/hurd/pread.c (__pread): Include <hurd/fd.h>. Fix typo.
|
||||
* sysdeps/mach/hurd/pwrite.c (__pwrite): Include <hurd/fd.h>.
|
||||
|
||||
* sysdeps/mach/hurd/sysd-stdio.c (__stdio_read): Call
|
||||
_hurd_fd_read with new OFFSET argument set to -1.
|
||||
|
@ -20,9 +20,10 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <hurd/fd.h>
|
||||
|
||||
ssize_t
|
||||
__pread (int fd, void *buf, size_t nbyte, off_t offset)
|
||||
__pread (int fd, void *buf, size_t nbytes, off_t offset)
|
||||
{
|
||||
error_t err = HURD_FD_USE (fd, _hurd_fd_read (descriptor,
|
||||
buf, &nbytes, offset));
|
||||
|
@ -20,6 +20,7 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <hurd/fd.h>
|
||||
|
||||
/* Write NBYTES of BUF to FD at given position OFFSET without changing
|
||||
the file position. Return the number written, or -1. */
|
||||
|
Loading…
Reference in New Issue
Block a user