diff options
author | Jorge Aparicio <japaricious@gmail.com> | 2016-03-06 08:12:22 -0500 |
---|---|---|
committer | Jorge Aparicio <japaricious@gmail.com> | 2016-03-06 08:12:22 -0500 |
commit | 37db5af016198766eccdfd3a63e7e298cfe25840 (patch) | |
tree | aab6fcf09c4fbb9166bd51eee2807cde22289727 | |
parent | 5f527b07f4e2e861ffb18009eb822b9ac6e0ced2 (diff) | |
download | rust-libc-37db5af016198766eccdfd3a63e7e298cfe25840.tar.gz |
i686-musl: split timespec fields into (time_t, c_long) pairs
This is how MetadaExt expects these fields to be named.
See https://github.com/rust-lang/rust/blob/c116ae35cf49b55bd8d82e31f1ba030cf7e63867/src/libstd/os/linux/fs.rs#L107-L121
-rw-r--r-- | src/unix/notbsd/linux/musl/b32/x86.rs | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/unix/notbsd/linux/musl/b32/x86.rs b/src/unix/notbsd/linux/musl/b32/x86.rs index e34997a472..a8c5e3921d 100644 --- a/src/unix/notbsd/linux/musl/b32/x86.rs +++ b/src/unix/notbsd/linux/musl/b32/x86.rs @@ -234,9 +234,12 @@ s! { pub st_size: ::off_t, pub st_blksize: ::blksize_t, pub st_blocks: ::blkcnt_t, - pub st_atim: ::timespec, - pub st_mtim: ::timespec, - pub st_ctim: ::timespec, + pub st_atime: ::time_t, + pub st_atime_nsec: ::c_long, + pub st_mtime: ::time_t, + pub st_mtime_nsec: ::c_long, + pub st_ctime: ::time_t, + pub st_ctime_nsec: ::c_long, pub st_ino: ::ino_t, } @@ -253,9 +256,12 @@ s! { pub st_size: ::off_t, pub st_blksize: ::blksize_t, pub st_blocks: ::blkcnt_t, - pub st_atim: ::timespec, - pub st_mtim: ::timespec, - pub st_ctim: ::timespec, + pub st_atime: ::time_t, + pub st_atime_nsec: ::c_long, + pub st_mtime: ::time_t, + pub st_mtime_nsec: ::c_long, + pub st_ctime: ::time_t, + pub st_ctime_nsec: ::c_long, pub st_ino: ::ino_t, } |