diff options
-rw-r--r-- | include/unistd.h | 1 | ||||
-rw-r--r-- | src/conf/fpathconf.c | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/unistd.h b/include/unistd.h index cfd91279..0ee0e922 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -282,6 +282,7 @@ pid_t gettid(void); #define _PC_ALLOC_SIZE_MIN 18 #define _PC_SYMLINK_MAX 19 #define _PC_2_SYMLINKS 20 +#define _PC_TIMESTAMP_RESOLUTION 21 #define _SC_ARG_MAX 0 #define _SC_CHILD_MAX 1 diff --git a/src/conf/fpathconf.c b/src/conf/fpathconf.c index e6aca5cf..b6a9d63e 100644 --- a/src/conf/fpathconf.c +++ b/src/conf/fpathconf.c @@ -4,7 +4,7 @@ long fpathconf(int fd, int name) { - static const short values[] = { + static const long values[] = { [_PC_LINK_MAX] = _POSIX_LINK_MAX, [_PC_MAX_CANON] = _POSIX_MAX_CANON, [_PC_MAX_INPUT] = _POSIX_MAX_INPUT, @@ -25,7 +25,8 @@ long fpathconf(int fd, int name) [_PC_REC_XFER_ALIGN] = 4096, [_PC_ALLOC_SIZE_MIN] = 4096, [_PC_SYMLINK_MAX] = -1, - [_PC_2_SYMLINKS] = 1 + [_PC_2_SYMLINKS] = 1, + [_PC_TIMESTAMP_RESOLUTION] = 100000000, }; if (name >= sizeof(values)/sizeof(values[0])) { errno = EINVAL; |