about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/fpathconf.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-08-08 07:08:23 +0000
committerUlrich Drepper <drepper@redhat.com>2003-08-08 07:08:23 +0000
commit1b990bd670519f84341d4e1e470bb577e2b01709 (patch)
tree761d2fc11aae5df4b99373070c53e6d6ddeb829a /sysdeps/unix/sysv/linux/fpathconf.c
parentce0d30a05866818d3db9653b49d0091e39aa0a44 (diff)
downloadglibc-1b990bd670519f84341d4e1e470bb577e2b01709.tar.gz
glibc-1b990bd670519f84341d4e1e470bb577e2b01709.tar.xz
glibc-1b990bd670519f84341d4e1e470bb577e2b01709.zip
Return __getpagesize () for _PC_PIPE_BUF if PIPE_BUF is not defined.
Diffstat (limited to 'sysdeps/unix/sysv/linux/fpathconf.c')
-rw-r--r--sysdeps/unix/sysv/linux/fpathconf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/fpathconf.c b/sysdeps/unix/sysv/linux/fpathconf.c
index c1cdb1b899..8b6fbebbf0 100644
--- a/sysdeps/unix/sysv/linux/fpathconf.c
+++ b/sysdeps/unix/sysv/linux/fpathconf.c
@@ -45,6 +45,13 @@ __fpathconf (fd, name)
     case _PC_2_SYMLINKS:
       return __statfs_symlinks (__fstatfs (fd, &fsbuf), &fsbuf);
 
+    case _PC_PIPE_BUF:
+#ifdef  PIPE_BUF
+      return PIPE_BUF;
+#else
+      return __getpagesize ();
+#endif
+
     default:
       return posix_fpathconf (fd, name);
     }