/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/sysdeps/unix/sysv/linux/ |
A D | raise.c | 33 pid_t pid = THREAD_GETMEM (pd, pid); in raise() local 50 pid = selftid; in raise() 58 if (__builtin_expect (pid <= 0, 0)) in raise() 59 pid = (pid & INT_MAX) == 0 ? selftid : -pid; in raise() 63 return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig); in raise() 66 int res = INLINE_SYSCALL (tgkill, 3, pid, selftid, sig); in raise()
|
A D | pt-raise.c | 34 pid_t pid = THREAD_GETMEM (THREAD_SELF, pid); in raise() local 35 if (__builtin_expect (pid < 0, 0)) in raise() 36 pid = -pid; in raise() 40 return INLINE_SYSCALL (tgkill, 3, pid, THREAD_GETMEM (THREAD_SELF, tid), in raise() 44 int res = INLINE_SYSCALL (tgkill, 3, pid, THREAD_GETMEM (THREAD_SELF, tid), in raise()
|
A D | fork.c | 70 pid_t pid; in fork() local 141 pid_t parentpid = THREAD_GETMEM (THREAD_SELF, pid); in fork() 142 THREAD_SETMEM (THREAD_SELF, pid, -parentpid); in fork() 145 pid = ARCH_FORK (); in fork() 148 pid = INLINE_SYSCALL (fork, 0); in fork() 152 if (pid == 0) in fork() 162 THREAD_SETMEM (self, pid, THREAD_GETMEM (self, tid)); in fork() 210 THREAD_SETMEM (THREAD_SELF, pid, parentpid); in fork() 229 return pid; in fork()
|
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/stdlib/ |
A D | system.c | 30 int wait_val, pid; in __libc_system() local 47 if ((pid = vfork()) < 0) { in __libc_system() 51 if (pid == 0) { in __libc_system() 61 __printf("Waiting for child %d\n", pid); in __libc_system() 64 if (__wait4_nocancel(pid, &wait_val, 0, 0) == -1) in __libc_system() 89 &pid, NULL, NULL) 124 pid_t pid; in do_system() local 173 pid = FORK (); in do_system() 174 if (pid == (pid_t) 0) in do_system() 193 else if (pid < (pid_t) 0) in do_system() [all …]
|
/l4re-core-master/uclibc/lib/contrib/uclibc/test/nptl/ |
A D | tst-flock2.c | 123 pid_t pid = fork (); in do_test() local 124 if (pid == -1) in do_test() 130 if (pid == 0) in do_test() 145 if (pid != 0) in do_test() 158 if (pid == 0) in do_test() 189 if (pid != 0) in do_test() 203 if (pid == 0) in do_test() 222 if (pid != 0) in do_test() 236 if (pid == 0) in do_test() 242 if (TEMP_FAILURE_RETRY (waitpid (pid, &status, 0)) != pid) in do_test()
|
A D | tst-rwlock12.c | 42 pid_t pid; in do_test() local 122 pid = fork (); in do_test() 123 if (pid == -1) in do_test() 128 else if (pid == 0) in do_test() 182 kill (pid, SIGTERM); in do_test() 190 kill (pid, SIGTERM); in do_test() 195 if (TEMP_FAILURE_RETRY (waitpid (pid, &status, 0)) != pid) in do_test() 198 kill (pid, SIGTERM); in do_test()
|
A D | tst-barrier2.c | 40 pid_t pid; in do_test() local 125 pid = fork (); in do_test() 126 if (pid == -1) in do_test() 146 pid == 0 ? "child" : "parent", e); in do_test() 154 pid == 0 ? "child" : "parent", serials); in do_test() 156 if (pid == 0) in do_test() 161 if (waitpid (pid, &status, 0) != pid) in do_test()
|
A D | tst-atfork1.c | 70 pid_t pid; in do_test() local 84 pid = fork (); in do_test() 85 if (pid == -1) in do_test() 91 if (pid != 0) in do_test() 100 if (TEMP_FAILURE_RETRY (waitpid (pid, &status, 0)) != pid) in do_test()
|
A D | tst-exec3.c | 58 pid_t pid = fork (); in do_test() local 59 if (pid == -1) in do_test() 65 if (pid == 0) in do_test() 117 if (rpid != pid) in do_test() 119 printf ("found \"%s\", expected PID %ld\n", buf, (long int) pid); in do_test() 134 int err = waitpid (pid, &status, 0); in do_test() 135 if (err != pid) in do_test()
|
A D | tst-fork1.c | 32 pid_t pid; in thread_function() local 35 pid = fork (); in thread_function() 36 switch (pid) in thread_function() 50 pid2 = TEMP_FAILURE_RETRY (waitpid (pid, &status, 0)); in thread_function() 51 if (pid2 != pid) in thread_function() 54 (long int) pid2, (long int) pid); in thread_function() 59 (long int) pid, WEXITSTATUS (status), i); in thread_function()
|
A D | tst-exec2.c | 64 pid_t pid = fork (); in do_test() local 65 if (pid == -1) in do_test() 71 if (pid == 0) in do_test() 119 if (rpid != pid) in do_test() 121 printf ("found \"%s\", expected PID %ld\n", buf, (long int) pid); in do_test() 136 int err = waitpid (pid, &status, 0); in do_test() 137 if (err != pid) in do_test()
|
A D | tst-getpid3.c | 10 static pid_t pid; variable 15 if (pid != getpid ()) in pid_thread() 18 (int) pid, (int) getpid ()); in pid_thread() 28 pid = getpid (); in do_test() 59 if (pid == getpid ()) in do_test() 65 pid = getpid (); in do_test()
|
A D | tst-basic4.c | 41 pid_t pid = fork (); in tf() local 42 if (pid == -1) in tf() 48 if (pid == 0) in tf() 56 int e = TEMP_FAILURE_RETRY (waitpid (pid, &r, 0)); in tf() 57 if (e != pid) in tf()
|
A D | tst-mqueue3.c | 35 static pid_t pid; variable 184 pid = fork (); in do_test() 185 if (pid == -1) in do_test() 190 if (pid == 0) in do_test() 223 kill (pid, SIGKILL); in do_test() 229 if (TEMP_FAILURE_RETRY (waitpid (pid, &r, 0)) != pid) in do_test() 231 kill (pid, SIGKILL); in do_test()
|
A D | tst-mutex9.c | 43 pid_t pid; in do_test() local 114 pid = fork (); in do_test() 115 if (pid == -1) in do_test() 120 else if (pid == 0) in do_test() 169 if (TEMP_FAILURE_RETRY (waitpid (pid, &status, 0)) != pid) in do_test()
|
A D | tst-signal1.c | 144 pid_t pid = fork (); in do_test() local 145 if (pid == -1) in do_test() 151 if (pid == 0) in do_test() 162 kill (pid, SIGINT); in do_test() 166 if (TEMP_FAILURE_RETRY (waitpid (pid, &status, 0)) != pid) in do_test()
|
A D | tst-signal2.c | 150 pid_t pid = fork (); in do_test() local 151 if (pid == -1) in do_test() 157 if (pid == 0) in do_test() 168 kill (pid, SIGINT); in do_test() 172 if (TEMP_FAILURE_RETRY (waitpid (pid, &status, 0)) != pid) in do_test()
|
A D | tst-tsd6.c | 54 pid_t pid = fork (); in do_test() local 55 if (pid == 0) in do_test() 68 else if (pid == -1) in do_test() 75 if (TEMP_FAILURE_RETRY (waitpid (pid, &s, 0)) != pid) in do_test()
|
A D | tst-cond12.c | 127 pid_t pid = fork (); in do_test() local 128 if (pid == -1) in do_test() 134 if (pid == 0) in do_test() 187 if (TEMP_FAILURE_RETRY (waitpid (pid, NULL, 0)) != pid) in do_test() 190 kill (pid, SIGKILL); in do_test()
|
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/stdio/ |
A D | popen.c | 38 pid_t pid; member 52 pid_t pid; in popen() local 81 if ((pid = vfork()) == 0) { /* Child of vfork... */ in popen() 106 if (pid > 0) { /* Parent of vfork... */ in popen() 107 pi->pid = pid; in popen() 133 pid_t pid; in pclose() local 159 pid = p->pid; /* Save the pid we need */ in pclose() 167 if (waitpid(pid, &status, 0) >= 0) { in pclose()
|
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/common/ |
A D | waitpid.c | 12 pid_t __NC(waitpid)(pid_t pid, int *wait_stat, int options) in __NC() 15 return __wait4_nocancel(pid, wait_stat, options, NULL); in __NC() 17 return INLINE_SYSCALL(waitpid, 3, pid, wait_stat, options); in __NC() 20 CANCELLABLE_SYSCALL(pid_t, waitpid, (pid_t pid, int *wait_stat, int options), (pid, wait_stat, opti…
|
A D | ssp.c | 60 pid_t pid; in ssp_handler() local 83 pid = getpid(); in ssp_handler() 91 (void)kill(pid, SSP_SIGTYPE); in ssp_handler() 93 (void)kill(pid, SIGKILL); in ssp_handler() 121 pid_t pid; in strong_alias() local 125 pid = getpid(); in strong_alias() 126 (void)kill(pid, SIGKILL); in strong_alias()
|
/l4re-core-master/uclibc/lib/contrib/uclibc/test/ |
A D | test-skeleton.c | 60 static pid_t pid; variable 142 kill (pid, SIGKILL); in signal_handler() 148 killed = waitpid (pid, &status, WNOHANG|WUNTRACED); in signal_handler() 160 if (killed != 0 && killed != pid) in signal_handler() 203 kill(pid, SIGKILL); /* kill test */ in handler_killpid() 310 pid = fork (); in main() 311 if (pid == 0) in main() 348 else if (pid < 0) in main() 373 termpid = TEMP_FAILURE_RETRY (waitpid (pid, &status, 0)); in main() 379 if (termpid != pid) in main() [all …]
|
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/ |
A D | init.c | 147 pid_t pid = THREAD_GETMEM (THREAD_SELF, pid); in sigcancel_handler() local 148 if (__builtin_expect (pid < 0, 0)) in sigcancel_handler() 149 pid = -pid; in sigcancel_handler() 160 || si->si_pid != pid in sigcancel_handler() 208 pid_t pid = THREAD_GETMEM (THREAD_SELF, pid); in sighandler_setxid() local 209 if (__builtin_expect (pid < 0, 0)) in sighandler_setxid() 210 pid = -pid; in sighandler_setxid() 221 || si->si_pid != pid in sighandler_setxid() 283 pd->pid = pd->tid = INTERNAL_SYSCALL (set_tid_address, err, 1, &pd->tid); in __pthread_initialize_minimal_internal()
|
/l4re-core-master/uclibc/lib/contrib/uclibc/test/unistd/ |
A D | vfork.c | 18 pid_t pid; in main() local 27 if ((pid = vfork()) == 0) { in main() 36 if (wpid > 0 && wpid != pid) { in main() 39 if (wpid == pid) in main()
|