diff options
Diffstat (limited to 'sysdeps/posix/readv.c')
-rw-r--r-- | sysdeps/posix/readv.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sysdeps/posix/readv.c b/sysdeps/posix/readv.c index 878accaf92..e4a2163f6d 100644 --- a/sysdeps/posix/readv.c +++ b/sysdeps/posix/readv.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992, 1996 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1992, 1996, 1997 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 @@ -27,7 +27,7 @@ Operates just like `read' (see <unistd.h>) except that data are put in VECTOR instead of a contiguous buffer. */ ssize_t -readv (fd, vector, count) +__readv (fd, vector, count) int fd; const struct iovec *vector; int count; @@ -46,7 +46,7 @@ readv (fd, vector, count) buffer = (char *) __alloca (bytes); /* Read the data. */ - bytes_read = read (fd, buffer, bytes); + bytes_read = __read (fd, buffer, bytes); if (bytes_read <= 0) return -1; @@ -67,3 +67,6 @@ readv (fd, vector, count) return bytes_read; } +#ifndef __readv +weak_alias (__readv, readv) +#endif |