Skip to main content

relibc/header/sys_types_internal/
mod.rs

1//! `sys/types.h` implementation.
2//!
3//! See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_types.h.html>.
4//!
5//! Note that the `useconds_t` type provided in the `sys/types.h` header was
6//! removed in the Open Group Base Specifications Issue 7, see
7//! <https://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/types.h.html>
8//! for the old specification.
9
10#[expect(deprecated)]
11pub use crate::header::bits_useconds_t::useconds_t;
12pub use crate::header::{
13    bits_clock_t::clock_t,
14    bits_clockid_t::clockid_t,
15    bits_dev_t::dev_t,
16    bits_gid_t::gid_t,
17    bits_id_t::id_t,
18    bits_ino_t::ino_t,
19    bits_key_t::key_t,
20    bits_mode_t::mode_t,
21    bits_nlink_t::nlink_t,
22    bits_off_t::off_t,
23    bits_pid_t::pid_t,
24    bits_reclen_t::reclen_t,
25    bits_size_t::size_t,
26    bits_ssize_t::ssize_t,
27    bits_suseconds_t::suseconds_t,
28    bits_sys_stat::{blkcnt_t, blksize_t},
29    bits_sys_statvfs::{fsblkcnt_t, fsfilcnt_t},
30    bits_time_t::time_t,
31    bits_timer_t::timer_t,
32    bits_uid_t::uid_t,
33};
34use crate::platform::types::{c_char, c_longlong, c_uchar, c_uint, c_ulong, c_ulonglong, c_ushort};
35
36pub type u_char = c_uchar;
37pub type uchar = c_uchar;
38pub type u_short = c_ushort;
39pub type ushort = c_ushort;
40pub type u_int = c_uint;
41pub type uint = c_uint;
42pub type u_long = c_ulong;
43pub type ulong = c_ulong;
44pub type quad_t = c_longlong;
45pub type u_quad_t = c_ulonglong;
46pub type caddr_t = *mut c_char;