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

12

/netbsd-current/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.c413 pid_t pid, cpid; local
430 cpid = fork();
432 if (cpid < 0)
/netbsd-current/tests/net/icmp/
H A Dt_ping.c69 pid_t cpid; local
76 cpid = fork();
80 switch (cpid) {
106 kill(cpid, SIGKILL);
213 pid_t cpid; local
216 cpid = fork();
220 switch (cpid) {
236 kill(cpid, SIGKILL);
249 pid_t cpid; local
252 cpid
282 pid_t cpid; local
341 pid_t cpid; local
[all...]
H A Dt_forward.c137 pid_t cpid; local
140 cpid = fork();
143 switch (cpid) {
/netbsd-current/usr.bin/gcore/
H A Dgcore.c87 pid_t pid, cpid; local
102 if ((cpid = waitpid(pid, &status, 0)) != pid) {
106 if (cpid == -1)
110 (unsigned long)cpid);
/netbsd-current/lib/libutil/
H A Dttymsg.c161 pid_t cpid; local
167 cpid = fork();
168 if (cpid < 0) {
175 if (cpid) { /* parent */
/netbsd-current/usr.bin/tip/
H A Dcmds.c201 int cpid, pdes[2]; local
213 if ((cpid = fork()) < 0) {
216 } else if (cpid) {
221 (void)kill(cpid, SIGKILL);
227 while ((p = wait(&status)) > 0 && p != cpid)
471 int cpid, status, p; local
486 if ((cpid = fork()) < 0)
488 else if (cpid) {
490 while ((p = wait(&status)) > 0 && p != cpid)
519 int cpid, statu local
[all...]
/netbsd-current/usr.bin/timeout/
H A Dtimeout.c191 pid_t pgid, pid, cpid; local
211 cpid = -1;
310 while (((cpid = wait(&status)) < 0) && errno == EINTR)
313 if (cpid == pid) {
350 while (cpid != pid && wait(&pstat) == -1) {
/netbsd-current/usr.sbin/faithd/
H A Dtcp.c61 static pid_t cpid = (pid_t)0; variable
125 (void)kill(cpid, SIGTERM);
304 cpid = fork();
305 switch (cpid) {
/netbsd-current/external/bsd/ntp/dist/ntpd/
H A Dntpd.c593 pid_t cpid; local
602 cpid = fork();
603 if (0 != cpid) {
605 if (-1 == cpid) {
620 cpid, (exit_code < 0));
1724 pid_t cpid,
1731 if (cpid == waitpid(cpid, &wstatus, (blocking ? 0 : WNOHANG))) {
1732 DPRINTF(1, ("child (pid=%d) dead now\n", cpid));
1746 DPRINTF(1, ("child (pid=%d) still alive\n", cpid));
1723 wait_child_exit_if( pid_t cpid, int blocking ) argument
[all...]
/netbsd-current/external/gpl3/binutils/dist/libiberty/
H A Dpex-unix.c240 pid_t cpid; local
256 cpid = wait (status);
259 if (time != NULL && cpid >= 0)
281 if (cpid < 0 || cpid == pid)
285 return cpid;
289 psl->pid = cpid;
/netbsd-current/external/gpl3/binutils.old/dist/libiberty/
H A Dpex-unix.c240 pid_t cpid; local
256 cpid = wait (status);
259 if (time != NULL && cpid >= 0)
281 if (cpid < 0 || cpid == pid)
285 return cpid;
289 psl->pid = cpid;
/netbsd-current/external/gpl3/gcc.old/dist/libiberty/
H A Dpex-unix.c240 pid_t cpid; local
256 cpid = wait (status);
259 if (time != NULL && cpid >= 0)
281 if (cpid < 0 || cpid == pid)
285 return cpid;
289 psl->pid = cpid;
/netbsd-current/external/gpl3/gdb.old/dist/libiberty/
H A Dpex-unix.c240 pid_t cpid; local
256 cpid = wait (status);
259 if (time != NULL && cpid >= 0)
281 if (cpid < 0 || cpid == pid)
285 return cpid;
289 psl->pid = cpid;
/netbsd-current/external/gpl3/gcc/dist/libiberty/
H A Dpex-unix.c240 pid_t cpid; local
256 cpid = wait (status);
259 if (time != NULL && cpid >= 0)
281 if (cpid < 0 || cpid == pid)
285 return cpid;
289 psl->pid = cpid;
/netbsd-current/external/gpl3/gdb/dist/libiberty/
H A Dpex-unix.c240 pid_t cpid; local
256 cpid = wait (status);
259 if (time != NULL && cpid >= 0)
281 if (cpid < 0 || cpid == pid)
285 return cpid;
289 psl->pid = cpid;
/netbsd-current/distrib/utils/ssh/
H A Dssh.c204 int i, argc, exitcode, cpid, cstat; local
262 while ((cpid = waitpid(0, &cstat, WNOHANG)) > 0) {
264 fprintf(stderr, "[%d] ", cpid);
/netbsd-current/usr.bin/mkdep/
H A Dmkdep.c104 pid_t pid, cpid; local
138 switch (cpid = vfork()) {
154 while (((pid = wait(&status)) != cpid) && (pid >= 0))
/netbsd-current/external/gpl3/gcc.old/dist/gcc/lto/
H A Dlto.c250 pid_t cpid = fork (); local
252 if (!cpid)
259 else if (cpid == -1)
/netbsd-current/external/gpl3/gcc/dist/gcc/lto/
H A Dlto.cc250 pid_t cpid = fork (); local
252 if (!cpid)
259 else if (cpid == -1)
/netbsd-current/external/bsd/ppp/dist/pppd/
H A Dtty.c913 int cpid; local
915 cpid = safe_fork(ifd, ofd, (log_to_fd >= 0? log_to_fd: 2));
916 if (cpid == -1) {
920 if (cpid == 0) {
934 charshunt_pid = cpid;
935 record_child(cpid, "pppd (charshunt)", charshunt_done, NULL, 1);
/netbsd-current/usr.bin/m4/
H A Dgnum4.c651 pid_t pid, cpid; local
667 switch(cpid = fork()) {
689 while ((pid = wait(&status)) != cpid && pid >= 0)
/netbsd-current/sys/dist/pf/net/
H A Dif_pflog.c284 hdr.rule_pid = rm->cpid;
/netbsd-current/usr.bin/make/
H A Djob.c1400 int cpid; /* ID of new child */ local
1431 cpid = vfork();
1432 if (cpid == -1)
1435 if (cpid == 0) {
1514 job->pid = cpid;
1520 meta_job_parent(job, cpid);

Completed in 242 milliseconds

12