]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Return __getpagesize () for _PC_PIPE_BUF if PIPE_BUF is not defined.
authorUlrich Drepper <drepper@redhat.com>
Fri, 8 Aug 2003 07:08:23 +0000 (07:08 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 8 Aug 2003 07:08:23 +0000 (07:08 +0000)
sysdeps/unix/sysv/linux/fpathconf.c
sysdeps/unix/sysv/linux/pathconf.c

index c1cdb1b8996e0bea0e30714b20bcbf58762d6335..8b6fbebbf0aa9c7316340285e78d9feb856e4991 100644 (file)
@@ -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);
     }
index d4159753a6262f85d2a18ac9d45bdebee27b5cd0..1e0679343f8ce3f429c7d01c6d6c4512aa3dee55 100644 (file)
@@ -46,6 +46,13 @@ __pathconf (const char *file, int name)
     case _PC_2_SYMLINKS:
       return __statfs_symlinks (__statfs (file, &fsbuf), &fsbuf);
 
+    case _PC_PIPE_BUF:
+#ifdef  PIPE_BUF
+      return PIPE_BUF;
+#else
+      return __getpagesize ();
+#endif
+
     default:
       return posix_pathconf (file, name);
     }