diff options
Diffstat (limited to 'sysdeps/mach/hurd/sysd-stdio.c')
-rw-r--r-- | sysdeps/mach/hurd/sysd-stdio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/sysd-stdio.c b/sysdeps/mach/hurd/sysd-stdio.c index d12804a4a0..fea9b56a96 100644 --- a/sysdeps/mach/hurd/sysd-stdio.c +++ b/sysdeps/mach/hurd/sysd-stdio.c @@ -61,7 +61,7 @@ __stdio_read (cookie, buf, n) if (! fd) return __hurd_fail (EBADF); - if (err = _hurd_fd_read (fd, buf, &n)) + if (err = _hurd_fd_read (fd, buf, &n, -1)) return fd_fail (fd, err); return n; @@ -86,7 +86,7 @@ __stdio_write (cookie, buf, n) do { wrote = nleft; - if (err = _hurd_fd_write (fd, buf, &wrote)) + if (err = _hurd_fd_write (fd, buf, &wrote, -1)) return fd_fail (fd, err); buf += wrote; nleft -= wrote; |