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.11-17-gfabe43a


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  fabe43aba8fb46614eb2a74b2916bfbbf8fec10e (commit)
       via  f9a7bd536e0b1693db32e1330bbd96108ca63c42 (commit)
       via  5ec794b4b537bc507010af28d2d93bb76d0972ac (commit)
      from  0079dd2382eba185d22410a1d3088dc7146bc00a (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://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=fabe43aba8fb46614eb2a74b2916bfbbf8fec10e

commit fabe43aba8fb46614eb2a74b2916bfbbf8fec10e
Author: Mike Frsyinger <vapier@gentoo.org>
Date:   Sat Nov 14 19:16:49 2009 -0800

    Missing CL.

diff --git a/ChangeLog b/ChangeLog
index dfd4a72..a3c626c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-11-09  Mike Frysinger  <vapier@gentoo.org>
+
+	* sysdeps/unix/sysv/linux/i386/fallocate.c: Include errno.h.
+	(fallocate): Return ENOSYS if __NR_fallocate is not defined.
+	* sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
+
 2009-11-06  Mike Frsyinger  <vapier@gentoo.org>
 
 	* posix/bug-regex29.c: Include stdio.h.

http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=f9a7bd536e0b1693db32e1330bbd96108ca63c42

commit f9a7bd536e0b1693db32e1330bbd96108ca63c42
Author: Mike Frsyinger <vapier@gentoo.org>
Date:   Sat Nov 14 19:16:01 2009 -0800

    Fix building on x86 with older kernel headers.
    
    Fix building on x86 when older linux headers lack __NR_fallocate define.

diff --git a/sysdeps/unix/sysv/linux/i386/fallocate.c b/sysdeps/unix/sysv/linux/i386/fallocate.c
index 7a943e4..14e7883 100644
--- a/sysdeps/unix/sysv/linux/i386/fallocate.c
+++ b/sysdeps/unix/sysv/linux/i386/fallocate.c
@@ -16,6 +16,7 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
+#include <errno.h>
 #include <fcntl.h>
 #include <sysdep.h>
 
@@ -28,5 +29,10 @@ extern int __call_fallocate (int fd, int mode, __off64_t offset, __off64_t len)
 int
 fallocate (int fd, int mode, __off_t offset, __off_t len)
 {
+#ifdef __NR_fallocate
   return __call_fallocate (fd, mode, offset, len);
+#else
+  __set_errno (ENOSYS);
+  return -1;
+#endif
 }
diff --git a/sysdeps/unix/sysv/linux/i386/fallocate64.c b/sysdeps/unix/sysv/linux/i386/fallocate64.c
index 4998f5e..85f315c 100644
--- a/sysdeps/unix/sysv/linux/i386/fallocate64.c
+++ b/sysdeps/unix/sysv/linux/i386/fallocate64.c
@@ -16,6 +16,7 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
+#include <errno.h>
 #include <fcntl.h>
 #include <sysdep.h>
 
@@ -28,5 +29,10 @@ extern int __call_fallocate (int fd, int mode, __off64_t offset, __off64_t len)
 int
 fallocate64 (int fd, int mode, __off64_t offset, __off64_t len)
 {
+#ifdef __NR_fallocate
   return __call_fallocate (fd, mode, offset, len);
+#else
+  __set_errno (ENOSYS);
+  return -1;
+#endif
 }

http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=5ec794b4b537bc507010af28d2d93bb76d0972ac

commit 5ec794b4b537bc507010af28d2d93bb76d0972ac
Author: Mike Frsyinger <vapier@gentoo.org>
Date:   Sat Nov 14 19:11:44 2009 -0800

    Add missing stdio.h include.

diff --git a/ChangeLog b/ChangeLog
index 2939a2a..dfd4a72 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-11-06  Mike Frsyinger  <vapier@gentoo.org>
+
+	* posix/bug-regex29.c: Include stdio.h.
+
 2009-11-14  Ulrich Drepper  <drepper@redhat.com>
 
 	[BZ #10939]
diff --git a/posix/bug-regex29.c b/posix/bug-regex29.c
index bd796c6..cfc9f99 100644
--- a/posix/bug-regex29.c
+++ b/posix/bug-regex29.c
@@ -1,4 +1,5 @@
 #include <regex.h>
+#include <stdio.h>
 
 static int
 do_test (void)

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

Summary of changes:
 ChangeLog                                  |   10 ++++++++++
 posix/bug-regex29.c                        |    1 +
 sysdeps/unix/sysv/linux/i386/fallocate.c   |    6 ++++++
 sysdeps/unix/sysv/linux/i386/fallocate64.c |    6 ++++++
 4 files changed, 23 insertions(+), 0 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]