mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
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.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user