Home
last modified time | relevance | path

Searched refs:my_pid (Results 1 – 9 of 9) sorted by relevance

/external/ltp/testcases/kernel/syscalls/getpgid/
Dgetpgid01.c64 register int my_pid, my_ppid; in main() local
104 my_pid = getpid(); in main()
105 if ((pgid_1 = getpgid(my_pid)) == -1) in main()
106 tst_resm(TFAIL | TERRNO, "getpgid(%d) failed", my_pid); in main()
110 "[%d != %d]", my_pid, pgid_1, pgid_0); in main()
/external/ltp/testcases/kernel/syscalls/sigaltstack/
Dsigaltstack01.c85 pid_t my_pid; /* test process id */ variable
128 kill(my_pid, SIGUSR1); in main()
185 my_pid = getpid(); in setup()
195 kill(my_pid, SIGUSR1); in setup()
/external/strace/tests/
Dprocess_vm_readv_writev.c212 pid_t my_pid = getpid(); in main() local
270 do_call(my_pid, ptr_cast(bogus_iov + ARRAY_SIZE(bogus_iovec)), in main()
273 do_call(my_pid, ptr_cast(bogus_iov + ARRAY_SIZE(bogus_iovec)), NULL, in main()
277 do_call(my_pid, ptr_cast(bogus_iov), (char *) &bogus_arg, in main()
286 do_call(my_pid, ptr_cast(lcl_iov + 2), (char *) &lcl_arg_cut, in main()
296 do_call(my_pid, ptr_cast(lcl_iov + 2), (char *) &lcl_arg_cut, in main()
301 do_call(my_pid, ptr_cast(lcl_iov), (char *) &lcl_arg, in main()
/external/strace/tests-m32/
Dprocess_vm_readv_writev.c212 pid_t my_pid = getpid(); in main() local
270 do_call(my_pid, ptr_cast(bogus_iov + ARRAY_SIZE(bogus_iovec)), in main()
273 do_call(my_pid, ptr_cast(bogus_iov + ARRAY_SIZE(bogus_iovec)), NULL, in main()
277 do_call(my_pid, ptr_cast(bogus_iov), (char *) &bogus_arg, in main()
286 do_call(my_pid, ptr_cast(lcl_iov + 2), (char *) &lcl_arg_cut, in main()
296 do_call(my_pid, ptr_cast(lcl_iov + 2), (char *) &lcl_arg_cut, in main()
301 do_call(my_pid, ptr_cast(lcl_iov), (char *) &lcl_arg, in main()
/external/strace/tests-mx32/
Dprocess_vm_readv_writev.c212 pid_t my_pid = getpid(); in main() local
270 do_call(my_pid, ptr_cast(bogus_iov + ARRAY_SIZE(bogus_iovec)), in main()
273 do_call(my_pid, ptr_cast(bogus_iov + ARRAY_SIZE(bogus_iovec)), NULL, in main()
277 do_call(my_pid, ptr_cast(bogus_iov), (char *) &bogus_arg, in main()
286 do_call(my_pid, ptr_cast(lcl_iov + 2), (char *) &lcl_arg_cut, in main()
296 do_call(my_pid, ptr_cast(lcl_iov + 2), (char *) &lcl_arg_cut, in main()
301 do_call(my_pid, ptr_cast(lcl_iov), (char *) &lcl_arg, in main()
/external/ltp/testcases/kernel/syscalls/sigprocmask/
Dsigprocmask01.c100 pid_t my_pid; /* test process id */ in main() local
118 my_pid = getpid(); in main()
121 kill(my_pid, SIGINT); in main()
/external/llvm-project/compiler-rt/test/tsan/
Dfiber_cleanup.cpp10 pid_t my_pid = getpid(); in count_memory_mappings() local
12 snprintf(proc_file_name, sizeof(proc_file_name), "/proc/%ld/maps", my_pid); in count_memory_mappings()
/external/python/cpython2/Python/
Dthread_sgi.h21 static pid_t my_pid; /* PID of main thread */ variable
50 my_pid = getpid(); /* so that we know which is the main thread */ in PyThread__init_thread()
183 if (getpid() == my_pid) { in PyThread_exit_thread()
/external/llvm-project/openmp/runtime/src/thirdparty/ittnotify/
Dittnotify_static.cpp847 const pid_t my_pid = getpid(); in __itt_get_lib_name() local
854 res = snprintf(cmdline_path, PATH_MAX - 1, "/proc/%d/cmdline", my_pid); in __itt_get_lib_name()