summaryrefslogtreecommitdiffstats
path: root/libc/bionic/pathconf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/bionic/pathconf.cpp')
-rw-r--r--libc/bionic/pathconf.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/libc/bionic/pathconf.cpp b/libc/bionic/pathconf.cpp
index de9e022..e6f5742 100644
--- a/libc/bionic/pathconf.cpp
+++ b/libc/bionic/pathconf.cpp
@@ -100,12 +100,16 @@ static long __pathconf(const struct statfs& s, int name) {
case _PC_2_SYMLINKS:
return __2_symlinks(s);
+ case _PC_ALLOC_SIZE_MIN: /* fall through */
+ case _PC_REC_XFER_ALIGN:
+ return s.f_frsize;
+
+ case _PC_REC_MIN_XFER_SIZE:
+ return s.f_bsize;
+
#if 0
- case _PC_ALLOC_SIZE_MIN:
case _PC_REC_INCR_XFER_SIZE:
case _PC_REC_MAX_XFER_SIZE:
- case _PC_REC_MIN_XFER_SIZE:
- case _PC_REC_XFER_ALIGN:
#endif
case _PC_SYMLINK_MAX: