From ad0f5008238eccf2acd0a742cec8a88762bb8d93 Mon Sep 17 00:00:00 2001 From: auronandace Date: Wed, 3 Jun 2026 13:49:08 +0100 Subject: [PATCH] add descriptions to timeb struct and ftime function --- src/header/sys_timeb/mod.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/header/sys_timeb/mod.rs b/src/header/sys_timeb/mod.rs index 5e53a6be2b..24fb4e1aa8 100644 --- a/src/header/sys_timeb/mod.rs +++ b/src/header/sys_timeb/mod.rs @@ -19,16 +19,29 @@ use crate::{ #[repr(C)] #[derive(Default)] pub struct timeb { + /// The seconds portion of the current time. pub time: time_t, + /// The milliseconds portion of the current time. pub millitm: c_ushort, + /// The local timezone in minutes west of Greenwich. pub timezone: c_short, + /// TRUE if Daylight Savings Time is in effect. pub dstflag: c_short, } /// See . /// +/// Sets the `time` and `millitm` members of the `timeb` structure pointed to +/// by `tp` to contain the seconds and milliseconds portions, respectively, +/// of the current time in seconds since the Epoch. +/// /// # Safety /// The caller must ensure that `tp` is convertible to an [`Out`]. +/// +/// # Deprecation +/// The `ftime()` function was marked as legacy in the Open Group Base +/// Specifications Issue 6, and the entire `sys/timeb.h` header was removed in +/// Issue 7. #[allow(deprecated)] #[deprecated] #[unsafe(no_mangle)]