Skip to content

Commit 37db5af

Browse files
author
Jorge Aparicio
committed
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
1 parent 5f527b0 commit 37db5af

File tree

1 file changed

+12
-6
lines changed
  • src/unix/notbsd/linux/musl/b32

1 file changed

+12
-6
lines changed

src/unix/notbsd/linux/musl/b32/x86.rs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,12 @@ s! {
234234
pub st_size: ::off_t,
235235
pub st_blksize: ::blksize_t,
236236
pub st_blocks: ::blkcnt_t,
237-
pub st_atim: ::timespec,
238-
pub st_mtim: ::timespec,
239-
pub st_ctim: ::timespec,
237+
pub st_atime: ::time_t,
238+
pub st_atime_nsec: ::c_long,
239+
pub st_mtime: ::time_t,
240+
pub st_mtime_nsec: ::c_long,
241+
pub st_ctime: ::time_t,
242+
pub st_ctime_nsec: ::c_long,
240243
pub st_ino: ::ino_t,
241244
}
242245

@@ -253,9 +256,12 @@ s! {
253256
pub st_size: ::off_t,
254257
pub st_blksize: ::blksize_t,
255258
pub st_blocks: ::blkcnt_t,
256-
pub st_atim: ::timespec,
257-
pub st_mtim: ::timespec,
258-
pub st_ctim: ::timespec,
259+
pub st_atime: ::time_t,
260+
pub st_atime_nsec: ::c_long,
261+
pub st_mtime: ::time_t,
262+
pub st_mtime_nsec: ::c_long,
263+
pub st_ctime: ::time_t,
264+
pub st_ctime_nsec: ::c_long,
259265
pub st_ino: ::ino_t,
260266
}
261267

0 commit comments

Comments
 (0)