Lines Matching defs:gid_t
27 self, c_char, c_int, c_long, c_uint, c_void, gid_t, mode_t, off_t, pid_t,
127 /// Newtype pattern around `gid_t` (which is just alias). It prevents bugs caused by accidentally
130 pub struct Gid(gid_t);
133 /// Creates `Gid` from raw `gid_t`.
134 pub const fn from_raw(gid: gid_t) -> Self {
150 /// Get the raw `gid_t` wrapped by `self`.
151 pub const fn as_raw(self) -> gid_t {
156 impl From<Gid> for gid_t {
162 impl From<gid_t> for Gid {
163 fn from(gid: gid_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
705 .unwrap_or_else(|| (0 as gid_t).wrapping_sub(1));
1504 Gid::from_raw(prev_fsgid as gid_t)
1545 // the same representation in memory as a bare `gid_t`. This is not
1548 libc::getgroups(groups.capacity() as c_int, groups.as_mut_ptr() as *mut gid_t)
1615 // same representation in memory as a bare `gid_t`. This is not necessarily
1618 libc::setgroups(groups.len() as setgroups_ngroups_t, groups.as_ptr() as *const gid_t)
1659 type getgrouplist_group_t = gid_t;
1662 let gid: gid_t = group.into();
1731 type initgroups_group_t = gid_t;
1734 let gid: gid_t = group.into();
2875 let mut rgid = libc::gid_t::max_value();
2876 let mut egid = libc::gid_t::max_value();
2877 let mut sgid = libc::gid_t::max_value();