summaryrefslogtreecommitdiffstats
path: root/libc
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2009-06-22 12:16:06 +0200
committerDavid 'Digit' Turner <digit@google.com>2009-06-22 12:16:06 +0200
commit09baf4e881c78e67c7849aa81432ceb34e72e913 (patch)
tree8f029aeb74289dca9e90daec93f81730cf7af3bf /libc
parent9cfccefa055554c7e951741c01373a52a82d3fd6 (diff)
downloadbionic-09baf4e881c78e67c7849aa81432ceb34e72e913.zip
bionic-09baf4e881c78e67c7849aa81432ceb34e72e913.tar.gz
bionic-09baf4e881c78e67c7849aa81432ceb34e72e913.tar.bz2
Add Glibc-compatible macro aliases for the nanosecond time accessors in stat structure
Diffstat (limited to 'libc')
-rw-r--r--libc/include/sys/stat.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libc/include/sys/stat.h b/libc/include/sys/stat.h
index 23ab5ae..091ee6d 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);