aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/posix_fadvise.c3
-rw-r--r--sysdeps/generic/posix_fadvise64.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/sysdeps/generic/posix_fadvise.c b/sysdeps/generic/posix_fadvise.c
index 65e2cc4..92f8bb8 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 <stub-tag.h>
diff --git a/sysdeps/generic/posix_fadvise64.c b/sysdeps/generic/posix_fadvise64.c
index 44efd35..e7eae5e 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 <stub-tag.h>