summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-11-12 12:43:13 +0100
committerGravatar Martin Szulecki2013-11-12 13:01:55 +0100
commitaafc9ed570e0889c53abf20dfec9a00b45b410a7 (patch)
treeca85d628fefbb50ca6bf1d98bf0d1ae40cce7a94 /src
parent535964125364db8d2567fee61656ff389d593acb (diff)
downloadifuse-aafc9ed570e0889c53abf20dfec9a00b45b410a7.tar.gz
ifuse-aafc9ed570e0889c53abf20dfec9a00b45b410a7.tar.bz2
Add experimental support for "st_birthtime" on darwin
Diffstat (limited to 'src')
-rw-r--r--src/ifuse.c5
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);