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.12-58-geb5e79f


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  eb5e79feb71e6a9bf7fcb59a5e2c56ab09a08868 (commit)
       via  8a492a675e566dc1e666df0a86cbf541442cb179 (commit)
      from  713df3d547041fddea30fa78c52dd0615bfd4c24 (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=eb5e79feb71e6a9bf7fcb59a5e2c56ab09a08868

commit eb5e79feb71e6a9bf7fcb59a5e2c56ab09a08868
Merge: 8a492a6 713df3d
Author: Ulrich Drepper <drepper@redhat.com>
Date:   Tue Jul 6 07:49:58 2010 -0700

    Merge branch 'master' of ssh://sourceware.org/git/glibc
    
    Conflicts:
    	ChangeLog

diff --cc ChangeLog
index 946e945,48c62f7..a649f09
--- a/ChangeLog
+++ b/ChangeLog
@@@ -1,8 -1,8 +1,13 @@@
 +2010-07-06  Ulrich Drepper  <drepper@redhat.com>
 +
 +	* sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
 +	_PC_PIPE_BUF using F_GETPIPE_SZ.
 +
+ 2010-07-05  Roland McGrath  <roland@redhat.com>
+ 
+ 	* manual/arith.texi (Rounding Functions): Fix rint description
+ 	implicit in round description.
+ 
  2010-07-02  Ulrich Drepper  <drepper@redhat.com>
  
  	* elf/Makefile: Fix linking for a few tests to make recent linker

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

commit 8a492a675e566dc1e666df0a86cbf541442cb179
Author: Ulrich Drepper <drepper@redhat.com>
Date:   Tue Jul 6 07:48:23 2010 -0700

    Implement _PC_PIPE_BUF.
    
    Now that the kernel has appropriate support we can implement this
    fpathconf command correctly.

diff --git a/ChangeLog b/ChangeLog
index 2bfc912..946e945 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-07-06  Ulrich Drepper  <drepper@redhat.com>
+
+	* sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
+	_PC_PIPE_BUF using F_GETPIPE_SZ.
+
 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
 
 	* elf/Makefile: Fix linking for a few tests to make recent linker
diff --git a/sysdeps/unix/sysv/linux/fpathconf.c b/sysdeps/unix/sysv/linux/fpathconf.c
index 2701c9e..67dc384 100644
--- a/sysdeps/unix/sysv/linux/fpathconf.c
+++ b/sysdeps/unix/sysv/linux/fpathconf.c
@@ -1,5 +1,6 @@
 /* Get file-specific information about descriptor FD.  Linux version.
-   Copyright (C) 1991,1995,1996,1998-2003,2008 Free Software Foundation, Inc.
+   Copyright (C) 1991,1995,1996,1998-2003,2008,2010
+   Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -17,6 +18,7 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
+#include <fcntl.h>
 #include "pathconf.h"
 
 static long int posix_fpathconf (int fd, int name);
@@ -33,6 +35,7 @@ __fpathconf (fd, name)
      int name;
 {
   struct statfs fsbuf;
+  int r;
 
   switch (name)
     {
@@ -48,6 +51,12 @@ __fpathconf (fd, name)
     case _PC_CHOWN_RESTRICTED:
       return __statfs_chown_restricted (__fstatfs (fd, &fsbuf), &fsbuf);
 
+    case _PC_PIPE_BUF:
+      r = fcntl (fd, F_GETPIPE_SZ);
+      if (r > 0)
+	return r;
+      /* FALLTHROUGH */
+
     default:
       return posix_fpathconf (fd, name);
     }

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

Summary of changes:
 ChangeLog                           |    5 +++++
 sysdeps/unix/sysv/linux/fpathconf.c |   11 ++++++++++-
 2 files changed, 15 insertions(+), 1 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]