Home
last modified time | relevance | path

Searched refs:Pid (Results 1 – 25 of 56) sorted by relevance

123

/third_party/ltp/testcases/kernel/fs/doio/
Dgrowfiles.c161 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/rustix/src/backend/libc/process/
Dsyscalls.rs38 crate::process::{Gid, Pid, RawNonZeroPid, RawPid, Signal, Uid, WaitOptions, WaitStatus},
132 pub(crate) fn getpid() -> Pid { in getpid()
136 Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(pid)) in getpid()
143 pub(crate) fn getppid() -> Option<Pid> { in getppid()
146 Pid::from_raw(pid) in getppid()
152 pub(crate) fn getpgid(pid: Option<Pid>) -> io::Result<Pid> { in getpgid() argument
154 let pgid = ret_pid_t(c::getpgid(Pid::as_raw(pid) as _))?; in getpgid()
156 Ok(Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(pgid))) in getpgid()
163 pub(crate) fn getpgrp() -> Pid { in getpgrp()
167 Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(pgid)) in getpgrp()
[all …]
/third_party/rust/crates/rustix/src/backend/linux_raw/process/
Dsyscalls.rs19 Cpuid, Gid, MembarrierCommand, MembarrierQuery, Pid, RawNonZeroPid, RawPid, Resource, Rlimit,
87 pub(crate) fn getpid() -> Pid { in getpid()
91 Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(pid as u32)) in getpid()
96 pub(crate) fn getppid() -> Option<Pid> { in getppid()
99 Pid::from_raw(ppid as u32) in getppid()
104 pub(crate) fn getpgid(pid: Option<Pid>) -> io::Result<Pid> { in getpgid() argument
107 ret_usize(syscall_readonly!(__NR_getpgid, c_uint(Pid::as_raw(pid))))? as __kernel_pid_t; in getpgid()
108 Ok(Pid::from_raw_nonzero(NonZeroU32::new_unchecked( in getpgid()
115 pub(crate) fn getpgrp() -> Pid { in getpgrp()
121 Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(pgid as u32)) in getpgrp()
[all …]
/third_party/rust/crates/nix/src/sys/ptrace/
Dlinux.rs5 use crate::unistd::Pid;
193 pid: Pid, in ptrace_peek() argument
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() argument
249 fn ptrace_get_data<T>(request: Request, pid: Pid) -> Result<T> { in ptrace_get_data()
265 pid: Pid, in ptrace_other() argument
279 pub fn setoptions(pid: Pid, options: Options) -> Result<()> { in setoptions() argument
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, sig: &siginfo_t) -> Result<()> { in setsiginfo() argument
[all …]
Dbsd.rs3 use crate::unistd::Pid;
65 pid: Pid, in ptrace_other() argument
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() argument
116 pub fn cont<T: Into<Option<Signal>>>(pid: Pid, sig: T) -> Result<()> { in cont() argument
131 pub fn kill(pid: Pid) -> Result<()> { in kill()
167 pub fn step<T: Into<Option<Signal>>>(pid: Pid, sig: T) -> Result<()> { in step() argument
181 pub fn read(pid: Pid, addr: AddressType) -> Result<c_int> { in read() argument
193 pub fn write(pid: Pid, addr: AddressType, data: c_int) -> Result<()> { in write() argument
/third_party/rust/crates/nix/src/sys/
Dwait.rs4 use crate::unistd::Pid;
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() argument
212 pub fn from_raw(pid: Pid, status: i32) -> Result<WaitStatus> { in from_raw() argument
220 fn decode_stopped(pid: Pid, status: i32) -> Result<WaitStatus> { in from_raw()
[all …]
/third_party/rust/crates/nix/test/
Dtest_sched.rs2 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()
/third_party/rust/crates/rustix/src/process/
Did.rs43 pub struct Pid(RawNonZeroPid); struct
105 impl Pid { impl
252 pub fn getpid() -> Pid { in getpid()
266 pub fn getppid() -> Option<Pid> { in getppid()
279 pub fn getpgid(pid: Option<Pid>) -> io::Result<Pid> { in getpgid() argument
293 pub fn getpgrp() -> Pid { in getpgrp()
306 pub fn setsid() -> io::Result<Pid> { in setsid()
Dpriority.rs1 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() argument
129 pub fn setpriority_process(pid: Option<Pid>, priority: i32) -> io::Result<()> { in setpriority_process() argument
Dprocctl.rs14 use crate::process::{Pid, RawPid};
24 Pid = 0, enumerator
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()
Dkill.rs1 use crate::process::Pid;
16 pub fn kill_process(pid: Pid, sig: Signal) -> io::Result<()> { in kill_process() argument
34 pub fn kill_process_group(pid: Pid, sig: Signal) -> io::Result<()> { in kill_process_group() argument
Dsched.rs1 use crate::process::Pid;
91 pub fn sched_setaffinity(pid: Option<Pid>, cpuset: &CpuSet) -> io::Result<()> { in sched_setaffinity() argument
107 pub fn sched_getaffinity(pid: Option<Pid>) -> io::Result<CpuSet> { in sched_getaffinity()
Dwait.rs1 use crate::process::Pid;
106 pub fn waitpid(pid: Option<Pid>, waitopts: WaitOptions) -> io::Result<Option<WaitStatus>> { in waitpid() argument
127 pub fn wait(waitopts: WaitOptions) -> io::Result<Option<(Pid, WaitStatus)>> { in wait() argument
/third_party/rust/crates/nix/test/sys/
Dtest_wait.rs49 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() argument
195 fn ptrace_waitid_parent(child: Pid) { in ptrace_waitid_parent() argument
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(child), WaitPidFlag::WEXITED), in ptrace_waitid_parent()
/third_party/json/tests/thirdparty/Fuzzer/
DFuzzerUtilDarwin.cpp97 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/rustix/src/backend/linux_raw/runtime/
Dsyscalls.rs19 use crate::process::{Pid, RawNonZeroPid};
25 pub(crate) unsafe fn fork() -> io::Result<Option<Pid>> { in fork()
34 Ok(Pid::from_raw(pid)) in fork()
91 pub(crate) unsafe fn set_tid_address(data: *mut c::c_void) -> Pid { in set_tid_address() argument
95 Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(tid as u32)) in set_tid_address()
/third_party/rust/crates/rustix/src/backend/libc/termios/
Dsyscalls.rs16 use crate::process::{Pid, RawNonZeroPid};
31 pub(crate) fn tcgetpgrp(fd: BorrowedFd<'_>) -> io::Result<Pid> { in tcgetpgrp() argument
35 Ok(Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(pid))) in tcgetpgrp()
40 pub(crate) fn tcsetpgrp(fd: BorrowedFd<'_>, pid: Pid) -> io::Result<()> { in tcsetpgrp()
80 pub(crate) fn tcgetsid(fd: BorrowedFd) -> io::Result<Pid> { in tcgetsid() argument
84 Ok(Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked(pid))) in tcgetsid()
/third_party/rust/crates/nix/src/
Dsched.rs14 use crate::unistd::Pid;
103 ) -> Result<Pid> { in clone() argument
124 Errno::result(res).map(Pid::from_raw) in clone()
162 use crate::unistd::Pid;
262 pub fn sched_setaffinity(pid: Pid, cpuset: &CpuSet) -> Result<()> { in sched_setaffinity() argument
296 pub fn sched_getaffinity(pid: Pid) -> Result<CpuSet> { in sched_getaffinity()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/PerfJITEvents/
DPerfJITEventListener.cpp84 pid_t Pid; member in __anonbe557e080111::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()
221 Header.Pid = Pid; in PerfJITEventListener()
420 rec.Pid = Pid; in NotifyCode()
/third_party/rust/crates/rustix/src/backend/linux_raw/termios/
Dsyscalls.rs12 use crate::process::{Pid, RawNonZeroPid};
45 pub(crate) fn tcgetpgrp(fd: BorrowedFd<'_>) -> io::Result<Pid> { in tcgetpgrp() argument
51 Ok(Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked( in tcgetpgrp()
115 pub(crate) fn tcgetsid(fd: BorrowedFd) -> io::Result<Pid> { in tcgetsid() argument
121 Ok(Pid::from_raw_nonzero(RawNonZeroPid::new_unchecked( in tcgetsid()
140 pub(crate) fn tcsetpgrp(fd: BorrowedFd<'_>, pid: Pid) -> io::Result<()> { in tcsetpgrp()
/third_party/rust/crates/rustix/src/termios/
Dtc.rs2 use crate::process::Pid;
56 pub fn tcgetpgrp<Fd: AsFd>(fd: Fd) -> io::Result<Pid> { in tcgetpgrp() argument
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() argument
/third_party/rust/crates/rustix/src/thread/
Did.rs2 use crate::process::Pid;
15 pub fn gettid() -> Pid { in gettid()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/Unix/
DProgram.inc69 ProcessInfo::ProcessInfo() : Pid(0), ReturnCode(0) {}
253 PI.Pid = PID;
317 PI.Pid = child;
327 assert(PI.Pid && "invalid pid to wait on, process not started?");
330 pid_t ChildPid = PI.Pid;
350 WaitResult.Pid = waitpid(ChildPid, &status, WaitPidOptions);
351 } while (WaitUntilTerminates && WaitResult.Pid == -1 && errno == EINTR);
353 if (WaitResult.Pid != PI.Pid) {
354 if (WaitResult.Pid == 0) {
360 kill(PI.Pid, SIGKILL);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Unix/
DProgram.inc66 ProcessInfo::ProcessInfo() : Pid(0), ReturnCode(0) {}
265 PI.Pid = PID;
327 PI.Pid = child;
338 assert(PI.Pid && "invalid pid to wait on, process not started?");
341 pid_t ChildPid = PI.Pid;
361 WaitResult.Pid = waitpid(ChildPid, &status, WaitPidOptions);
362 } while (WaitUntilTerminates && WaitResult.Pid == -1 && errno == EINTR);
364 if (WaitResult.Pid != PI.Pid) {
365 if (WaitResult.Pid == 0) {
371 kill(PI.Pid, SIGKILL);
/third_party/rust/crates/rustix/src/
Druntime.rs31 use crate::process::Pid;
61 pub unsafe fn set_tid_address(data: *mut c_void) -> Pid { in set_tid_address() argument
223 pub unsafe fn fork() -> io::Result<Option<Pid>> { in fork()

123