From 09baf4e881c78e67c7849aa81432ceb34e72e913 Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Mon, 22 Jun 2009 12:16:06 +0200 Subject: [PATCH] Add Glibc-compatible macro aliases for the nanosecond time accessors in stat structure --- libc/include/sys/stat.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libc/include/sys/stat.h b/libc/include/sys/stat.h index 23ab5aeec..091ee6d5e 100644 --- a/libc/include/sys/stat.h +++ b/libc/include/sys/stat.h @@ -71,6 +71,13 @@ struct stat { unsigned long long st_ino; }; +/* For compatibility with GLibc, we provide macro aliases + * for the non-Posix nano-seconds accessors. + */ +#define st_atimensec st_atime_nsec +#define st_mtimensec st_mtime_nsec +#define st_ctimensec st_ctime_nsec + extern int chmod(const char *, mode_t); extern int fchmod(int, mode_t); extern int mkdir(const char *, mode_t); -- 2.11.0