fix bug whereby most atexit-registered functions got skipped
[musl] / src / conf / fpathconf.c
index af7e4d3..bfbb274 100644 (file)
@@ -14,11 +14,11 @@ 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] = sizeof(off_t),
+               [_PC_FILESIZEBITS] = FILESIZEBITS,
                [_PC_REC_INCR_XFER_SIZE] = PAGE_SIZE,
                [_PC_REC_MAX_XFER_SIZE] = PAGE_SIZE,
                [_PC_REC_MIN_XFER_SIZE] = PAGE_SIZE,