Searched refs:cpid (Results 1 - 22 of 22) sorted by relevance

/freebsd-10-stable/lib/libc/net/
H A Drcmdsh.c63 pid_t cpid; local
107 cpid = fork();
108 if (cpid == -1) {
111 } else if (cpid == 0) {
121 cpid = fork();
122 if (cpid == -1) {
126 if (cpid > 0)
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_kill.c135 pid_t cpid, ppid; local
164 cpid = fork();
166 if (cpid < 0)
169 if (cpid == 0) {
189 if (kill(cpid, SIGKILL) == 0)
195 (void)waitpid(cpid, &sta, 0);
218 pid_t cpid, ppid; local
230 cpid = fork();
231 ATF_REQUIRE(cpid >= 0);
233 if (cpid
265 pid_t cpid, ppid; local
[all...]
H A Dt_getpid.c61 pid_t ppid, fpid, cpid, tpid, wpid; local
73 cpid = getpid();
79 if (cpid == ppid)
H A Dt_setrlimit.c439 pid_t pid, cpid; local
456 cpid = fork();
458 if (cpid < 0)
/freebsd-10-stable/contrib/netbsd-tests/net/icmp/
H A Dt_ping.c69 pid_t cpid; local
76 cpid = fork();
80 switch (cpid) {
106 kill(cpid, SIGKILL);
207 pid_t cpid; local
210 cpid = fork();
214 switch (cpid) {
230 kill(cpid, SIGKILL);
243 pid_t cpid; local
246 cpid
276 pid_t cpid; local
329 pid_t cpid; local
[all...]
H A Dt_forward.c137 pid_t cpid; local
140 cpid = fork();
143 switch (cpid) {
/freebsd-10-stable/usr.bin/wall/
H A Dttymsg.c123 int cpid; local
129 cpid = fork();
130 if (cpid < 0) {
136 if (cpid) { /* parent */
/freebsd-10-stable/tools/regression/poll/
H A Dpipepoll.c78 static pid_t cpid; variable
231 kill(cpid, SIGUSR1);
238 kill(cpid, SIGUSR1);
245 kill(cpid, SIGUSR1);
255 kill(cpid, SIGUSR1);
262 kill(cpid, SIGUSR1);
269 kill(cpid, SIGUSR1);
305 switch (cpid = fork()) {
H A Dpipeselect.c49 static pid_t cpid; variable
228 kill(cpid, SIGUSR1);
235 kill(cpid, SIGUSR1);
242 kill(cpid, SIGUSR1);
252 kill(cpid, SIGUSR1);
259 kill(cpid, SIGUSR1);
266 kill(cpid, SIGUSR1);
302 switch (cpid = fork()) {
/freebsd-10-stable/tools/regression/filemon/
H A Dtimed-forkb.c89 pid_t pid, cpid; local
107 cpid = wait4(pid, &status, 0, &ru);
113 cpid = wait4(pid, &status, 0, &ru);
/freebsd-10-stable/usr.bin/tip/tip/
H A Dcmds.c218 pid_t cpid; local
228 if ((cpid = fork()) < 0) {
231 } else if (cpid) {
234 kill (cpid, SIGKILL);
240 while ((p = wait(&status)) > 0 && p != cpid)
479 pid_t cpid; local
494 if ((cpid = fork()) < 0)
496 else if (cpid) {
498 while ((p = wait(&status)) > 0 && p != cpid)
532 pid_t cpid; local
[all...]
/freebsd-10-stable/usr.sbin/faithd/
H A Dtcp.c62 static pid_t cpid = (pid_t)0; variable
124 kill(cpid, SIGTERM);
302 cpid = fork();
303 switch (cpid) {
/freebsd-10-stable/usr.bin/timeout/
H A Dtimeout.c170 pid_t pid, cpid; local
285 while ((cpid = waitpid(-1, &status, WNOHANG)) != 0) {
286 if (cpid < 0) {
291 } else if (cpid == pid) {
/freebsd-10-stable/contrib/gcclibs/libiberty/
H A Dpex-unix.c207 pid_t cpid; local
223 cpid = wait (status);
226 if (time != NULL && cpid >= 0)
248 if (cpid < 0 || cpid == pid)
252 return cpid;
256 psl->pid = cpid;
/freebsd-10-stable/contrib/bmake/
H A Dcompat.c223 pid_t cpid; /* Child actually found */
385 compatChild = cpid = vFork();
386 if (cpid < 0) {
389 if (cpid == 0) {
420 while ((retstat = wait(&reason)) != cpid) {
222 pid_t cpid; /* Child actually found */ local
H A Dmain.c1626 int cpid; /* Child PID */ local
1659 switch (cpid = vFork()) {
1711 while(((pid = waitpid(cpid, &status, 0)) != cpid) && (pid >= 0)) {
H A Djob.c1338 int cpid; /* ID of new child */ local
1371 cpid = vFork();
1372 if (cpid == -1)
1375 if (cpid == 0) {
1474 job->pid = cpid;
/freebsd-10-stable/usr.bin/m4/
H A Dgnum4.c608 pid_t pid, cpid; local
624 switch(cpid = fork()) {
646 while ((pid = wait(&status)) != cpid && pid >= 0)
/freebsd-10-stable/sys/netpfil/pf/
H A Dif_pflog.c241 hdr.rule_pid = rm->cpid;
H A Dpf_ioctl.c1170 rule->cpid = td->td_proc ? td->td_proc->p_pid : 0;
1426 newrule->cpid = td->td_proc ? td->td_proc->p_pid : 0;
/freebsd-10-stable/sys/net/
H A Dpfvar.h530 pid_t cpid; member in struct:pf_rule
/freebsd-10-stable/sbin/pfctl/
H A Dpfctl.c851 (unsigned)rule->cuid, (unsigned)rule->cpid,

Completed in 228 milliseconds