From 878edcefb8ae74fb0c1647ccd6dc9538f7bd44c9 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sat, 16 Aug 2003 16:12:14 +0000 Subject: * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS instead of setting errno. * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise. 2003-08-16 Jakub Jelinek , Andreas Jaeger * sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS instead of setting errno. * sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise. --- sysdeps/generic/posix_fadvise.c | 3 +-- sysdeps/generic/posix_fadvise64.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'sysdeps/generic') diff --git a/sysdeps/generic/posix_fadvise.c b/sysdeps/generic/posix_fadvise.c index 65e2cc4c2c..92f8bb8974 100644 --- a/sysdeps/generic/posix_fadvise.c +++ b/sysdeps/generic/posix_fadvise.c @@ -25,8 +25,7 @@ int posix_fadvise (int fd, __off_t offset, __off_t len, int advise) { - __set_errno (ENOSYS); - return -1; + return ENOSYS; } stub_warning (posix_fadvise) #include diff --git a/sysdeps/generic/posix_fadvise64.c b/sysdeps/generic/posix_fadvise64.c index 44efd3587b..e7eae5e6e3 100644 --- a/sysdeps/generic/posix_fadvise64.c +++ b/sysdeps/generic/posix_fadvise64.c @@ -25,8 +25,7 @@ int posix_fadvise64 (int fd, __off64_t offset, __off64_t len, int advise) { - __set_errno (ENOSYS); - return -1; + return ENOSYS; } stub_warning (posix_fadvise64) #include -- cgit 1.4.1