linux_api/
types.rs

1//! Definitions from include/linux/types.h in linux source
2//!
3//! This header is *not* included in linux's installed user-space headers;
4//! probably because the types defined there would conflict with those defined
5//! in other user-space headers. Since we only run bindgen on the installed
6//! user-space headers, we don't get these definitions bindgen'd.
7
8// Re-exporting these to the C headers would result in conflicts with
9// libc/system headers.
10//! cbindgen:no-export
11
12#![allow(non_camel_case_types)]
13
14pub type gid_t = crate::posix_types::kernel_gid32_t;
15pub type uid_t = crate::posix_types::kernel_uid32_t;
16
17pub type off_t = crate::posix_types::kernel_off_t;
18pub type loff_t = crate::posix_types::kernel_loff_t;
19
20pub type size_t = crate::posix_types::kernel_size_t;
21
22pub type umode_t = core::ffi::c_ushort;