summaryrefslogtreecommitdiff
path: root/hurd/fopenport.c
diff options
context:
space:
mode:
Diffstat (limited to 'hurd/fopenport.c')
-rw-r--r--hurd/fopenport.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/hurd/fopenport.c b/hurd/fopenport.c
index 869b3917bf..5dcb5ab30a 100644
--- a/hurd/fopenport.c
+++ b/hurd/fopenport.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994,95,97,2000,01 Free Software Foundation, Inc.
+/* Copyright (C) 1994,95,97,2000,01,02 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
@@ -70,23 +70,8 @@ seekio (void *cookie,
#endif
int whence)
{
- off_t res;
- error_t error;
-
- /* XXX We don't really support large files on the Hurd. So if POS
- doesn't fit in an `off_t', we'll return `-1' and set errno. EOVERFLOW
- probably isn't the right error value, but seems appropriate here. */
- if ((off_t) *pos != *pos)
- {
- __set_errno (EOVERFLOW);
- return -1;
- }
-
- error = __io_seek ((file_t) cookie, *pos, whence, &res);
- if (error)
- return __hurd_fail (error);
- *pos = res;
- return 0;
+ error_t err = __io_seek ((file_t) cookie, *pos, whence, pos);
+ return err ? __hurd_fail (err) : 0;
}
/* Close the file associated with COOKIE.