Skip to main content

relibc/header/bits_timeval/
mod.rs

1use crate::platform::types::{suseconds_t, time_t};
2
3/// See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_select.h.html>.
4///
5/// Note that the `timeval` struct was specified for
6/// [`sys/time.h`](crate::header::sys_time) in the Open Group Base
7/// Specifications Issue 7 and prior, see
8/// <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_time.h.html>.
9#[repr(C)]
10#[allow(non_camel_case_types)]
11#[derive(Default)]
12pub struct timeval {
13    /// Seconds.
14    pub tv_sec: time_t,
15    /// Microseconds.
16    pub tv_usec: suseconds_t,
17}