From aafc9ed570e0889c53abf20dfec9a00b45b410a7 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Tue, 12 Nov 2013 12:43:13 +0100 Subject: Add experimental support for "st_birthtime" on darwin --- src/ifuse.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- cgit v1.1-32-gdbae