about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/fpathconf.c
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2013-03-07 12:15:08 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2013-03-07 12:15:08 +0530
commitadbb8027be47b3295367019b2f45863ea3d6c727 (patch)
treecf38120198fca9e5ac227d8404e97fe38bcd6b30 /sysdeps/unix/sysv/linux/fpathconf.c
parent87bd9bc4bd2a49a441bb9ba744c9ddb0c9434823 (diff)
downloadglibc-adbb8027be47b3295367019b2f45863ea3d6c727.tar.gz
glibc-adbb8027be47b3295367019b2f45863ea3d6c727.tar.xz
glibc-adbb8027be47b3295367019b2f45863ea3d6c727.zip
Remove PIPE_BUF Linux-specific code
Fixes BZ #12723

The variable pipe buffer size does nothing to the value of PIPE_BUF,
since the number of bytes that are atomically written is still
PIPE_BUF on Linux.
Diffstat (limited to 'sysdeps/unix/sysv/linux/fpathconf.c')
-rw-r--r--sysdeps/unix/sysv/linux/fpathconf.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sysdeps/unix/sysv/linux/fpathconf.c b/sysdeps/unix/sysv/linux/fpathconf.c
index c97164468e..e8c4dc972d 100644
--- a/sysdeps/unix/sysv/linux/fpathconf.c
+++ b/sysdeps/unix/sysv/linux/fpathconf.c
@@ -33,7 +33,6 @@ __fpathconf (fd, name)
      int name;
 {
   struct statfs fsbuf;
-  int r;
 
   switch (name)
     {
@@ -49,12 +48,6 @@ __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);
     }