pid 65 kern/include/syscall.h int sys_waitpid(pid_t pid, userptr_t status, int options, pid_t *retval);
pid 65 kern/syscall/proc_syscalls.c sys_waitpid(pid_t pid,
pid 91 kern/syscall/proc_syscalls.c *retval = pid;
pid 98 user/bin/sh/sh.c remember_bg(pid_t pid)
pid 103 user/bin/sh/sh.c bgpids[i] = pid;
pid 141 user/bin/sh/sh.c dowait(pid_t pid)
pid 144 user/bin/sh/sh.c if (waitpid(pid, &status, 0)<0) {
pid 145 user/bin/sh/sh.c warn("pid %d", pid);
pid 148 user/bin/sh/sh.c printf("pid %d: ", pid);
pid 161 user/bin/sh/sh.c dowaitpoll(pid_t pid)
pid 165 user/bin/sh/sh.c result = waitpid(pid, &status, WNOHANG);
pid 167 user/bin/sh/sh.c warn("pid %d", pid);
pid 170 user/bin/sh/sh.c printf("pid %d: ", pid);
pid 208 user/bin/sh/sh.c pid_t pid;
pid 211 user/bin/sh/sh.c pid = atoi(av[1]);
pid 212 user/bin/sh/sh.c dowait(pid);
pid 214 user/bin/sh/sh.c if (bgpids[i]==pid) {
pid 309 user/bin/sh/sh.c pid_t pid;
pid 357 user/bin/sh/sh.c pid = fork();
pid 358 user/bin/sh/sh.c switch (pid) {
pid 382 user/bin/sh/sh.c remember_bg(pid);
pid 383 user/bin/sh/sh.c printf("[%d] %s ... &\n", pid, args[0]);
pid 387 user/bin/sh/sh.c if (waitpid(pid, &status, 0) < 0) {
pid 121 user/include/unistd.h int waitpid(pid_t pid, int *returncode, int flags);
pid 57 user/lib/libc/stdlib/system.c int pid, status;
pid 77 user/lib/libc/stdlib/system.c pid = fork();
pid 78 user/lib/libc/stdlib/system.c switch (pid) {
pid 88 user/lib/libc/stdlib/system.c waitpid(pid, &status, 0);
pid 47 user/testbin/badcall/bad_execv.c int pid, rv, status;
pid 49 user/testbin/badcall/bad_execv.c pid = fork();
pid 50 user/testbin/badcall/bad_execv.c if (pid<0) {
pid 55 user/testbin/badcall/bad_execv.c if (pid==0) {
pid 60 user/testbin/badcall/bad_execv.c rv = waitpid(pid, &status, 0);
pid 71 user/testbin/badcall/bad_lseek.c pid_t pid;
pid 74 user/testbin/badcall/bad_lseek.c pid = fork();
pid 75 user/testbin/badcall/bad_lseek.c if (pid<0) {
pid 79 user/testbin/badcall/bad_lseek.c else if (pid!=0) {
pid 81 user/testbin/badcall/bad_lseek.c rv = waitpid(pid, &status, 0);
pid 45 user/testbin/badcall/bad_waitpid.c wait_badpid(int pid, const char *desc)
pid 48 user/testbin/badcall/bad_waitpid.c rv = waitpid(pid, &x, 0);
pid 56 user/testbin/badcall/bad_waitpid.c int rv, pid, x;
pid 58 user/testbin/badcall/bad_waitpid.c pid = fork();
pid 59 user/testbin/badcall/bad_waitpid.c if (pid<0) {
pid 63 user/testbin/badcall/bad_waitpid.c if (pid==0) {
pid 67 user/testbin/badcall/bad_waitpid.c rv = waitpid(pid, ptr, 0);
pid 69 user/testbin/badcall/bad_waitpid.c waitpid(pid, &x, 0);
pid 76 user/testbin/badcall/bad_waitpid.c int rv, pid, x;
pid 80 user/testbin/badcall/bad_waitpid.c pid = fork();
pid 81 user/testbin/badcall/bad_waitpid.c if (pid<0) {
pid 85 user/testbin/badcall/bad_waitpid.c if (pid==0) {
pid 95 user/testbin/badcall/bad_waitpid.c rv = waitpid(pid, (int *)ptr, 0);
pid 98 user/testbin/badcall/bad_waitpid.c waitpid(pid, &x, 0);
pid 106 user/testbin/badcall/bad_waitpid.c int rv, x, pid;
pid 108 user/testbin/badcall/bad_waitpid.c pid = fork();
pid 109 user/testbin/badcall/bad_waitpid.c if (pid<0) {
pid 113 user/testbin/badcall/bad_waitpid.c if (pid==0) {
pid 117 user/testbin/badcall/bad_waitpid.c rv = waitpid(pid, &x, 309429);
pid 119 user/testbin/badcall/bad_waitpid.c waitpid(pid, &x, 0);
pid 228 user/testbin/crash/crash.c pid_t pid;
pid 248 user/testbin/crash/crash.c pid = fork();
pid 249 user/testbin/crash/crash.c if (pid<0) {
pid 253 user/testbin/crash/crash.c else if (pid==0) {
pid 259 user/testbin/crash/crash.c waitpid(pid, &status, 0);
pid 225 user/testbin/dirconc/dirconc.c pid_t pid;
pid 227 user/testbin/dirconc/dirconc.c pid = fork();
pid 228 user/testbin/dirconc/dirconc.c if (pid < 0) {
pid 232 user/testbin/dirconc/dirconc.c if (pid == 0) {
pid 237 user/testbin/dirconc/dirconc.c return pid;
pid 87 user/testbin/f_test/f_test.c pid_t pid = fork();
pid 88 user/testbin/f_test/f_test.c switch (pid) {
pid 97 user/testbin/f_test/f_test.c return pid;
pid 102 user/testbin/f_test/f_test.c dowait(int pid)
pid 106 user/testbin/f_test/f_test.c if (waitpid(pid, &status, 0)<0) {
pid 107 user/testbin/f_test/f_test.c warn("waitpid for %d", pid);
pid 110 user/testbin/f_test/f_test.c warnx("pid %d: signal %d", pid, WTERMSIG(status));
pid 113 user/testbin/f_test/f_test.c warnx("pid %d: exit %d", pid, WEXITSTATUS(status));
pid 53 user/testbin/farm/farm.c int pid = fork();
pid 54 user/testbin/farm/farm.c switch (pid) {
pid 63 user/testbin/farm/farm.c pids[npids++] = pid;
pid 53 user/testbin/forkbomb/forkbomb.c static volatile int pid;
pid 63 user/testbin/forkbomb/forkbomb.c pid = getpid();
pid 68 user/testbin/forkbomb/forkbomb.c seenpid = pid;
pid 58 user/testbin/forktest/forktest.c int pid;
pid 59 user/testbin/forktest/forktest.c pid = fork();
pid 60 user/testbin/forktest/forktest.c if (pid < 0) {
pid 63 user/testbin/forktest/forktest.c return pid;
pid 102 user/testbin/forktest/forktest.c dowait(int nowait, int pid)
pid 106 user/testbin/forktest/forktest.c if (pid<0) {
pid 110 user/testbin/forktest/forktest.c if (pid==0) {
pid 116 user/testbin/forktest/forktest.c if (waitpid(pid, &x, 0)<0) {
pid 120 user/testbin/forktest/forktest.c warnx("pid %d: signal %d", pid, WTERMSIG(x));
pid 123 user/testbin/forktest/forktest.c warnx("pid %d: exit %d", pid, WEXITSTATUS(x));
pid 50 user/testbin/kitchen/kitchen.c int pid = fork();
pid 51 user/testbin/kitchen/kitchen.c switch (pid) {
pid 60 user/testbin/kitchen/kitchen.c pids[npids++] = pid;
pid 395 user/testbin/psort/psort.c pid_t pid;
pid 397 user/testbin/psort/psort.c pid = fork();
pid 398 user/testbin/psort/psort.c if (pid < 0) {
pid 403 user/testbin/psort/psort.c return pid;
pid 410 user/testbin/psort/psort.c dowait(int guy, pid_t pid)
pid 414 user/testbin/psort/psort.c result = waitpid(pid, &status, 0);
pid 63 user/testbin/rmtest/rmtest.c pid_t pid;
pid 66 user/testbin/rmtest/rmtest.c pid = fork();
pid 67 user/testbin/rmtest/rmtest.c if (pid<0) {
pid 70 user/testbin/rmtest/rmtest.c if (pid==0) {
pid 79 user/testbin/rmtest/rmtest.c if (waitpid(pid, &status, 0)<0) {
pid 51 user/testbin/sty/sty.c int pid = fork();
pid 52 user/testbin/sty/sty.c switch (pid) {
pid 61 user/testbin/sty/sty.c pids[npids++] = pid;
pid 45 user/testbin/triplehuge/triple.c pid_t pid = fork();
pid 46 user/testbin/triplehuge/triple.c switch (pid) {
pid 57 user/testbin/triplehuge/triple.c return pid;
pid 62 user/testbin/triplehuge/triple.c dowait(int index, int pid)
pid 66 user/testbin/triplehuge/triple.c if (waitpid(pid, &status, 0)<0) {
pid 67 user/testbin/triplehuge/triple.c warn("waitpid for copy #%d (pid %d)", index, pid);
pid 71 user/testbin/triplehuge/triple.c warnx("copy #%d (pid %d): signal %d", index, pid,
pid 76 user/testbin/triplehuge/triple.c warnx("copy #%d (pid %d): exit %d", index, pid,
pid 45 user/testbin/triplemat/triple.c pid_t pid = fork();
pid 46 user/testbin/triplemat/triple.c switch (pid) {
pid 57 user/testbin/triplemat/triple.c return pid;
pid 62 user/testbin/triplemat/triple.c dowait(int index, int pid)
pid 66 user/testbin/triplemat/triple.c if (waitpid(pid, &status, 0)<0) {
pid 67 user/testbin/triplemat/triple.c warn("waitpid for copy #%d (pid %d)", index, pid);
pid 71 user/testbin/triplemat/triple.c warnx("copy #%d (pid %d): signal %d", index, pid,
pid 76 user/testbin/triplemat/triple.c warnx("copy #%d (pid %d): exit %d", index, pid,
pid 45 user/testbin/triplesort/triple.c pid_t pid = fork();
pid 46 user/testbin/triplesort/triple.c switch (pid) {
pid 57 user/testbin/triplesort/triple.c return pid;
pid 62 user/testbin/triplesort/triple.c dowait(int index, int pid)
pid 66 user/testbin/triplesort/triple.c if (waitpid(pid, &status, 0)<0) {
pid 67 user/testbin/triplesort/triple.c warn("waitpid for copy #%d (pid %d)", index, pid);
pid 71 user/testbin/triplesort/triple.c warnx("copy #%d (pid %d): signal %d", index, pid,
pid 76 user/testbin/triplesort/triple.c warnx("copy #%d (pid %d): exit %d", index, pid,
pid 19 user/uw-testbin/argtesttest/argtesttest.c pid_t pid = fork();
pid 20 user/uw-testbin/argtesttest/argtesttest.c switch (pid) {
pid 28 user/uw-testbin/conc-io/conc-io.c pid_t pid[PROCS];
pid 44 user/uw-testbin/conc-io/conc-io.c pid[i] = fork();
pid 45 user/uw-testbin/conc-io/conc-io.c if (pid[i] < 0) {
pid 51 user/uw-testbin/conc-io/conc-io.c if (pid[i] == 0) {
pid 60 user/uw-testbin/conc-io/conc-io.c if (pid[i] < 0) {
pid 67 user/uw-testbin/conc-io/conc-io.c rc[i] = waitpid(pid[i], &status, 0);
pid 68 user/uw-testbin/conc-io/conc-io.c if (rc[i] != pid[i]) {
pid 21 user/uw-testbin/hogparty/hogparty.c pid_t pid = fork();
pid 22 user/uw-testbin/hogparty/hogparty.c switch (pid) {
pid 21 user/uw-testbin/onefork/onefork.c pid_t pid;
pid 22 user/uw-testbin/onefork/onefork.c pid = fork();
pid 23 user/uw-testbin/onefork/onefork.c if (pid < 0) {
pid 26 user/uw-testbin/onefork/onefork.c else if (pid == 0) {
pid 25 user/uw-testbin/pidcheck/pidcheck.c pid_t pid,pid2;
pid 27 user/uw-testbin/pidcheck/pidcheck.c pid = fork();
pid 28 user/uw-testbin/pidcheck/pidcheck.c if (pid < 0) {
pid 31 user/uw-testbin/pidcheck/pidcheck.c else if (pid == 0) {
pid 45 user/uw-testbin/pidcheck/pidcheck.c printf("PC: %d\n",pid);
pid 194 user/uw-testbin/vm-mix1-fork/vm-mix1-fork.c int pid = 0;
pid 208 user/uw-testbin/vm-mix1-fork/vm-mix1-fork.c pid = fork();
pid 209 user/uw-testbin/vm-mix1-fork/vm-mix1-fork.c if (pid < 0) {
pid 214 user/uw-testbin/vm-mix1-fork/vm-mix1-fork.c if (pid == 0) {
pid 234 user/uw-testbin/vm-mix1-fork/vm-mix1-fork.c rc = waitpid(pid, &status, 0);
pid 28 user/uw-testbin/widefork/widefork.c pid_t pid;
pid 29 user/uw-testbin/widefork/widefork.c pid = fork();
pid 30 user/uw-testbin/widefork/widefork.c if (pid < 0) {
pid 33 user/uw-testbin/widefork/widefork.c else if (pid == 0) {
pid 39 user/uw-testbin/widefork/widefork.c return(pid);