Lines Matching refs:Uid
37 pub struct Uid(uid_t); struct
39 impl Uid { impl
42 Uid(uid) in from_raw()
66 impl From<Uid> for uid_t {
67 fn from(uid: Uid) -> Self { in from()
72 impl fmt::Display for Uid { implementation
79 pub const ROOT: Uid = Uid(0);
627 fn chown_raw_ids(owner: Option<Uid>, group: Option<Gid>) -> (libc::uid_t, libc::gid_t) { in chown_raw_ids() argument
646 pub fn chown<P: ?Sized + NixPath>(path: &P, owner: Option<Uid>, group: Option<Gid>) -> Result<()> { in chown() argument
663 pub fn fchown(fd: RawFd, owner: Option<Uid>, group: Option<Gid>) -> Result<()> { in fchown() argument
701 owner: Option<Uid>, in fchownat() argument
1291 pub fn getuid() -> Uid { in getuid()
1292 Uid(unsafe { libc::getuid() }) in getuid()
1301 pub fn geteuid() -> Uid { in geteuid()
1302 Uid(unsafe { libc::geteuid() }) in geteuid()
1329 pub fn seteuid(euid: Uid) -> Result<()> { in seteuid()
1349 pub fn setuid(uid: Uid) -> Result<()> { in setuid()
1371 pub fn setfsuid(uid: Uid) -> Uid { in setfsuid() argument
1373 Uid::from_raw(prev_fsuid as uid_t) in setfsuid()
2466 use super::{Uid, Gid};
2478 pub fn setresuid(ruid: Uid, euid: Uid, suid: Uid) -> Result<()> { in setresuid() argument
2540 pub uid: Uid,
2575 uid: Uid::from_raw((*pw).pw_uid), in from()
2641 pub fn from_uid(uid: Uid) -> Result<Option<Self>> { in from_uid()
2822 pub fn getpeereid(fd: RawFd) -> Result<(Uid, Gid)> { in getpeereid() argument
2828 Errno::result(ret).map(|_| (Uid(uid), Gid(gid))) in getpeereid()