Searched defs:pid (Results 1 - 25 of 1095) sorted by relevance

1234567891011>>

/external/strace/tests/
H A Dgetsid.c8 pid_t pid = getpid(); local
9 printf("getsid(%d) = %d\n", pid, getsid(pid));
H A Dattach-f-p-cmd.c41 pid_t pid = getpid(); local
46 pid, dir, sprintrc(rc), pid);
H A Dmigrate_pages.c41 const long pid = (long) 0xfacefeedffffffffULL; local
42 long rc = syscall(__NR_migrate_pages, pid, 0, 0, 0);
44 (int) pid, rc, errno2name());
H A Drt_sigqueueinfo.c44 pid_t pid = getpid(); local
47 if (sigqueue(pid, SIGUSR1, value))
52 pid, pid, getuid(), value.sival_int, value.sival_ptr);
H A Dwaitpid.c42 unsigned long pid = local
44 long rc = syscall(__NR_waitpid, pid, 0L, (unsigned long) WNOHANG);
46 (int) pid, rc, errno2name());
H A Dxetpgid.c42 const int pid = getpid(); local
43 long rc = syscall(__NR_getpgid, F8ILL_KULONG_MASK | pid);
44 printf("getpgid(%d) = %ld\n", pid, rc);
46 rc = syscall(__NR_setpgid, F8ILL_KULONG_MASK, F8ILL_KULONG_MASK | pid);
47 printf("setpgid(0, %d) = %ld\n", pid, rc);
H A Dxetpriority.c13 const int pid = getpid(); local
15 F8ILL_KULONG_MASK | pid);
16 printf("getpriority(PRIO_PROCESS, %d) = %ld\n", pid, rc);
19 F8ILL_KULONG_MASK | pid, F8ILL_KULONG_MASK);
20 printf("setpriority(PRIO_PROCESS, %d, 0) = %s\n", pid, sprintrc(rc));
/external/strace/tests-m32/
H A Dgetsid.c8 pid_t pid = getpid(); local
9 printf("getsid(%d) = %d\n", pid, getsid(pid));
H A Dattach-f-p-cmd.c41 pid_t pid = getpid(); local
46 pid, dir, sprintrc(rc), pid);
/external/strace/tests-mx32/
H A Dgetsid.c8 pid_t pid = getpid(); local
9 printf("getsid(%d) = %d\n", pid, getsid(pid));
/external/valgrind/none/tests/
H A Dfork.c9 pid_t pid; local
11 pid = fork ();
18 printf("%s", pid==0 ? "X" : "XX");
20 if (pid != 0)
21 waitpid(pid, NULL, 0);
/external/bison/lib/
H A Dwaitpid.c27 waitpid (pid_t pid, int *statusp, int options) argument
29 return _cwait (statusp, pid, WAIT_CHILD);
/external/compiler-rt/test/lsan/TestCases/
H A Dfork.cc16 pid_t pid = fork(); local
17 assert(pid >= 0);
18 if (pid > 0) {
19 waitpid(pid, &status, 0);
/external/elfutils/tests/
H A Ddeleted.c38 pid_t pid = fork (); local
39 assert (pid != -1);
40 if (pid == 0)
56 printf ("%d\n", pid);
/external/libchrome/sandbox/linux/services/
H A Dresource_limits_unittests.cc34 pid_t pid = fork(); local
36 TestUtils::HandlePostForkReturn(pid);
37 SANDBOX_ASSERT_EQ(-1, pid);
/external/libunwind/src/ptrace/
H A D_UPT_create.c31 _UPT_create (pid_t pid) argument
39 ui->pid = pid;
H A D_UPT_internal.h53 pid_t pid; /* the process-id of the child we're unwinding */ member in struct:UPT_info
/external/ltp/lib/tests/
H A Dtst_checkpoint.c33 int pid; local
39 pid = fork();
41 switch (pid) {
H A Dtst_checkpoint_wait_timeout.c33 int pid; local
39 pid = fork();
41 switch (pid) {
H A Dtst_record_childstatus.c31 int pid; local
33 pid = tst_fork();
35 switch (pid) {
45 tst_record_childstatus(NULL, pid);
/external/ltp/testcases/kernel/controllers/cgroup/
H A Dfork_processes.c31 pid_t pid; local
35 pid = fork();
36 if (pid == 0) {
38 } else if (pid == -1) {
/external/ltp/testcases/kernel/syscalls/waitpid/
H A Dwaitpid06.c28 * Check proper functioning of waitpid with pid = -1 and arg = 0
35 pid_t pid; local
42 pid = SAFE_FORK();
43 if (pid == 0)
46 fork_kid_pid[i] = pid;
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/
H A D2-1.c31 pid_t pid; local
49 pid = fork();
51 if (pid < 0) {
55 if (pid == 0) {
/external/strace/linux/powerpc/
H A Dgetregs_old.c6 getregs_old(pid_t pid) argument
12 r = upeek(pid, sizeof(long) * PT_NIP, &ppc_regs.nip);
17 r = upeek(pid, sizeof(long) * PT_MSR, &ppc_regs.msr);
21 r = upeek(pid, sizeof(long) * PT_CCR, &ppc_regs.ccr);
24 r = upeek(pid, sizeof(long) * PT_ORIG_R3, &ppc_regs.orig_gpr3);
28 r = upeek(pid, sizeof(long) * (PT_R0 + i),
/external/strace/linux/x86_64/
H A Dgetregs_old.c34 getregs_old(pid_t pid) argument
37 long r = ptrace(PTRACE_GETREGS, pid, NULL, &x86_64_regs);

Completed in 5385 milliseconds

1234567891011>>