/third_party/ltp/testcases/kernel/syscalls/access/ |
H A D | access02.c | 146 pid_t pid; in verify_access() local 152 pid = SAFE_FORK(); in verify_access() 153 if (pid) { in verify_access() 154 SAFE_WAITPID(pid, NULL, 0); in verify_access()
|
/third_party/ltp/testcases/kernel/syscalls/fork/ |
H A D | fork09.c | 67 int pid, status, nf; in main() local 115 pid = fork(); in main() 116 if (pid == -1) in main() 119 if (pid == 0) { /* child */ in main()
|
/third_party/ltp/testcases/kernel/syscalls/mbind/ |
H A D | mbind04.c | 49 pid_t pid; in verify_policy() local 72 pid = SAFE_FORK(); in verify_policy() 73 if (pid) { in verify_policy() 109 if (!pid) in verify_policy()
|
/third_party/ltp/testcases/kernel/syscalls/select/ |
H A D | select03.c | 72 int pid, status; in run() local 74 pid = SAFE_FORK(); in run() 75 if (!pid) in run() 78 SAFE_WAITPID(pid, &status, 0); in run()
|
/third_party/ltp/testcases/kernel/uevents/ |
H A D | uevent03.c | 54 int pid, fd; in verify_uevent() local 224 pid = SAFE_FORK(); in verify_uevent() 225 if (!pid) { in verify_uevent() 231 wait_for_pid(pid); in verify_uevent()
|
/third_party/ltp/testcases/kernel/input/ |
H A D | input06.c | 49 int pid; in main() local 56 pid = tst_fork(); in main() 58 switch (pid) { in main() 73 SAFE_WAITPID(NULL, pid, NULL, 0); in main()
|
/third_party/ltp/testcases/kernel/security/umip/ |
H A D | umip_basic_test.c | 85 pid_t pid; in verify_umip_instruction() local 87 pid = SAFE_FORK(); in verify_umip_instruction() 88 if (pid == 0) { in verify_umip_instruction() 113 SAFE_WAITPID(pid, &status, 0); in verify_umip_instruction()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/shmat/ |
H A D | shmat01.c | 84 pid_t pid; in verify_shmat() local 115 pid = SAFE_FORK(); in verify_shmat() 116 if (!pid) in verify_shmat() 119 SAFE_WAITPID(pid, &status, 0); in verify_shmat()
|
/third_party/ltp/testcases/kernel/syscalls/setitimer/ |
H A D | setitimer01.c | 61 pid_t pid; in verify_setitimer() local 75 pid = SAFE_FORK(); in verify_setitimer() 77 if (pid == 0) { in verify_setitimer() 125 SAFE_WAITPID(pid, &status, 0); in verify_setitimer()
|
/third_party/ltp/testcases/kernel/syscalls/swapon/ |
H A D | swapon03.c | 103 pid_t pid; in setup_swap() local 145 pid = SAFE_FORK(); in setup_swap() 146 if (pid == 0) { in setup_swap() 174 waitpid(pid, &status, 0); in setup_swap()
|
/third_party/ltp/include/lapi/ |
H A D | sched.h | 36 static inline int sched_setattr(pid_t pid, const struct sched_attr *attr, in sched_setattr() argument 39 return syscall(__NR_sched_setattr, pid, attr, flags); in sched_setattr() 42 static inline int sched_getattr(pid_t pid, struct sched_attr *attr, in sched_getattr() argument 45 return syscall(__NR_sched_getattr, pid, attr, size, flags); in sched_getattr()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/ |
H A D | 16-1.c | 44 int pid, succeeded = 0; in main() local 80 pid = fork(); in main() 81 if (pid == 0) { in main() 108 kill(pid, SIGUSR1); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_getpshared/ |
H A D | 2-1.c | 56 int pid; in main() local 125 pid = fork(); in main() 126 if (pid == -1) { in main() 131 if (pid > 0) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/ |
H A D | 2-2.c | 61 int pid; in main() local 105 pid = fork(); in main() 106 if (pid == -1) { in main() 111 if (pid > 0) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/ |
H A D | 8-1.c | 50 pid_t pid; in main() local 63 pid = fork(); in main() 64 if (pid != 0) { in main() 94 kill(pid, SIGABRT); in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | getprocpid.c | 27 * @tc.desc : Get the pid by parsing the proc information 41 * @tc.desc : Get the pid by parsing the proc information 72 pid_t pid = getprocpid(); in child_func() local 73 if (pid == parent) { in child_func() 81 * @tc.desc : Get the pid by parsing the proc information 167 pid_t pid = getproctid(); in child_func_tid() local 168 if (pid == parent) { in child_func_tid()
|
/third_party/skia/third_party/externals/tint/src/ast/ |
H A D | module.cc | 27 Module::Module(ProgramID pid, const Source& src) : Base(pid, src) {} in Module() argument 29 Module::Module(ProgramID pid, in Module() argument 32 : Base(pid, src), global_declarations_(std::move(global_decls)) { in Module()
|
/third_party/rust/crates/rustix/src/process/ |
H A D | procctl.rs | 31 /// `None` represents the current process. `Some((IdType::Pid, pid))` represents the process 32 /// with pid `pid`. `Some((IdType::Pgid, pgid))` represents the control processes belonging to 158 /// The process is being traced by the process whose pid is stored in the first 175 pid => { in trace_status() 176 let pid = unsafe { Pid::from_raw(pid as RawPid) }.ok_or(io::Errno::RANGE)?; in trace_status() 177 Ok(TracingStatus::BeingTraced(pid)) in trace_status()
|
/third_party/libunwind/libunwind/src/ |
H A D | os-linux.c | 34 tdep_get_elf_image (struct elf_image *ei, pid_t pid, unw_word_t ip, in tdep_get_elf_image() argument 46 if (maps_init (&mi, pid) < 0) in tdep_get_elf_image() 66 cp = unw_ltoa (root + 6, pid); in tdep_get_elf_image()
|
/third_party/ltp/testcases/kernel/crypto/ |
H A D | af_alg04.c | 25 pid_t pid; in test_with_symm_enc_algs() local 39 pid = SAFE_FORK(); in test_with_symm_enc_algs() 48 if (pid != 0) { in test_with_symm_enc_algs()
|
/third_party/node/deps/v8/tools/testrunner/objects/ |
H A D | output.py | 38 pid=None, duration=None): 43 self.pid = pid
|
/third_party/node/test/parallel/ |
H A D | test-util-sigint-watchdog.js | 23 process.kill(process.pid, 'SIGINT'); 34 process.kill(process.pid, 'SIGINT'); 48 process.kill(process.pid, 'SIGINT');
|
/third_party/node/test/async-hooks/ |
H A D | test-graph.signal.js | 20 exec(`kill -USR2 ${process.pid}`); 27 exec(`kill -USR2 ${process.pid}`); 33 exec(`kill -USR2 ${process.pid}`);
|
/third_party/musl/src/linux/ |
H A D | wait4.c | 8 pid_t wait4(pid_t pid, int *status, int options, struct rusage *ru) in wait4() argument 14 r = __syscall(SYS_wait4_time64, pid, status, options, kru64); in wait4() 29 r = __sys_wait4(pid, status, options, dest); in wait4()
|
/third_party/musl/src/process/ |
H A D | system.c | 14 pid_t pid; in system() local 37 ret = posix_spawn(&pid, "/bin/sh", 0, &attr, in system() 41 if (!ret) while (waitpid(pid, &status, 0)<0 && errno == EINTR); in system()
|