summary refs log tree commit diff
path: root/hurd/fd-read.c
diff options
context:
space:
mode:
Diffstat (limited to 'hurd/fd-read.c')
-rw-r--r--hurd/fd-read.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hurd/fd-read.c b/hurd/fd-read.c
index 8bfc03ab8b..d78cf5c17e 100644
--- a/hurd/fd-read.c
+++ b/hurd/fd-read.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1994, 1995, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1993,94,95,97,99 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -23,7 +23,7 @@
 #include <string.h>
 
 error_t
-_hurd_fd_read (struct hurd_fd *fd, void *buf, size_t *nbytes)
+_hurd_fd_read (struct hurd_fd *fd, void *buf, size_t *nbytes, off_t offset)
 {
   error_t err;
   char *data;
@@ -31,7 +31,7 @@ _hurd_fd_read (struct hurd_fd *fd, void *buf, size_t *nbytes)
 
   error_t readfd (io_t port)
     {
-      return __io_read (port, &data, &nread, -1, *nbytes);
+      return __io_read (port, &data, &nread, offset, *nbytes);
     }
 
   data = buf;