/third_party/ltp/testcases/kernel/fs/doio/ |
H A D | growfiles.c | 161 int Pid = 0; variable 981 Pid = Opid; in main() 1013 Progname, Pid); in main() 1017 Progname, Pid, STATIC_NUM, STATIC_NUM); in main() 1021 Progname, Pid); in main() 1025 Progname, Pid); in main() 1029 Progname, Pid); in main() 1033 Progname, Pid); in main() 1037 Progname, Pid); in main() 1041 Progname, Pid); in main() [all...] |
/third_party/rust/crates/nix/src/sys/ |
H A D | wait.rs | 4 use crate::unistd::Pid; 81 /// in a child process `Pid`, such as the process exiting or stopping, 92 Exited(Pid, i32), 97 Signaled(Pid, Signal, bool), 102 Stopped(Pid, Signal), 112 PtraceEvent(Pid, Signal, c_int), 120 PtraceSyscall(Pid), 125 Continued(Pid), 135 pub fn pid(&self) -> Option<Pid> { in pid() 208 /// let pid = nix::unistd::Pid [all...] |
/third_party/rust/crates/nix/src/sys/ptrace/ |
H A D | linux.rs | 5 use crate::unistd::Pid; 193 pid: Pid, in ptrace_peek() 218 pub fn getregs(pid: Pid) -> Result<user_regs_struct> { in getregs() 233 pub fn setregs(pid: Pid, regs: user_regs_struct) -> Result<()> { in setregs() 249 fn ptrace_get_data<T>(request: Request, pid: Pid) -> Result<T> { in ptrace_get_data() 265 pid: Pid, in ptrace_other() 279 pub fn setoptions(pid: Pid, options: Options) -> Result<()> { in setoptions() 292 pub fn getevent(pid: Pid) -> Result<c_long> { in getevent() 297 pub fn getsiginfo(pid: Pid) -> Result<siginfo_t> { in getsiginfo() 302 pub fn setsiginfo(pid: Pid, si [all...] |
H A D | bsd.rs | 3 use crate::unistd::Pid; 65 pid: Pid, in ptrace_other() 84 ptrace_other(Request::PT_TRACE_ME, Pid::from_raw(0), ptr::null_mut(), 0) in traceme() 92 pub fn attach(pid: Pid) -> Result<()> { in attach() 102 pub fn detach<T: Into<Option<Signal>>>(pid: Pid, sig: T) -> Result<()> { in detach() 116 pub fn cont<T: Into<Option<Signal>>>(pid: Pid, sig: T) -> Result<()> { in cont() 131 pub fn kill(pid: Pid) -> Result<()> { in kill() 146 /// use nix::unistd::Pid; 152 /// match waitpid(Pid::from_raw(-1), None) { 167 pub fn step<T: Into<Option<Signal>>>(pid: Pid, si [all...] |
/third_party/rust/crates/rustix/src/backend/linux_raw/process/ |
H A D | syscalls.rs | 19 Cpuid, Gid, MembarrierCommand, MembarrierQuery, Pid, RawNonZeroPid, RawPid, Resource, Rlimit, 87 pub(crate) fn getpid() -> Pid { 91 Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(pid as u32)) 96 pub(crate) fn getppid() -> Option<Pid> { 99 Pid::from_raw(ppid as u32) 104 pub(crate) fn getpgid(pid: Option<Pid>) -> io::Result<Pid> { 107 ret_usize(syscall_readonly!(__NR_getpgid, c_uint(Pid::as_raw(pid))))? as __kernel_pid_t; 108 Ok(Pid::from_raw_nonzero(NonZeroU32::new_unchecked( 115 pub(crate) fn getpgrp() -> Pid { [all...] |
/third_party/rust/crates/nix/test/sys/ |
H A D | test_wait.rs | 49 waitid(Id::Pid(child), WaitPidFlag::WEXITED), in test_waitid_signal() 90 waitid(Id::Pid(child), WaitPidFlag::WEXITED), in test_waitid_exit() 99 let pid = Pid::from_raw(1); in test_waitstatus_from_raw() 137 let status = waitid(Id::Pid(child), WaitPidFlag::WEXITED).unwrap(); in test_waitid_pid() 163 fn ptrace_wait_parent(child: Pid) { in ptrace_wait_parent() 195 fn ptrace_waitid_parent(child: Pid) { in ptrace_waitid_parent() 201 waitid(Id::Pid(child), WaitPidFlag::WEXITED), in ptrace_waitid_parent() 214 waitid(Id::Pid(child), WaitPidFlag::WEXITED), in ptrace_waitid_parent() 220 waitid(Id::Pid(child), WaitPidFlag::WEXITED), in ptrace_waitid_parent() 230 waitid(Id::Pid(chil in ptrace_waitid_parent() [all...] |
/third_party/rust/crates/nix/test/ |
H A D | test_sched.rs | 2 use nix::unistd::Pid; 7 let initial_affinity = sched_getaffinity(Pid::from_raw(0)).unwrap(); in test_sched_affinity() 21 sched_setaffinity(Pid::from_raw(0), &new_affinity).unwrap(); in test_sched_affinity() 24 let updated_affinity = sched_getaffinity(Pid::from_raw(0)).unwrap(); in test_sched_affinity() 38 sched_setaffinity(Pid::from_raw(0), &initial_affinity).unwrap(); in test_sched_affinity()
|
H A D | test_time.rs | 31 let clock_id = clock_getcpuclockid(nix::unistd::Pid::this()).unwrap(); in test_clock_getcpuclockid() 55 ClockId::pid_cpu_clock_id(nix::unistd::Pid::this()) in test_clock_id_pid_cpu_clock_id()
|
/third_party/rust/crates/rustix/src/process/ |
H A D | id.rs | 5 //! The `Uid`, `Gid`, and `Pid` types can be constructed from raw integers, 43 pub struct Pid(RawNonZeroPid); structure names 105 impl Pid { impls 106 /// A `Pid` corresponding to the init process (pid 1). 112 /// Converts a `RawPid` into a `Pid`. 125 /// Converts a known non-zero `RawPid` into a `Pid`. 136 /// Creates a `Pid` holding the ID of the given child process. 148 /// Converts a `Pid` into a `RawNonZeroPid`. 154 /// Converts an `Option<Pid>` into a `RawPid`. 252 pub fn getpid() -> Pid { in getpid() [all...] |
H A D | procctl.rs | 14 use crate::process::{Pid, RawPid}; 24 Pid = 0, 31 /// `None` represents the current process. `Some((IdType::Pid, pid))` represents the process 34 pub type ProcSelector = Option<(IdType, Pid)>; 38 None => (IdType::Pid, 0), in proc_selector_to_raw() 160 BeingTraced(Pid), 176 let pid = unsafe { Pid::from_raw(pid as RawPid) }.ok_or(io::Errno::RANGE)?; in trace_status()
|
H A D | priority.rs | 1 use crate::process::{Pid, Uid}; 51 pub fn getpriority_pgrp(pgid: Option<Pid>) -> io::Result<i32> { in getpriority_pgrp() 71 pub fn getpriority_process(pid: Option<Pid>) -> io::Result<i32> { in getpriority_process() 109 pub fn setpriority_pgrp(pgid: Option<Pid>, priority: i32) -> io::Result<()> { in setpriority_pgrp() 129 pub fn setpriority_process(pid: Option<Pid>, priority: i32) -> io::Result<()> { in setpriority_process()
|
H A D | kill.rs | 1 use crate::process::Pid; 16 pub fn kill_process(pid: Pid, sig: Signal) -> io::Result<()> { in kill_process() 34 pub fn kill_process_group(pid: Pid, sig: Signal) -> io::Result<()> { in kill_process_group()
|
H A D | wait.rs | 1 use crate::process::Pid; 106 pub fn waitpid(pid: Option<Pid>, waitopts: WaitOptions) -> io::Result<Option<WaitStatus>> { in waitpid() 127 pub fn wait(waitopts: WaitOptions) -> io::Result<Option<(Pid, WaitStatus)>> { in wait()
|
H A D | sched.rs | 1 use crate::process::Pid; 91 pub fn sched_setaffinity(pid: Option<Pid>, cpuset: &CpuSet) -> io::Result<()> { in sched_setaffinity() 107 pub fn sched_getaffinity(pid: Option<Pid>) -> io::Result<CpuSet> { in sched_getaffinity()
|
H A D | rlimit.rs | 2 use crate::process::Pid; 51 pub fn prlimit(pid: Option<Pid>, resource: Resource, new: Rlimit) -> io::Result<Rlimit> { in prlimit()
|
/third_party/json/tests/thirdparty/Fuzzer/ |
H A D | FuzzerUtilDarwin.cpp | 97 pid_t Pid; in ExecuteCommand() local 103 ErrorCode = posix_spawn(&Pid, "/bin/sh", NULL, &SpawnAttributes, in ExecuteCommand() 107 pid_t SavedPid = Pid; in ExecuteCommand() 110 Pid = waitpid(SavedPid, &ProcessStatus, /*options=*/0); in ExecuteCommand() 111 } while (Pid == -1 && errno == EINTR); in ExecuteCommand() 112 if (Pid == -1) { in ExecuteCommand()
|
/third_party/rust/crates/nix/src/ |
H A D | sched.rs | 14 use crate::unistd::Pid; 103 ) -> Result<Pid> { in clone() 124 Errno::result(res).map(Pid::from_raw) in clone() 162 use crate::unistd::Pid; 256 /// use nix::unistd::Pid; 260 /// sched_setaffinity(Pid::from_raw(0), &cpu_set).unwrap(); 262 pub fn sched_setaffinity(pid: Pid, cpuset: &CpuSet) -> Result<()> { in sched_setaffinity() 289 /// use nix::unistd::Pid; 291 /// let cpu_set = sched_getaffinity(Pid::from_raw(0)).unwrap(); 296 pub fn sched_getaffinity(pid: Pid) [all...] |
H A D | unistd.rs | 182 pub struct Pid(pid_t); structure names 184 impl Pid { impls 185 /// Creates `Pid` from raw `pid_t`. 187 Pid(pid) 208 impl From<Pid> for pid_t { 209 fn from(pid: Pid) -> Self { in from() 214 impl fmt::Display for Pid { 228 Parent { child: Pid }, 298 res => Parent { child: Pid(res) }, in fork() 308 pub fn getpid() -> Pid { in getpid() [all...] |
/third_party/rust/crates/rustix/src/backend/libc/process/ |
H A D | syscalls.rs | 38 crate::process::{Gid, Pid, RawNonZeroPid, RawPid, Signal, Uid, WaitOptions, WaitStatus}, 132 pub(crate) fn getpid() -> Pid { 136 Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(pid)) 143 pub(crate) fn getppid() -> Option<Pid> { 146 Pid::from_raw(pid) 152 pub(crate) fn getpgid(pid: Option<Pid>) -> io::Result<Pid> { 154 let pgid = ret_pid_t(c::getpgid(Pid::as_raw(pid) as _))?; 156 Ok(Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(pgid))) 163 pub(crate) fn getpgrp() -> Pid { [all...] |
/third_party/rust/crates/rustix/src/termios/ |
H A D | tc.rs | 2 use crate::process::Pid; 56 pub fn tcgetpgrp<Fd: AsFd>(fd: Fd) -> io::Result<Pid> { in tcgetpgrp() 73 pub fn tcsetpgrp<Fd: AsFd>(fd: Fd, pid: Pid) -> io::Result<()> { in tcsetpgrp() 180 pub fn tcgetsid<Fd: AsFd>(fd: Fd) -> io::Result<Pid> { in tcgetsid()
|
/third_party/rust/crates/rustix/src/backend/libc/termios/ |
H A D | syscalls.rs | 16 use crate::process::{Pid, RawNonZeroPid}; 31 pub(crate) fn tcgetpgrp(fd: BorrowedFd<'_>) -> io::Result<Pid> { 35 Ok(Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(pid))) 40 pub(crate) fn tcsetpgrp(fd: BorrowedFd<'_>, pid: Pid) -> io::Result<()> { 80 pub(crate) fn tcgetsid(fd: BorrowedFd) -> io::Result<Pid> { 84 Ok(Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(pid)))
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/PerfJITEvents/ |
H A D | PerfJITEventListener.cpp | 84 pid_t Pid; member in __anon24201::PerfJITEventListener 126 uint32_t Pid; member 141 uint32_t Pid; member 180 PerfJITEventListener::PerfJITEventListener() : Pid(::getpid()) { in PerfJITEventListener() 194 FilenameBuf << JitPath << "/jit-" << Pid << ".dump"; in PerfJITEventListener() local 221 Header.Pid = Pid; in PerfJITEventListener() 420 rec.Pid = Pid; in NotifyCode()
|
/third_party/rust/crates/rustix/src/thread/ |
H A D | id.rs | 2 use crate::process::Pid; 15 pub fn gettid() -> Pid { in gettid()
|
/third_party/rust/crates/rustix/src/ |
H A D | runtime.rs | 31 use crate::process::Pid; 61 pub unsafe fn set_tid_address(data: *mut c_void) -> Pid { in set_tid_address() 223 pub unsafe fn fork() -> io::Result<Option<Pid>> { in fork()
|
/third_party/rust/crates/rustix/src/io/ |
H A D | procfs.rs | 40 Pid, 67 Kind::Pid | Kind::Fd => check_proc_subdir(entry, &entry_stat, proc_stat)?, in check_proc_entry_with_stat() 87 Kind::Pid | Kind::Proc => { in check_proc_entry_with_stat() 252 let proc_self_stat = check_proc_entry(Kind::Pid, proc_self.as_fd(), Some(proc_stat)) in proc_self()
|