Document moved spec of timeval struct

This commit is contained in:
Peter Limkilde Svendsen
2026-04-01 23:20:05 +02:00
parent 0b880eb17d
commit 6f458cf1f3
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -23,6 +23,10 @@ use crate::{
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_select.h.html>.
///
/// Note that the `timeval` struct was specified for
/// [`sys/time.h`](crate::header::sys_time) in the Open Group Base
/// Specifications Issue 7 and prior, see
/// <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_time.h.html>.
#[repr(C)]
#[derive(Default)]
pub struct timeval {
+4
View File
@@ -1,6 +1,10 @@
//! `sys/time.h` implementation.
//!
//! See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_time.h.html>.
//!
//! Note that since the Open Group Base Specifications Issue 8, the
//! [`timeval`](crate::header::sys_select::timeval) struct has been moved to
//! the [`sys/select.h`](crate::header::sys_select) header.
use crate::{
c_str::CStr,