mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Return __getpagesize () for _PC_PIPE_BUF if PIPE_BUF is not defined.
This commit is contained in:
@ -45,6 +45,13 @@ __fpathconf (fd, name)
|
|||||||
case _PC_2_SYMLINKS:
|
case _PC_2_SYMLINKS:
|
||||||
return __statfs_symlinks (__fstatfs (fd, &fsbuf), &fsbuf);
|
return __statfs_symlinks (__fstatfs (fd, &fsbuf), &fsbuf);
|
||||||
|
|
||||||
|
case _PC_PIPE_BUF:
|
||||||
|
#ifdef PIPE_BUF
|
||||||
|
return PIPE_BUF;
|
||||||
|
#else
|
||||||
|
return __getpagesize ();
|
||||||
|
#endif
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return posix_fpathconf (fd, name);
|
return posix_fpathconf (fd, name);
|
||||||
}
|
}
|
||||||
|
@ -46,6 +46,13 @@ __pathconf (const char *file, int name)
|
|||||||
case _PC_2_SYMLINKS:
|
case _PC_2_SYMLINKS:
|
||||||
return __statfs_symlinks (__statfs (file, &fsbuf), &fsbuf);
|
return __statfs_symlinks (__statfs (file, &fsbuf), &fsbuf);
|
||||||
|
|
||||||
|
case _PC_PIPE_BUF:
|
||||||
|
#ifdef PIPE_BUF
|
||||||
|
return PIPE_BUF;
|
||||||
|
#else
|
||||||
|
return __getpagesize ();
|
||||||
|
#endif
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return posix_pathconf (file, name);
|
return posix_pathconf (file, name);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user