-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gnu: Move struct timex to gnu/b64 and gnu/b32/time*.rs
Do not use gnu/b32/time*.rs for riscv32 and sparc. Add timex to gnu/b32/(riscv32|sparc)/mod.rs instead.
- Loading branch information
Showing
7 changed files
with
210 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
//! 32-bit specific definitions for linux-like values when gnu_time64_abi is not set | ||
|
||
s! { | ||
pub struct timex { | ||
pub modes: ::c_uint, | ||
|
||
pub offset: ::__syscall_slong_t, | ||
pub freq: ::__syscall_slong_t, | ||
pub maxerror: ::__syscall_slong_t, | ||
pub esterror: ::__syscall_slong_t, | ||
pub status: ::c_int, | ||
pub constant: ::__syscall_slong_t, | ||
pub precision: ::__syscall_slong_t, | ||
pub tolerance: ::__syscall_slong_t, | ||
pub time: ::timeval, | ||
pub tick: ::__syscall_slong_t, | ||
pub ppsfreq: ::__syscall_slong_t, | ||
pub jitter: ::__syscall_slong_t, | ||
pub shift: ::c_int, | ||
pub stabil: ::__syscall_slong_t, | ||
pub jitcnt: ::__syscall_slong_t, | ||
pub calcnt: ::__syscall_slong_t, | ||
pub errcnt: ::__syscall_slong_t, | ||
pub stbcnt: ::__syscall_slong_t, | ||
pub tai: ::c_int, | ||
pub __unused1: i32, | ||
pub __unused2: i32, | ||
pub __unused3: i32, | ||
pub __unused4: i32, | ||
pub __unused5: i32, | ||
pub __unused6: i32, | ||
pub __unused7: i32, | ||
pub __unused8: i32, | ||
pub __unused9: i32, | ||
pub __unused10: i32, | ||
pub __unused11: i32, | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
//! 32-bit specific definitions for linux-like values when gnu_time64_abi is set | ||
|
||
s! { | ||
pub struct timex { | ||
pub modes: ::c_uint, | ||
|
||
__unused_pad1: i32, | ||
pub offset: ::c_longlong, | ||
pub freq: ::c_longlong, | ||
pub maxerror: ::c_longlong, | ||
pub esterror: ::c_longlong, | ||
pub status: ::c_int, | ||
__unused_pad2: i32, | ||
pub constant: ::c_longlong, | ||
pub precision: ::c_longlong, | ||
pub tolerance: ::c_longlong, | ||
pub time: ::timeval, | ||
pub tick: ::c_longlong, | ||
pub ppsfreq: ::c_longlong, | ||
pub jitter: ::c_longlong, | ||
pub shift: ::c_int, | ||
__unused_pad3: i32, | ||
pub stabil: ::c_longlong, | ||
pub jitcnt: ::c_longlong, | ||
pub calcnt: ::c_longlong, | ||
pub errcnt: ::c_longlong, | ||
pub stbcnt: ::c_longlong, | ||
pub tai: ::c_int, | ||
__unused1: i32, | ||
__unused2: i32, | ||
__unused3: i32, | ||
__unused4: i32, | ||
__unused5: i32, | ||
__unused6: i32, | ||
__unused7: i32, | ||
__unused8: i32, | ||
__unused9: i32, | ||
__unused10: i32, | ||
__unused11: i32, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters