diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-03-07 12:15:08 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-03-07 12:15:08 +0530 |
commit | adbb8027be47b3295367019b2f45863ea3d6c727 (patch) | |
tree | cf38120198fca9e5ac227d8404e97fe38bcd6b30 /sysdeps/unix/sysv/linux/pathconf.c | |
parent | 87bd9bc4bd2a49a441bb9ba744c9ddb0c9434823 (diff) | |
download | glibc-adbb8027be47b3295367019b2f45863ea3d6c727.tar.gz glibc-adbb8027be47b3295367019b2f45863ea3d6c727.tar.xz glibc-adbb8027be47b3295367019b2f45863ea3d6c727.zip |
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.
Diffstat (limited to 'sysdeps/unix/sysv/linux/pathconf.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/pathconf.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sysdeps/unix/sysv/linux/pathconf.c b/sysdeps/unix/sysv/linux/pathconf.c index edc691e966..de91a4541b 100644 --- a/sysdeps/unix/sysv/linux/pathconf.c +++ b/sysdeps/unix/sysv/linux/pathconf.c @@ -39,8 +39,6 @@ long int __pathconf (const char *file, int name) { struct statfs fsbuf; - int fd; - int flags; switch (name) { @@ -56,21 +54,6 @@ __pathconf (const char *file, int name) case _PC_CHOWN_RESTRICTED: return __statfs_chown_restricted (__statfs (file, &fsbuf), &fsbuf); - case _PC_PIPE_BUF: - flags = O_RDONLY|O_NONBLOCK|O_NOCTTY; -#ifdef O_CLOEXEC - flags |= O_CLOEXEC; -#endif - fd = open_not_cancel_2 (file, flags); - if (fd >= 0) - { - long int r = __fcntl (fd, F_GETPIPE_SZ); - close_not_cancel_no_status (fd); - if (r > 0) - return r; - } - /* FALLTHROUGH */ - default: return posix_pathconf (file, name); } |