about summary refs log tree commit diff
path: root/io
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2015-04-24 13:18:48 +0200
committerFlorian Weimer <fweimer@redhat.com>2015-04-24 20:08:43 +0200
commit2dd6ee79b19ccfdd7f68cd534b8b71f77479132b (patch)
tree9bad4380311a7bdd1691fb10f1bed9d48b2ea74f /io
parentc25fec6f57a9f1901c8a11eb51c8318bb86d47b9 (diff)
downloadglibc-2dd6ee79b19ccfdd7f68cd534b8b71f77479132b.tar.gz
glibc-2dd6ee79b19ccfdd7f68cd534b8b71f77479132b.tar.xz
glibc-2dd6ee79b19ccfdd7f68cd534b8b71f77479132b.zip
posix_fallocate, posix_fallocate64 stub: Do not set errno
These functions return an error code.
Diffstat (limited to 'io')
-rw-r--r--io/posix_fallocate.c3
-rw-r--r--io/posix_fallocate64.c3
2 files changed, 2 insertions, 4 deletions
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)