summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/unistd.h1
-rw-r--r--src/conf/fpathconf.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 68686dfd..1bdd3292 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -274,6 +274,7 @@ int eaccess(const char *, int);
#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 8eb037e6..1eefac18 100644
--- a/src/conf/fpathconf.c
+++ b/src/conf/fpathconf.c
@@ -25,7 +25,8 @@ long fpathconf(int fd, int name)
[_PC_REC_XFER_ALIGN] = 4096,
[_PC_ALLOC_SIZE_MIN] = 4096,
[_PC_SYMLINK_MAX] = SYMLINK_MAX,
- [_PC_2_SYMLINKS] = 1
+ [_PC_2_SYMLINKS] = 1,
+ [_PC_TIMESTAMP_RESOLUTION] = 1000000,
};
if (name >= sizeof(values)/sizeof(values[0])) {
errno = EINVAL;