Home
last modified time | relevance | path

Searched refs:Uid (Results 1 – 17 of 17) sorted by relevance

/third_party/rust/crates/rustix/src/process/
Did.rs29 pub struct Uid(RawUid); struct
51 impl Uid { impl
196 pub fn getuid() -> Uid { in getuid()
210 pub fn geteuid() -> Uid { in geteuid()
313 pub(crate) fn translate_fchown_args(owner: Option<Uid>, group: Option<Gid>) -> (u32, u32) { in translate_fchown_args() argument
Dpriority.rs1 use crate::process::{Pid, Uid};
31 pub fn getpriority_user(uid: Uid) -> io::Result<i32> { in getpriority_user()
89 pub fn setpriority_user(uid: Uid, priority: i32) -> io::Result<()> { in setpriority_user() argument
Dmod.rs47 RawNonZeroPid, RawPid, RawUid, Uid,
/third_party/rust/crates/nix/src/
Dunistd.rs73 pub struct Uid(uid_t);
75 impl Uid { impl
78 Uid(uid)
104 impl From<Uid> for uid_t {
105 fn from(uid: Uid) -> Self {
110 impl From<uid_t> for Uid {
112 Uid(uid)
116 impl fmt::Display for Uid {
123 pub const ROOT: Uid = Uid(0);
698 fn chown_raw_ids(owner: Option<Uid>, group: Option<Gid>) -> (libc::uid_t, libc::gid_t) {
[all …]
/third_party/rust/crates/nix/test/common/
Dmod.rs41 use nix::unistd::Uid;
44 if !Uid::current().is_root() && CtlValue::Int(0) == ctl.value().unwrap()
81 use nix::unistd::Uid;
83 if !Uid::current().is_root() {
/third_party/rust/crates/rustix/src/backend/linux_raw/process/
Dsyscalls.rs20 Signal, Uid, WaitOptions, WaitStatus,
165 pub(crate) fn getuid() -> Uid { in getuid()
169 Uid::from_raw(uid) in getuid()
174 Uid::from_raw(uid as u32) in getuid()
179 pub(crate) fn geteuid() -> Uid { in geteuid()
184 Uid::from_raw(uid as u32) in geteuid()
189 Uid::from_raw(uid as u32) in geteuid()
259 pub(crate) fn getpriority_user(uid: Uid) -> io::Result<i32> { in getpriority_user()
295 pub(crate) fn setpriority_user(uid: Uid, priority: i32) -> io::Result<()> { in setpriority_user() argument
/third_party/rust/crates/rustix/src/backend/libc/process/
Dsyscalls.rs38 crate::process::{Gid, Pid, RawNonZeroPid, RawPid, Signal, Uid, WaitOptions, WaitStatus},
92 pub(crate) fn getuid() -> Uid { in getuid()
95 Uid::from_raw(uid) in getuid()
102 pub(crate) fn geteuid() -> Uid { in geteuid()
105 Uid::from_raw(uid) in geteuid()
236 pub(crate) fn getpriority_user(uid: Uid) -> io::Result<i32> { in getpriority_user()
272 pub(crate) fn setpriority_user(uid: Uid, priority: i32) -> io::Result<()> { in setpriority_user() argument
/third_party/rust/crates/nix/test/sys/
Dtest_sockopt.rs15 unistd::{Gid, Uid}, in test_local_peercred_seqpacket()
27 assert_eq!(Uid::from_raw(xucred.uid()), Uid::current()); in test_local_peercred_seqpacket()
41 unistd::{Gid, Uid}, in test_local_peercred_stream()
53 assert_eq!(Uid::from_raw(xucred.uid()), Uid::current()); in test_local_peercred_stream()
/third_party/rust/crates/rustix/src/fs/
Dfd.rs7 use crate::process::{Gid, Uid};
140 pub fn fchown<Fd: AsFd>(fd: Fd, owner: Option<Uid>, group: Option<Gid>) -> io::Result<()> { in fchown() argument
Dat.rs21 use crate::process::{Gid, Uid};
381 owner: Option<Uid>, in chownat() argument
/third_party/rust/crates/rustix/examples/
Dprocess.rs37 println!("User priority: {}", getpriority_user(Uid::ROOT)?); in main()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DTarWriter.cpp38 char Uid[8]; member
/third_party/rust/crates/rustix/src/backend/linux_raw/fs/
Dsyscalls.rs32 use crate::process::{Gid, Uid};
152 owner: Option<Uid>, in chownat() argument
170 pub(crate) fn fchown(fd: BorrowedFd<'_>, owner: Option<Uid>, group: Option<Gid>) -> io::Result<()> { in fchown() argument
/third_party/rust/crates/rustix/src/backend/libc/fs/
Dsyscalls.rs129 use crate::process::{Gid, Uid};
737 owner: Option<Uid>, in chownat() argument
934 pub(crate) fn fchown(fd: BorrowedFd<'_>, owner: Option<Uid>, group: Option<Gid>) -> io::Result<()> { in fchown() argument
946 pub(crate) fn fchown(fd: BorrowedFd<'_>, owner: Option<Uid>, group: Option<Gid>) -> io::Result<()> { in fchown() argument
/third_party/rust/crates/nix/
DCHANGELOG.md102 - impl `From<uid_t>` for `Uid` and `From<gid_t>` for `Gid`
474 - Made `Uid`, `Gid` and `Pid` methods `from_raw` and `as_raw` a `const fn`
476 - Made `Uid::is_root` a `const fn`
791 `Uid::is_root`, `Uid::as_raw`, `Pid::as_raw`, and `PollFd::revents` now take
1300 - Introduced wrapper types for `gid_t`, `pid_t`, and `uid_t` as `Gid`, `Pid`, and `Uid`
/third_party/rust/crates/nix/test/
Dtest_unistd.rs1221 let prev_fuid = setfsuid(Uid::from_raw(-1i32 as u32)); in test_setfsuid()
/third_party/python/Misc/
DHISTORY5333 - Issue #4591: Uid and gid values larger than 2**31 are supported now.