Searched refs:pid (Results 1 - 25 of 1639) sorted by relevance

1234567891011>>

/external/autotest/client/site_tests/security_Minijail0/src/
H A Dtest-pid-file9 read pid < pidfile
10 [ "$$" -eq "$pid" ]
/external/strace/tests/
H A Dgetsid.c8 pid_t pid = getpid(); local
9 printf("getsid(%d) = %d\n", pid, getsid(pid));
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 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());
/external/strace/tests-m32/
H A Dgetsid.c8 pid_t pid = getpid(); local
9 printf("getsid(%d) = %d\n", pid, getsid(pid));
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 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());
/external/strace/tests-mx32/
H A Dgetsid.c8 pid_t pid = getpid(); local
9 printf("getsid(%d) = %d\n", pid, getsid(pid));
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 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());
/external/ltp/lib/tests/
H A Dtst_record_childstatus.c31 int pid; local
33 pid = tst_fork();
35 switch (pid) {
45 tst_record_childstatus(NULL, pid);
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowProcess.java9 private static Integer pid; field in class:ShadowProcess
13 if (pid != null) {
14 return pid;
19 public static void setPid(int pid) { argument
20 ShadowProcess.pid = pid;
24 ShadowProcess.pid = null;
/external/curl/tests/
H A Dftp.pm33 # pidfromfile returns the pid stored in the given pidfile. The value
34 # of the returned pid will never be a negative value. It will be zero
35 # on any file related error or if a pid can not be extracted from the
40 my $pid = 0;
43 $pid = 0 + <PIDFH>;
45 $pid = 0 unless($pid > 0);
47 return $pid;
51 # pidexists checks if a process with a given pid exists and is alive.
52 # This will return the positive pid i
[all...]
/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/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/google-breakpad/src/client/mac/crash_generation/
H A Dclient_info.h37 explicit ClientInfo(pid_t pid) : pid_(pid) {} argument
39 pid_t pid() const { return pid_; } function in class:google_breakpad::ClientInfo
/external/strace/
H A Dupoke.c32 upoke(int pid, unsigned long off, kernel_ulong_t val) argument
34 if (ptrace(PTRACE_POKEUSER, pid, off, val)) {
36 perror_msg("upoke: PTRACE_POKEUSER pid:%d @%#lx)", pid, off);
/external/ltp/include/
H A Dtst_process_state.h26 These functions helps you wait till a process with given pid changes state.
50 #define TST_PROCESS_STATE_WAIT(pid, state) \
52 (pid), (state))
61 int tst_process_state_wait2(pid_t pid, const char state);
63 # define TST_PROCESS_STATE_WAIT(cleanup_fn, pid, state) \
65 (pid), (state))
70 pid_t pid, const char state);
/external/valgrind/gdbserver_tests/
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/strace/linux/alpha/
H A Dget_syscall_result.c4 return (upeek(tcp->pid, REG_A3, &alpha_a3) < 0 ||
5 upeek(tcp->pid, REG_R0, &alpha_r0) < 0) ? -1 : 0;
/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/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) {

Completed in 745 milliseconds

1234567891011>>