Return __getpagesize () for _PC_PIPE_BUF if PIPE_BUF is not defined.

This commit is contained in:
Ulrich Drepper 2003-08-08 07:08:23 +00:00
parent ce0d30a058
commit 1b990bd670
2 changed files with 14 additions and 0 deletions

View 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);
}

View 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);
}