about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--io/posix_fallocate.c3
-rw-r--r--io/posix_fallocate64.c3
3 files changed, 7 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 2811c8257b..7d3e69efb0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-04-24  Florian Weimer  <fweimer@redhat.com>
+
+	* io/posix_fallocate.c (posix_fallocate): Do not set errno.
+	* io/posix_fallocate64.c (posix_fallocate64): Likewise.
+
 2015-04-24  Roland McGrath  <roland@hack.frob.com>
 
 	* sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
diff --git a/io/posix_fallocate.c b/io/posix_fallocate.c
index e16c900d25..8eefc625fc 100644
--- a/io/posix_fallocate.c
+++ b/io/posix_fallocate.c
@@ -23,7 +23,6 @@
 int
 posix_fallocate (int fd, __off_t offset, __off_t len)
 {
-  __set_errno (ENOSYS);
-  return -1;
+  return ENOSYS;
 }
 stub_warning (posix_fallocate)
diff --git a/io/posix_fallocate64.c b/io/posix_fallocate64.c
index a5ffb7fa00..05922d16e6 100644
--- a/io/posix_fallocate64.c
+++ b/io/posix_fallocate64.c
@@ -23,7 +23,6 @@
 int
 posix_fallocate64 (int fd, __off64_t offset, __off64_t len)
 {
-  __set_errno (ENOSYS);
-  return -1;
+  return ENOSYS;
 }
 stub_warning (posix_fallocate64)