Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 25 of 122) sorted by relevance

12345

/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/sysdeps/unix/sysv/linux/
A Draise.c33 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 Dpt-raise.c34 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 Dfork.c70 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 Dsystem.c30 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 Dtst-flock2.c123 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 Dtst-rwlock12.c42 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 Dtst-barrier2.c40 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 Dtst-atfork1.c70 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 Dtst-exec3.c58 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 Dtst-fork1.c32 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 Dtst-exec2.c64 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 Dtst-getpid3.c10 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 Dtst-basic4.c41 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 Dtst-mqueue3.c35 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 Dtst-mutex9.c43 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 Dtst-signal1.c144 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 Dtst-signal2.c150 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 Dtst-tsd6.c54 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 Dtst-cond12.c127 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 Dpopen.c38 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 Dwaitpid.c12 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 Dssp.c60 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 Dtest-skeleton.c60 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 Dinit.c147 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 Dvfork.c18 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()

Completed in 43 milliseconds

12345