pid 19 forktest.c int n, pid; pid 24 forktest.c pid = fork(); pid 25 forktest.c if(pid < 0) pid 27 forktest.c if(pid == 0) pid 13 init.c int pid, wpid; pid 24 init.c pid = fork(); pid 25 init.c if(pid < 0){ pid 29 init.c if(pid == 0){ pid 34 init.c while((wpid=wait()) >= 0 && wpid != pid) pid 49 proc.c p->pid = nextpid++; pid 131 proc.c int i, pid; pid 159 proc.c pid = np->pid; pid 166 proc.c return pid; pid 220 proc.c int havekids, pid; pid 232 proc.c pid = p->pid; pid 237 proc.c p->pid = 0; pid 242 proc.c return pid; pid 412 proc.c kill(int pid) pid 418 proc.c if(p->pid == pid){ pid 458 proc.c cprintf("%d %s %s", p->pid, state, p->name); pid 60 proc.h int pid; // Process ID pid 185 sh.c int pid; pid 187 sh.c pid = fork(); pid 188 sh.c if(pid == -1) pid 190 sh.c return pid; pid 136 syscall.c proc->pid, proc->name, num); pid 32 sysproc.c int pid; pid 34 sysproc.c if(argint(0, &pid) < 0) pid 36 sysproc.c return kill(pid); pid 42 sysproc.c return proc->pid; pid 92 trap.c proc->pid, proc->name, tf->trapno, tf->err, cpu->id, tf->eip, pid 45 usertests.c int pid; pid 49 usertests.c pid = fork(); pid 50 usertests.c if(pid < 0){ pid 54 usertests.c if(pid == 0){ pid 87 usertests.c int pid; pid 94 usertests.c pid = fork(); pid 95 usertests.c if(pid < 0){ pid 99 usertests.c if(pid == 0){ pid 308 usertests.c int fds[2], pid; pid 315 usertests.c pid = fork(); pid 317 usertests.c if(pid == 0){ pid 328 usertests.c } else if(pid > 0){ pid 407 usertests.c int i, pid; pid 410 usertests.c pid = fork(); pid 411 usertests.c if(pid < 0){ pid 415 usertests.c if(pid){ pid 416 usertests.c if(wait() != pid){ pid 431 usertests.c int pid, ppid; pid 435 usertests.c if((pid = fork()) == 0){ pid 467 usertests.c int fd, pid, i, n, nc, np; pid 478 usertests.c pid = fork(); pid 479 usertests.c memset(buf, pid==0?'c':'p', sizeof(buf)); pid 486 usertests.c if(pid == 0) pid 520 usertests.c int fd, pid, i, j, n, total, pi; pid 530 usertests.c pid = fork(); pid 531 usertests.c if(pid < 0){ pid 536 usertests.c if(pid == 0){ pid 587 usertests.c int pid, i, fd, pi; pid 593 usertests.c pid = fork(); pid 594 usertests.c if(pid < 0){ pid 599 usertests.c if(pid == 0){ pid 768 usertests.c int i, pid, n, fd; pid 781 usertests.c pid = fork(); pid 782 usertests.c if(pid && (i % 3) == 1){ pid 784 usertests.c } else if(pid == 0 && (i % 5) == 1){ pid 794 usertests.c if(pid == 0) pid 829 usertests.c pid = fork(); pid 830 usertests.c if(pid < 0){ pid 834 usertests.c if(((i % 3) == 0 && pid == 0) || pid 835 usertests.c ((i % 3) == 1 && pid != 0)){ pid 846 usertests.c if(pid == 0) pid 860 usertests.c int pid, i; pid 865 usertests.c pid = fork(); pid 866 usertests.c if(pid < 0){ pid 871 usertests.c unsigned int x = (pid ? 1 : 97); pid 883 usertests.c if(pid) pid 1382 usertests.c int n, pid; pid 1387 usertests.c pid = fork(); pid 1388 usertests.c if(pid < 0) pid 1390 usertests.c if(pid == 0) pid 1417 usertests.c int fds[2], pid, pids[10], ppid; pid 1436 usertests.c pid = fork(); pid 1437 usertests.c if(pid < 0){ pid 1447 usertests.c if(pid == 0) pid 1499 usertests.c pid = fork(); pid 1500 usertests.c if(pid < 0){ pid 1504 usertests.c if(pid == 0){ pid 1565 usertests.c int hi, pid; pid 1572 usertests.c if((pid = fork()) == 0){ pid 1579 usertests.c kill(pid); pid 1615 usertests.c int pid, fd; pid 1618 usertests.c pid = fork(); pid 1619 usertests.c if(pid == 0){ pid 1631 usertests.c } else if(pid < 0){