1999-06-23 Roland McGrath <roland@baalperazim.frob.com>
authorRoland McGrath <roland@gnu.org>
Tue, 22 Jun 1999 23:54:48 +0000 (23:54 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 22 Jun 1999 23:54:48 +0000 (23:54 +0000)
* sysdeps/mach/hurd/read.c (__libc_read): Just call __pread with
OFFSET argument of (off_t) -1.
* sysdeps/mach/hurd/write.c (__libc_write): Just call __pwrite with
OFFSET argument of (off_t) -1.

sysdeps/mach/hurd/read.c
sysdeps/mach/hurd/write.c

index f6d8f39..7e2b880 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1994, 1995, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1993,94,95,97,98,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
@@ -25,8 +25,7 @@
 ssize_t
 __libc_read (int fd, void *buf, size_t nbytes)
 {
-  error_t err = HURD_FD_USE (fd, _hurd_fd_read (descriptor, buf, &nbytes));
-  return err ? __hurd_dfail (fd, err) : nbytes;
+  return __pread (fd, buf, nbytes, (off_t) -1);
 }
 
 weak_alias (__libc_read, __read)
index 7cd715e..b019cf2 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 92, 93, 94, 95, 97, 98 Free Software Foundation, Inc.
+/* Copyright (C) 1991,92,93,94,95,97,98,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
@@ -24,8 +24,7 @@
 ssize_t
 __libc_write (int fd, const void *buf, size_t nbytes)
 {
-  error_t err = HURD_FD_USE (fd, _hurd_fd_write (descriptor, buf, &nbytes));
-  return err ? __hurd_dfail (fd, err) : nbytes;
+  return __pread (fd, buf, nbytes, (off_t) -1);
 }
 
 weak_alias (__libc_write, __write)