/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/ |
H A D | 4-52.c | 43 pid_t pid; local 44 if ((pid = fork()) == 0) { 69 if (waitpid(pid, &s, WUNTRACED) == -1) { 77 kill(pid, SIGKILL);
|
/external/ltp/tools/pounder21/ |
H A D | proclist.h | 29 pid_t pid; member in struct:proclist_item_t
|
/external/openssh/openbsd-compat/ |
H A D | bsd-waitpid.c | 33 waitpid(int pid, int *stat_loc, int options) argument 38 if (pid <= 0) { 39 if (pid != -1) { 43 /* wait4() wants pid=0 for indiscriminate wait. */ 44 pid = 0; 46 wait_pid = wait4(pid, &statusp, options, NULL);
|
/external/selinux/libselinux/utils/ |
H A D | getpidcon.c | 8 pid_t pid; local 13 fprintf(stderr, "usage: %s pid\n", argv[0]); 17 if (sscanf(argv[1], "%d", &pid) != 1) { 18 fprintf(stderr, "%s: invalid pid %s\n", argv[0], argv[1]); 22 rc = getpidcon(pid, &buf);
|
/external/strace/tests/ |
H A D | rt_tgsigqueueinfo.c | 43 k_tgsigqueueinfo(const pid_t pid, const int sig, const void *const info) argument 46 F8ILL_KULONG_MASK | pid, 47 F8ILL_KULONG_MASK | pid,
|
H A D | xet_robust_list.c | 53 const pid_t pid = getpid(); local 54 const long long_pid = (unsigned long) (0xdeadbeef00000000LL | pid); 61 (int) pid, sprintaddr(*p_head), (unsigned long) *p_len); 72 (int) pid, sprintaddr(*p_head), (unsigned long) *p_len);
|
/external/strace/tests-m32/ |
H A D | rt_tgsigqueueinfo.c | 43 k_tgsigqueueinfo(const pid_t pid, const int sig, const void *const info) argument 46 F8ILL_KULONG_MASK | pid, 47 F8ILL_KULONG_MASK | pid,
|
H A D | xet_robust_list.c | 53 const pid_t pid = getpid(); local 54 const long long_pid = (unsigned long) (0xdeadbeef00000000LL | pid); 61 (int) pid, sprintaddr(*p_head), (unsigned long) *p_len); 72 (int) pid, sprintaddr(*p_head), (unsigned long) *p_len);
|
/external/strace/tests-mx32/ |
H A D | rt_tgsigqueueinfo.c | 43 k_tgsigqueueinfo(const pid_t pid, const int sig, const void *const info) argument 46 F8ILL_KULONG_MASK | pid, 47 F8ILL_KULONG_MASK | pid,
|
H A D | xet_robust_list.c | 53 const pid_t pid = getpid(); local 54 const long long_pid = (unsigned long) (0xdeadbeef00000000LL | pid); 61 (int) pid, sprintaddr(*p_head), (unsigned long) *p_len); 72 (int) pid, sprintaddr(*p_head), (unsigned long) *p_len);
|
/external/toybox/toys/lsb/ |
H A D | killall.c | 36 static int kill_process(pid_t pid, char *name) argument 40 if (pid == TT.cur_pid) return 0; 43 fprintf(stderr, "Signal %s(%d)", name, (int)pid); 48 kill(pid, TT.signum); 56 if (!(toys.optflags & FLAG_q)) perror_msg("pid %d", (int)pid); 58 printf("Killed %s(%d) with signal %d\n", name, pid, TT.signum);
|
/external/valgrind/coregrind/ |
H A D | vgdb-invoker-none.c | 47 Bool invoker_invoke_gdbserver(pid_t pid) argument
|
/external/valgrind/gdbserver_tests/ |
H A D | clean_after_fork.c | 8 int mem = 0, pid; local 9 pid = fork(); 10 if (pid == -1) { 16 if (pid == 0) { 26 while((ret = waitpid(pid, &status, 0)) != pid) {
|
H A D | fork_chain.c | 8 int pid; local 12 pid = fork(); 13 if (pid == -1) { 18 if (pid == 0) { 25 while((ret = waitpid(pid, &status, 0)) != pid) {
|
/external/valgrind/none/tests/x86-solaris/ |
H A D | syscalls.c | 21 static void check_pid(int pid, int pid2, const char *instr) argument 23 if (pid == pid2) 31 int pid, pid2, dummy; local 34 SYSCALL("int $0x91", SYS_getpid, pid); 38 check_pid(pid, pid2, "syscall"); 42 check_pid(pid, pid2, "sysenter"); 46 check_pid(pid, pid2, "int $0x80"); 49 check_pid(pid, pid2, "int $0x81"); 52 check_pid(pid, pid2, "int $0x82");
|
/external/clang/test/Analysis/ |
H A D | vfork.c | 10 pid_t pid = vfork(); // expected-warning{{Call to function 'vfork' is insecure}} local 11 if (pid != 0) 16 // Ensure that modifying pid is ok. 17 pid = 1; // no-warning 38 // Same as previous but without explicit pid variable. 40 pid_t pid = vfork(); // expected-warning{{Call to function 'vfork' is insecure}} local 44 // Ensure that writing pid is ok. 45 pid = 1; // no-warning 96 pid_t pid; local 97 if ((pid [all...] |
/external/compiler-rt/test/asan/TestCases/Linux/ |
H A D | signal_during_stop_the_world.cc | 26 pid_t pid = fork(); local 27 if (pid < 0) { 31 if (pid == 0) { 46 kill(pid, SIGTERM); 47 waitpid(pid, 0, 0);
|
/external/compiler-rt/test/asan/TestCases/Posix/ |
H A D | wait3.cc | 14 pid_t pid = fork(); local 15 if (pid) { // parent
|
H A D | waitid.cc | 10 pid_t pid = fork(); local 11 if (pid) { // parent
|
/external/compiler-rt/test/lsan/TestCases/ |
H A D | fork_threaded.cc | 30 pid_t pid = fork(); local 31 assert(pid >= 0); 32 if (pid > 0) { 33 waitpid(pid, &status, 0); 38 // thread's pid correctly even if leak checking is initiated from another
|
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
H A D | ptrace.cc | 23 pid_t pid; local 24 pid = fork(); 25 if (pid == 0) { // child 34 res = ptrace(PTRACE_GETREGS, pid, NULL, ®s); 40 res = ptrace(PTRACE_GETFPREGS, pid, NULL, &fpregs); 48 res = ptrace((enum __ptrace_request)PTRACE_GETREGS, pid, NULL, ®s); 62 res = ptrace((enum __ptrace_request)PTRACE_GETFPREGS, pid, NULL, &fpregs); 68 res = ptrace((enum __ptrace_request)PTRACE_GETVFPREGS, pid, 0, regbuf); 81 res = ptrace(PTRACE_GETREGSET, pid, (void*)NT_PRSTATUS, (void*)®set_io); 89 res = ptrace(PTRACE_GETREGSET, pid, (voi [all...] |
/external/compiler-rt/test/sanitizer_common/TestCases/Posix/ |
H A D | getpass.cc | 17 int pid = forkpty(&master, NULL, NULL, NULL); local 19 if(pid == -1) { 22 } else if (pid > 0) {
|
/external/compiler-rt/test/tsan/ |
H A D | vfork.cc | 27 int pid = vfork(); local 28 if (pid < 0) { 32 if (pid == 0) { // child
|
/external/google-breakpad/src/client/linux/crash_generation/ |
H A D | client_info.h | 39 ClientInfo(pid_t pid, CrashGenerationServer* crash_server) argument 41 pid_(pid) {} 44 pid_t pid() const { return pid_; } function in class:google_breakpad::ClientInfo
|
/external/google-breakpad/src/common/mac/ |
H A D | launch_reporter.cc | 41 pid_t pid = fork(); local 43 if (pid == -1) { 51 if (pid == 0) { 69 pid_t result = waitpid(pid, &status, WNOHANG);
|