This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.21-285-g2dd6ee7


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  2dd6ee79b19ccfdd7f68cd534b8b71f77479132b (commit)
      from  c25fec6f57a9f1901c8a11eb51c8318bb86d47b9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=2dd6ee79b19ccfdd7f68cd534b8b71f77479132b

commit 2dd6ee79b19ccfdd7f68cd534b8b71f77479132b
Author: Florian Weimer <fweimer@redhat.com>
Date:   Fri Apr 24 13:18:48 2015 +0200

    posix_fallocate, posix_fallocate64 stub: Do not set errno
    
    These functions return an error code.

diff --git a/ChangeLog b/ChangeLog
index 2811c82..7d3e69e 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 e16c900..8eefc62 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 a5ffb7f..05922d1 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)

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog              |    5 +++++
 io/posix_fallocate.c   |    3 +--
 io/posix_fallocate64.c |    3 +--
 3 files changed, 7 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]