aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic/pread.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/pread.c')
-rw-r--r--sysdeps/generic/pread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/generic/pread.c b/sysdeps/generic/pread.c
index 5fdaf7b..82548d0 100644
--- a/sysdeps/generic/pread.c
+++ b/sysdeps/generic/pread.c
@@ -22,7 +22,7 @@
/* Read NBYTES into BUF from FD at the given position OFFSET without
changing the file pointer. Return the number read or -1. */
ssize_t
-pread (int fd, void *buf, size_t nbytes, off_t offset)
+__pread (int fd, void *buf, size_t nbytes, off_t offset)
{
if (nbytes == 0)
return 0;
@@ -40,5 +40,6 @@ pread (int fd, void *buf, size_t nbytes, off_t offset)
__set_errno (ENOSYS);
return -1;
}
+weak_alias (__pread, pread)
stub_warning (pread)
#include <stub-tag.h>