/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/ |
3-1.c | 35 int pid; local 38 if ((pid = fork()) == 0) { 61 if (kill(pid, SIGABRT) != 0) {
|
3-2.c | 26 int pid, slepts; local 34 if ((pid = fork()) == 0) { 54 if (kill(pid, SIGSTOP) != 0) { 59 if (kill(pid, SIGCONT) != 0) {
|
5-2.c | 31 int pid; local 34 if ((pid = fork()) == 0) { 62 if (kill(pid, SIGABRT) != 0) {
|
7-1.c | 32 int pid; local 35 if ((pid = fork()) == 0) { 70 if (kill(pid, SIGABRT) != 0) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/ |
1-1.c | 61 pid_t pid; local 75 pid = fork(); 77 if (pid < 0) { 81 if (pid == 0) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_getpshared/ |
2-1.c | 57 int pid; local 126 pid = fork(); 127 if (pid == -1) { 130 } else if (pid > 0) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/ |
2-1.c | 54 int pid; local 99 pid = fork(); 100 if (pid == -1) { 103 } else if (pid > 0) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/ |
17-5.c | 42 pid_t pid = getpid(); local 48 rc = sched_getparam(pid, ¶m); 54 rc = sched_getscheduler(pid); 65 rc = sched_getparam(pid, ¶m); 70 rc = sched_getscheduler(pid);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_yield/ |
1-1.c | 64 int pid; local 94 pid = fork(); 95 if (pid == 0) 98 if (pid < 0) { 106 kill(pid, SIGTERM); 107 waitpid(pid, NULL, 0); 113 kill(pid, SIGTERM); 114 waitpid(pid, &s, 0);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/ |
2-1.c | 34 int pid; local 42 pid = fork(); 43 if (pid == 0) // child to lock semaphore 56 } else if (pid > 0) // parent to unlock semaphore
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/ |
11-1.c | 44 pid_t pid; local 53 if ((pid = fork()) == 0) { 76 kill(pid, SIGSTOP); 88 kill(pid, SIGCONT); 98 kill(pid, SIGKILL); 99 waitpid(pid, &s, 0);
|
9-1.c | 43 pid_t pid; local 52 if ((pid = fork()) == 0) { 65 kill(pid, SIGSTOP); 89 kill(pid, SIGCONT); 92 kill(pid, SIGKILL); 93 waitpid(pid, &s, 0);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/ |
1-1.c | 9 to the child process specified by pid. 12 * value VALTOTEST for the pid of the child 43 int pid; local 45 if ((pid = fork()) == 0) { 65 if (sigqueue(pid, SIGTOTEST, value) != 0) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigsuspend/ |
1-1.c | 72 pid_t pid; local 73 pid = fork(); 75 if (pid == 0) { 121 kill(pid, SIGUSR2); 129 kill(pid, SIGUSR1);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/ |
2-1.c | 39 int pid, rtsig; local 55 pid = getpid(); 60 if (sigqueue(pid, rtsig, value) != 0) {
|
/external/perfetto/src/ftrace_reader/ |
atrace_wrapper.cc | 47 pid_t pid = fork(); local 48 PERFETTO_CHECK(pid >= 0); 49 if (pid == 0) { 58 PERFETTO_EINTR(waitpid(pid, &status, 0));
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowProcess.java | 9 private static Integer pid; field in class:ShadowProcess 13 if (pid != null) { 14 return pid; 19 public static void setPid(int pid) { 20 ShadowProcess.pid = pid; 24 ShadowProcess.pid = null;
|
/external/strace/tests/ |
attach-p-cmd-p.c | 65 pid_t pid; local 66 if (fscanf(fp, "%d", &pid) < 0) 68 if (pid < 0) 69 error_msg_and_fail("pid = %d", pid); 77 while (kill(pid, 0) == 0) 92 pid_t pid = getpid(); local 97 pid, dir, sprintrc(rc), pid);
|
fork-f.c | 58 pid_t pid = fork(); local 60 if (pid < 0) 63 if (!pid) { 80 assert(wait(&status) == pid); 93 pid, prefix, 94 pid, prefix,
|
kill.c | 58 const int pid = getpid(); local 59 long rc = syscall(__NR_kill, pid, (long) 0xdefaced00000000ULL | SIGALRM); 60 printf("kill(%d, SIGALRM) = %ld\n", pid, rc); 68 rc = syscall(__NR_kill, (long) 0xdefaced00000000ULL | pid, 0); 69 printf("kill(%d, SIG_0) = %ld\n", pid, rc);
|
pc.c | 55 int pid = fork(); local 56 if (pid < 0) 59 if (!pid) { 87 assert(wait(&status) == pid);
|
prlimit64.c | 64 unsigned long pid = local 71 long rc = syscall(__NR_prlimit64, pid, res, 0, rlimit); 74 (unsigned) pid, xlat->str, rlimit, 79 (unsigned) pid, xlat->str,
|
qual_signal.c | 37 static pid_t pid; variable 59 if (kill(pid, signo)) 60 perror_msg_and_fail("kill(%d, %d)", pid, signo); 65 name, name, pid, uid); 73 pid = getpid();
|
siginfo.c | 54 pid_t pid = fork(); local 55 if (pid < 0) 58 if (!pid) { 93 assert(wait(&s) == pid); 98 pid = fork(); 99 if (pid < 0) 102 if (!pid) { 123 assert(wait(&s) == pid); 128 pid = fork(); 129 if (pid < 0 [all...] |
signal_receive.c | 6 void sig_print(const char *signame, const int pid, const int uid) 11 pid, signame, signame, signame, pid, uid); 22 int sig, pid = getpid(), uid = getuid(); local 37 if (kill(pid, sig) != 0) 39 sig_print(signal2name(sig), pid, uid); local
|