Skip to content

Commit 6be044b

Browse files
committed
Move struct ntptimeval from gnu to gnu/b*
Needed for later move of timex.
1 parent 00b9a4d commit 6be044b

File tree

3 files changed

+23
-11
lines changed

3 files changed

+23
-11
lines changed

src/unix/linux_like/linux/gnu/b32/mod.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,18 @@ s! {
151151
__glibc_reserved3: ::__syscall_ulong_t,
152152
__glibc_reserved4: ::__syscall_ulong_t,
153153
}
154+
155+
pub struct ntptimeval {
156+
pub time: ::timeval,
157+
pub maxerror: ::c_long,
158+
pub esterror: ::c_long,
159+
pub tai: ::c_long,
160+
pub __glibc_reserved1: ::c_long,
161+
pub __glibc_reserved2: ::c_long,
162+
pub __glibc_reserved3: ::c_long,
163+
pub __glibc_reserved4: ::c_long,
164+
}
165+
154166
}
155167

156168
pub const POSIX_FADV_DONTNEED: ::c_int = 4;

src/unix/linux_like/linux/gnu/b64/mod.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,17 @@ s! {
8989
__glibc_reserved3: ::__syscall_ulong_t,
9090
__glibc_reserved4: ::__syscall_ulong_t,
9191
}
92+
93+
pub struct ntptimeval {
94+
pub time: ::timeval,
95+
pub maxerror: ::c_long,
96+
pub esterror: ::c_long,
97+
pub tai: ::c_long,
98+
pub __glibc_reserved1: ::c_long,
99+
pub __glibc_reserved2: ::c_long,
100+
pub __glibc_reserved3: ::c_long,
101+
pub __glibc_reserved4: ::c_long,
102+
}
92103
}
93104

94105
pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: usize = 8;

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -272,17 +272,6 @@ s! {
272272
pub __unused11: i32,
273273
}
274274

275-
pub struct ntptimeval {
276-
pub time: ::timeval,
277-
pub maxerror: ::c_long,
278-
pub esterror: ::c_long,
279-
pub tai: ::c_long,
280-
pub __glibc_reserved1: ::c_long,
281-
pub __glibc_reserved2: ::c_long,
282-
pub __glibc_reserved3: ::c_long,
283-
pub __glibc_reserved4: ::c_long,
284-
}
285-
286275
pub struct regex_t {
287276
__buffer: *mut ::c_void,
288277
__allocated: ::size_t,

0 commit comments

Comments
 (0)