Searched defs:pid (Results 101 - 125 of 1095) sorted by relevance

1234567891011>>

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/
H A D4-52.c43 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 Dproclist.h29 pid_t pid; member in struct:proclist_item_t
/external/openssh/openbsd-compat/
H A Dbsd-waitpid.c33 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 Dgetpidcon.c8 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 Drt_tgsigqueueinfo.c43 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 Dxet_robust_list.c53 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 Drt_tgsigqueueinfo.c43 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 Dxet_robust_list.c53 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 Drt_tgsigqueueinfo.c43 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 Dxet_robust_list.c53 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 Dkillall.c36 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 Dvgdb-invoker-none.c47 Bool invoker_invoke_gdbserver(pid_t pid) argument
/external/valgrind/gdbserver_tests/
H A Dclean_after_fork.c8 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 Dfork_chain.c8 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 Dsyscalls.c21 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 Dvfork.c10 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 Dsignal_during_stop_the_world.cc26 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 Dwait3.cc14 pid_t pid = fork(); local
15 if (pid) { // parent
H A Dwaitid.cc10 pid_t pid = fork(); local
11 if (pid) { // parent
/external/compiler-rt/test/lsan/TestCases/
H A Dfork_threaded.cc30 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 Dptrace.cc23 pid_t pid; local
24 pid = fork();
25 if (pid == 0) { // child
34 res = ptrace(PTRACE_GETREGS, pid, NULL, &regs);
40 res = ptrace(PTRACE_GETFPREGS, pid, NULL, &fpregs);
48 res = ptrace((enum __ptrace_request)PTRACE_GETREGS, pid, NULL, &regs);
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*)&regset_io);
89 res = ptrace(PTRACE_GETREGSET, pid, (voi
[all...]
/external/compiler-rt/test/sanitizer_common/TestCases/Posix/
H A Dgetpass.cc17 int pid = forkpty(&master, NULL, NULL, NULL); local
19 if(pid == -1) {
22 } else if (pid > 0) {
/external/compiler-rt/test/tsan/
H A Dvfork.cc27 int pid = vfork(); local
28 if (pid < 0) {
32 if (pid == 0) { // child
/external/google-breakpad/src/client/linux/crash_generation/
H A Dclient_info.h39 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 Dlaunch_reporter.cc41 pid_t pid = fork(); local
43 if (pid == -1) {
51 if (pid == 0) {
69 pid_t result = waitpid(pid, &status, WNOHANG);

Completed in 610 milliseconds

1234567891011>>