Skip to content

Commit 04b9ce3

Browse files
committed
Move struct ntptimeval from gnu to gnu/b*
Needed for later move of timex.
1 parent b7c2b23 commit 04b9ce3

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
@@ -91,6 +91,17 @@ s! {
9191
__glibc_reserved3: ::__syscall_ulong_t,
9292
__glibc_reserved4: ::__syscall_ulong_t,
9393
}
94+
95+
pub struct ntptimeval {
96+
pub time: ::timeval,
97+
pub maxerror: ::c_long,
98+
pub esterror: ::c_long,
99+
pub tai: ::c_long,
100+
pub __glibc_reserved1: ::c_long,
101+
pub __glibc_reserved2: ::c_long,
102+
pub __glibc_reserved3: ::c_long,
103+
pub __glibc_reserved4: ::c_long,
104+
}
94105
}
95106

96107
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
@@ -276,17 +276,6 @@ s! {
276276
pub __unused11: i32,
277277
}
278278

279-
pub struct ntptimeval {
280-
pub time: ::timeval,
281-
pub maxerror: ::c_long,
282-
pub esterror: ::c_long,
283-
pub tai: ::c_long,
284-
pub __glibc_reserved1: ::c_long,
285-
pub __glibc_reserved2: ::c_long,
286-
pub __glibc_reserved3: ::c_long,
287-
pub __glibc_reserved4: ::c_long,
288-
}
289-
290279
pub struct regex_t {
291280
__buffer: *mut ::c_void,
292281
__allocated: ::size_t,

0 commit comments

Comments
 (0)