relibc/header/bits_ucred/mod.rs
1use crate::platform::types::{gid_t, pid_t, uid_t};
2
3/// Non-POSIX, see <https://www.man7.org/linux/man-pages/man7/unix.7.html>.
4///
5/// Represents UNIX credentials.
6#[repr(C)]
7#[derive(Clone, Debug)]
8// FIXME: CheckVsLibcCrate
9pub struct ucred {
10 /// Process ID of the sending process.
11 pub pid: pid_t,
12 /// User ID of the sending process.
13 pub uid: uid_t,
14 /// Group ID of the sending process.
15 pub gid: gid_t,
16}