OSDN Git Service
(root)
/
android-x86
/
bionic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cfccef
)
Add Glibc-compatible macro aliases for the nanosecond time accessors in stat structure
author
David 'Digit' Turner
<digit@google.com>
Mon, 22 Jun 2009 10:16:06 +0000
(12:16 +0200)
committer
David 'Digit' Turner
<digit@google.com>
Mon, 22 Jun 2009 10:16:06 +0000
(12:16 +0200)
libc/include/sys/stat.h
patch
|
blob
|
history
diff --git
a/libc/include/sys/stat.h
b/libc/include/sys/stat.h
index
23ab5ae
..
091ee6d
100644
(file)
--- 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);