/external/ltp/testcases/kernel/fs/doio/ |
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 …]
|
/external/llvm-project/compiler-rt/lib/gwp_asan/tests/ |
D | enable_disable.cpp | 15 pid_t Pid = fork(); in TEST_F() local 16 EXPECT_GE(Pid, 0); in TEST_F() 17 if (Pid == 0) { in TEST_F() 24 waitpid(Pid, nullptr, 0); in TEST_F() 35 Pid = fork(); in TEST_F() 36 EXPECT_GE(Pid, 0); in TEST_F() 75 pid_t Pid = fork(); in TEST_F() local 76 EXPECT_GE(Pid, 0); in TEST_F() 77 if (Pid == 0) { in TEST_F() 83 waitpid(Pid, nullptr, 0); in TEST_F()
|
/external/gwp_asan/gwp_asan/tests/ |
D | enable_disable.cpp | 15 pid_t Pid = fork(); in TEST_F() local 16 EXPECT_GE(Pid, 0); in TEST_F() 17 if (Pid == 0) { in TEST_F() 24 waitpid(Pid, nullptr, 0); in TEST_F() 35 Pid = fork(); in TEST_F() 36 EXPECT_GE(Pid, 0); in TEST_F() 75 pid_t Pid = fork(); in TEST_F() local 76 EXPECT_GE(Pid, 0); in TEST_F() 77 if (Pid == 0) { in TEST_F() 83 waitpid(Pid, nullptr, 0); in TEST_F()
|
/external/rust/crates/nix/src/sys/ |
D | wait.rs | 3 use crate::unistd::Pid; 67 Exited(Pid, i32), 72 Signaled(Pid, Signal, bool), 77 Stopped(Pid, Signal), 86 PtraceEvent(Pid, Signal, c_int), 93 PtraceSyscall(Pid), 98 Continued(Pid), 108 pub fn pid(&self) -> Option<Pid> { in pid() argument 183 pub fn from_raw(pid: Pid, status: i32) -> Result<WaitStatus> { in from_raw() argument 191 fn decode_stopped(pid: Pid, status: i32) -> Result<WaitStatus> { in from_raw() [all …]
|
/external/rust/crates/nix/src/sys/ptrace/ |
D | linux.rs | 8 use crate::unistd::Pid; 177 fn ptrace_peek(request: Request, pid: Pid, addr: AddressType, data: *mut c_void) -> Result<c_long> { in ptrace_peek() argument 195 pub fn getregs(pid: Pid) -> Result<user_regs_struct> { in getregs() 206 pub fn setregs(pid: Pid, regs: user_regs_struct) -> Result<()> { in setregs() argument 220 fn ptrace_get_data<T>(request: Request, pid: Pid) -> Result<T> { in ptrace_get_data() 232 unsafe fn ptrace_other(request: Request, pid: Pid, addr: AddressType, data: *mut c_void) -> Result<… in ptrace_other() argument 237 pub fn setoptions(pid: Pid, options: Options) -> Result<()> { in setoptions() argument 248 pub fn getevent(pid: Pid) -> Result<c_long> { in getevent() 253 pub fn getsiginfo(pid: Pid) -> Result<siginfo_t> { in getsiginfo() 258 pub fn setsiginfo(pid: Pid, sig: &siginfo_t) -> Result<()> { in setsiginfo() argument [all …]
|
D | bsd.rs | 6 use crate::unistd::Pid; 59 pid: Pid, in ptrace_other() argument 76 unsafe { ptrace_other(Request::PT_TRACE_ME, Pid::from_raw(0), ptr::null_mut(), 0).map(drop) } in traceme() 82 pub fn attach(pid: Pid) -> Result<()> { in attach() 90 pub fn detach<T: Into<Option<Signal>>>(pid: Pid, sig: T) -> Result<()> { in detach() argument 104 pub fn cont<T: Into<Option<Signal>>>(pid: Pid, sig: T) -> Result<()> { in cont() argument 118 pub fn kill(pid: Pid) -> Result<()> { in kill() 157 pub fn step<T: Into<Option<Signal>>>(pid: Pid, sig: T) -> Result<()> { in step() argument 166 pub fn read(pid: Pid, addr: AddressType) -> Result<c_int> { in read() argument 175 pub fn write(pid: Pid, addr: AddressType, data: c_int) -> Result<()> { in write() argument
|
/external/llvm-project/libc/utils/testutils/ |
D | ExecuteFunctionUnix.cpp | 47 pid_t Pid = ::fork(); in invokeInSubprocess() local 48 if (Pid == -1) in invokeInSubprocess() 51 if (!Pid) { in invokeInSubprocess() 66 ::kill(Pid, SIGKILL); in invokeInSubprocess() 73 pid_t status = ::waitpid(Pid, &WStatus, 0); in invokeInSubprocess() 76 assert(status == Pid); in invokeInSubprocess()
|
/external/rust/crates/nix/test/ |
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() 31 sched_setaffinity(Pid::from_raw(0), &initial_affinity).unwrap(); in test_sched_affinity()
|
/external/libchromeos-rs/src/ |
D | linux.rs | 8 pub type Pid = libc::pid_t; typedef 10 pub fn getpid() -> Pid { in getpid() 15 pub fn gettid() -> Pid { in gettid() 17 unsafe { syscall(SYS_gettid) as Pid } in gettid()
|
/external/rust/crates/libfuzzer-sys/libfuzzer/ |
D | FuzzerUtilDarwin.cpp | 100 pid_t Pid; in ExecuteCommand() local 111 ErrorCode = posix_spawn(&Pid, "/bin/sh", NULL, &SpawnAttributes, in ExecuteCommand() 115 pid_t SavedPid = Pid; in ExecuteCommand() 118 Pid = waitpid(SavedPid, &ProcessStatus, /*options=*/0); in ExecuteCommand() 119 } while (Pid == -1 && errno == EINTR); in ExecuteCommand() 120 if (Pid == -1) { in ExecuteCommand()
|
/external/llvm-project/compiler-rt/lib/fuzzer/ |
D | FuzzerUtilDarwin.cpp | 100 pid_t Pid; in ExecuteCommand() local 111 ErrorCode = posix_spawn(&Pid, "/bin/sh", NULL, &SpawnAttributes, in ExecuteCommand() 115 pid_t SavedPid = Pid; in ExecuteCommand() 118 Pid = waitpid(SavedPid, &ProcessStatus, /*options=*/0); in ExecuteCommand() 119 } while (Pid == -1 && errno == EINTR); in ExecuteCommand() 120 if (Pid == -1) { in ExecuteCommand()
|
/external/crosvm/sys_util/src/ |
D | lib.rs | 109 pub type Pid = libc::pid_t; typedef 139 pub fn getpid() -> Pid { in getpid() 141 unsafe { syscall(SYS_getpid as c_long) as Pid } in getpid() 145 pub fn gettid() -> Pid { in gettid() 147 unsafe { syscall(SYS_gettid as c_long) as Pid } in gettid() 151 pub fn getsid(pid: Option<Pid>) -> Result<Pid> { in getsid() argument 153 let ret = unsafe { libc::getsid(pid.unwrap_or(0)) } as Pid; in getsid() 163 pub fn setsid() -> Result<Pid> { in setsid() 165 let ret = unsafe { libc::setsid() as Pid }; in setsid() 304 pub fn reap_child() -> Result<Pid> { in reap_child()
|
/external/rust/crates/gdbstub/examples/armv4t/gdb/ |
D | extended_mode.rs | 1 use gdbstub::common::Pid; 23 fn kill(&mut self, pid: Option<Pid>) -> TargetResult<ShouldTerminate, Self> { in kill() 33 fn attach(&mut self, pid: Pid) -> TargetResult<(), Self> { in attach() 38 fn run(&mut self, filename: Option<&[u8]>, args: Args) -> TargetResult<Pid, Self> { in run() argument 61 Ok(Pid::new(1337).unwrap()) in run()
|
/external/llvm-project/llvm/lib/ExecutionEngine/PerfJITEvents/ |
D | PerfJITEventListener.cpp | 83 sys::Process::Pid Pid; member in __anona22ba1f40111::PerfJITEventListener 125 uint32_t Pid; member 140 uint32_t Pid; member 180 : Pid(sys::Process::getProcessId()) { in PerfJITEventListener() 194 FilenameBuf << JitPath << "/jit-" << Pid << ".dump"; in PerfJITEventListener() 221 Header.Pid = Pid; in PerfJITEventListener() 420 rec.Pid = Pid; in NotifyCode()
|
/external/llvm-project/llvm/unittests/Support/ |
D | ProgramTest.cpp | 214 ASSERT_NE(PI1.Pid, ProcessInfo::InvalidPid) << "Invalid process id"; in TEST_F() 224 if (WaitResult.Pid == PI1.Pid) in TEST_F() 233 ASSERT_NE(PI2.Pid, ProcessInfo::InvalidPid) << "Invalid process id"; in TEST_F() 241 if (WaitResult.Pid == PI2.Pid) in TEST_F() 292 ASSERT_EQ(PI.Pid, ProcessInfo::InvalidPid) in TEST() 405 ASSERT_NE(PI2.Pid, ProcessInfo::InvalidPid) << "Invalid process id"; in TEST_F() 414 ASSERT_EQ(WaitResult.Pid, PI2.Pid); in TEST_F()
|
/external/libchrome/base/process/ |
D | process_unittest.cc | 48 EXPECT_NE(process.Pid(), kNullProcessId); in TEST_F() 57 EXPECT_NE(process.Pid(), kNullProcessId); in TEST_F() 88 EXPECT_EQ(process1.Pid(), process2.Pid()); in TEST_F() 103 EXPECT_EQ(process1.Pid(), process2.Pid()); in TEST_F() 118 EXPECT_EQ(process1.Pid(), process2.Pid()); in TEST_F()
|
/external/llvm-project/compiler-rt/lib/scudo/standalone/tests/ |
D | wrappers_c_test.cpp | 346 pid_t Pid = fork(); in TEST() local 347 EXPECT_GE(Pid, 0); in TEST() 348 if (Pid == 0) { in TEST() 355 waitpid(Pid, nullptr, 0); in TEST() 366 Pid = fork(); in TEST() 367 EXPECT_GE(Pid, 0); in TEST() 409 pid_t Pid = fork(); in TEST() local 410 EXPECT_GE(Pid, 0); in TEST() 411 if (Pid == 0) { in TEST() 418 waitpid(Pid, nullptr, 0); in TEST()
|
D | wrappers_cpp_test.cpp | 146 pid_t Pid; in TEST() local 147 if ((Pid = fork()) == 0) { in TEST() 160 EXPECT_NE(-1, Pid); in TEST() 162 EXPECT_EQ(Pid, waitpid(Pid, &Status, 0)); in TEST()
|
/external/scudo/standalone/tests/ |
D | wrappers_cpp_test.cpp | 150 pid_t Pid; in TEST() local 151 if ((Pid = fork()) == 0) { in TEST() 164 EXPECT_NE(-1, Pid); in TEST() 166 EXPECT_EQ(Pid, waitpid(Pid, &Status, 0)); in TEST()
|
D | wrappers_c_test.cpp | 368 pid_t Pid = fork(); in TEST() local 369 EXPECT_GE(Pid, 0); in TEST() 370 if (Pid == 0) { in TEST() 377 waitpid(Pid, nullptr, 0); in TEST() 388 Pid = fork(); in TEST() 389 EXPECT_GE(Pid, 0); in TEST() 431 pid_t Pid = fork(); in TEST() local 432 EXPECT_GE(Pid, 0); in TEST() 433 if (Pid == 0) { in TEST() 440 waitpid(Pid, nullptr, 0); in TEST()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/PerfJITEvents/ |
D | PerfJITEventListener.cpp | 84 pid_t Pid; member in __anon4dcbba680111::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()
|
/external/rust/crates/nix/src/ |
D | sched.rs | 13 use crate::unistd::Pid; 132 pub fn sched_setaffinity(pid: Pid, cpuset: &CpuSet) -> Result<()> { in sched_setaffinity() argument 166 pub fn sched_getaffinity(pid: Pid) -> Result<CpuSet> { in sched_getaffinity() 184 ) -> Result<Pid> { in clone() argument 204 Errno::result(res).map(Pid::from_raw) in clone()
|
/external/rust/crates/gdbstub/src/target/ext/ |
D | extended_mode.rs | 91 fn run(&mut self, filename: Option<&[u8]>, args: Args) -> TargetResult<Pid, Self>; in run() argument 98 fn attach(&mut self, pid: Pid) -> TargetResult<(), Self>; in attach() 107 fn query_if_attached(&mut self, pid: Pid) -> TargetResult<AttachKind, Self>; in query_if_attached() 119 fn kill(&mut self, pid: Option<Pid>) -> TargetResult<ShouldTerminate, Self>; in kill()
|
/external/llvm/unittests/Support/ |
D | ProgramTest.cpp | 226 ASSERT_NE(PI1.Pid, ProcessInfo::InvalidPid) << "Invalid process id"; in TEST_F() 236 if (WaitResult.Pid == PI1.Pid) in TEST_F() 245 ASSERT_NE(PI2.Pid, ProcessInfo::InvalidPid) << "Invalid process id"; in TEST_F() 253 if (WaitResult.Pid == PI2.Pid) in TEST_F() 307 ASSERT_EQ(PI.Pid, ProcessInfo::InvalidPid) in TEST()
|
/external/llvm-project/compiler-rt/test/profile/ContinuousSyncMode/ |
D | pid-substitution.c | 30 int Pid = atoi(PidStr); in main() local 32 if (Pid != getpid()) in main()
|