summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2003-08-16 16:12:14 +0000
committerAndreas Jaeger <aj@suse.de>2003-08-16 16:12:14 +0000
commit878edcefb8ae74fb0c1647ccd6dc9538f7bd44c9 (patch)
tree2d7c0df9b077023a0d66dc9f3031c571afbd9212
parent4a4ac20bb6e65bea9a12d7d02d3d91995c73bf4e (diff)
downloadglibc-878edcefb8ae74fb0c1647ccd6dc9538f7bd44c9.tar.gz
glibc-878edcefb8ae74fb0c1647ccd6dc9538f7bd44c9.tar.xz
glibc-878edcefb8ae74fb0c1647ccd6dc9538f7bd44c9.zip
* 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 <jakub@redhat.com>,
	    Andreas Jaeger  <aj@suse.de>

	* sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
	instead of setting errno.
	* sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
-rw-r--r--ChangeLog7
-rw-r--r--sysdeps/generic/posix_fadvise.c3
-rw-r--r--sysdeps/generic/posix_fadvise64.c3
3 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index acc25e7c68..ad4c44daec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-08-16  Jakub Jelinek <jakub@redhat.com>,
+	    Andreas Jaeger  <aj@suse.de>
+
+	* sysdeps/generic/posix_fadvise.c (posix_fadvise): Return ENOSYS
+	instead of setting errno.
+	* sysdeps/generic/posix_fadvise64.c (posix_fadvise64): Likewise.
+
 2003-08-16  Andreas Jaeger  <aj@suse.de>
 
 	* sysdeps/generic/posix_fadvise.c (posix_fadvise): Adjust prototype.
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 <stub-tag.h>
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 <stub-tag.h>