summaryrefslogtreecommitdiff
path: root/src/conf
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-08-16 23:23:15 -0400
committerRich Felker <dalias@aerifal.cx>2011-08-16 23:23:15 -0400
commitc0f344160d22d889460573d003cf349626a38184 (patch)
treee973d980a09c7820056d8d5a629ed706042455b8 /src/conf
parent3e082df3cc4c287f659e9067b2b23c7db0855695 (diff)
downloadmusl-c0f344160d22d889460573d003cf349626a38184.tar.gz
musl-c0f344160d22d889460573d003cf349626a38184.tar.bz2
musl-c0f344160d22d889460573d003cf349626a38184.tar.xz
musl-c0f344160d22d889460573d003cf349626a38184.zip
in pathconf, -1, not 0, means unsupported.. syncio presumably works, too.
Diffstat (limited to 'src/conf')
-rw-r--r--src/conf/fpathconf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf/fpathconf.c b/src/conf/fpathconf.c
index f1bcc340..bfbb2742 100644
--- a/src/conf/fpathconf.c
+++ b/src/conf/fpathconf.c
@@ -14,9 +14,9 @@ long fpathconf(int fd, int name)
[_PC_CHOWN_RESTRICTED] = 1,
[_PC_NO_TRUNC] = 1,
[_PC_VDISABLE] = 0,
- [_PC_SYNC_IO] = 0,
- [_PC_ASYNC_IO] = 0,
- [_PC_PRIO_IO] = 0,
+ [_PC_SYNC_IO] = 1,
+ [_PC_ASYNC_IO] = -1,
+ [_PC_PRIO_IO] = -1,
[_PC_SOCK_MAXBUF] = -1,
[_PC_FILESIZEBITS] = FILESIZEBITS,
[_PC_REC_INCR_XFER_SIZE] = PAGE_SIZE,