summaryrefslogtreecommitdiffstats
path: root/libc
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2009-06-22 09:56:46 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-06-22 09:56:46 -0700
commitfc90c51f72a669ec3be951cace1a013d3b43c9f8 (patch)
tree396f368eb67e085bdc56e52f71fb8bb82db5fdfb /libc
parent25e3c334888ea7ca77f2a87e9e7cb4654ed4d5ef (diff)
parent09baf4e881c78e67c7849aa81432ceb34e72e913 (diff)
downloadbionic-fc90c51f72a669ec3be951cace1a013d3b43c9f8.zip
bionic-fc90c51f72a669ec3be951cace1a013d3b43c9f8.tar.gz
bionic-fc90c51f72a669ec3be951cace1a013d3b43c9f8.tar.bz2
am 09baf4e8: Add Glibc-compatible macro aliases for the nanosecond time accessors in stat structure
Merge commit '09baf4e881c78e67c7849aa81432ceb34e72e913' * commit '09baf4e881c78e67c7849aa81432ceb34e72e913': 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);