Lines Matching refs:uid_t
28 size_t, uid_t, PATH_MAX,
70 /// Newtype pattern around `uid_t` (which is just alias). It prevents bugs caused by accidentally
73 pub struct Uid(uid_t);
76 /// Creates `Uid` from raw `uid_t`.
77 pub const fn from_raw(uid: uid_t) -> Self {
98 /// Get the raw `uid_t` wrapped by `self`.
99 pub const fn as_raw(self) -> uid_t {
104 impl From<Uid> for uid_t {
110 impl From<uid_t> for Uid {
111 fn from(uid: uid_t) -> Self {
698 fn chown_raw_ids(owner: Option<Uid>, group: Option<Gid>) -> (libc::uid_t, libc::gid_t) {
700 // are not to be changed. Since uid_t and gid_t are unsigned types, we have to wrap
703 .unwrap_or_else(|| (0 as uid_t).wrapping_sub(1));
1493 Uid::from_raw(prev_fsuid as uid_t)
2856 let mut ruid = libc::uid_t::max_value();
2857 let mut euid = libc::uid_t::max_value();
2858 let mut suid = libc::uid_t::max_value();