]> sourceware.org Git - glibc.git/commitdiff
posix_fallocate, posix_fallocate64 stub: Do not set errno
authorFlorian Weimer <fweimer@redhat.com>
Fri, 24 Apr 2015 11:18:48 +0000 (13:18 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 24 Apr 2015 18:08:43 +0000 (20:08 +0200)
These functions return an error code.

ChangeLog
io/posix_fallocate.c
io/posix_fallocate64.c

index 2811c8257b378ff4b0df44b9c1ec9e6a45c32f4a..7d3e69efb06e54a1f8bd7600710cc9b6ae42d465 100644 (file)
--- 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.
index e16c900d2545d999968b9b0eb31b7c5bb360347b..8eefc625fcbdaa59fb4e6a0d6c917e1bbc699add 100644 (file)
@@ -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)
index a5ffb7fa000cb1b2b0a74887058bf1c2c6b59d39..05922d16e6403da41d8e40092d9c9af9b838b750 100644 (file)
@@ -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)
This page took 0.105747 seconds and 5 git commands to generate.