diff options
author | Martin Szulecki | 2013-11-12 12:43:13 +0100 |
---|---|---|
committer | Martin Szulecki | 2013-11-12 13:01:55 +0100 |
commit | aafc9ed570e0889c53abf20dfec9a00b45b410a7 (patch) | |
tree | ca85d628fefbb50ca6bf1d98bf0d1ae40cce7a94 | |
parent | 535964125364db8d2567fee61656ff389d593acb (diff) | |
download | ifuse-aafc9ed570e0889c53abf20dfec9a00b45b410a7.tar.gz ifuse-aafc9ed570e0889c53abf20dfec9a00b45b410a7.tar.bz2 |
Add experimental support for "st_birthtime" on darwin
-rw-r--r-- | src/ifuse.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ifuse.c b/src/ifuse.c index 9fafb47..2db42c7 100644 --- a/src/ifuse.c +++ b/src/ifuse.c @@ -250,6 +250,11 @@ static int ifuse_getattr(const char *path, struct stat *stbuf) } else if (!strcmp(info[i], "st_mtime")) { stbuf->st_mtime = (time_t)(atoll(info[i+1]) / 1000000000); } +#ifdef _DARWIN_FEATURE_64_BIT_INODE + else if (!strcmp(info[i], "st_birthtime")) { /* available on iOS 7+ */ + stbuf->st_birthtimespec = (time_t)(atoll(info[i+1]) / 1000000000); + } +#endif } free_dictionary(info); |