pid 50 usr/bin/kill/kill.c int errors, numsig, pid; pid 113 usr/bin/kill/kill.c pid = strtol(*argv, &ep, 10); pid 117 usr/bin/kill/kill.c } else if (kill(pid, numsig) == -1) { pid 47 usr/bin/ps/ps.c pid_t pid; pid 67 usr/bin/ps/ps.c pi->pid = -1; pid 73 usr/bin/ps/ps.c pi->pid = m.data[0]; pid 129 usr/bin/ps/ps.c if (pi.pid == -1) pid 132 usr/bin/ps/ps.c printf("%5d %5d", pi.pid, pi.ppid); pid 140 usr/bin/ps/ps.c if (!(ps_flag & PSFX) && (pi.pid == last_pid)) pid 142 usr/bin/ps/ps.c if (pi.pid == -1) pid 145 usr/bin/ps/ps.c printf("%5d", pi.pid); pid 148 usr/bin/ps/ps.c last_pid = pi.pid; pid 88 usr/bin/sh/sh.c showsignal(int pid, int s) pid 94 usr/bin/sh/sh.c error(" %d: %s", pid, sys_siglist[signo]); pid 96 usr/bin/sh/sh.c error(" %d: Signal %d", pid, signo); pid 115 usr/bin/sh/sh.c int pid, i; pid 123 usr/bin/sh/sh.c pid = vfork(); pid 124 usr/bin/sh/sh.c if (pid == -1) { pid 131 usr/bin/sh/sh.c if (pid == 0) { pid 184 usr/bin/sh/sh.c sprintf(spid, "%u\n", pid); pid 189 usr/bin/sh/sh.c while (wait(&status) != pid); pid 192 usr/bin/sh/sh.c showsignal(pid, status); pid 64 usr/lib/libc/stdio/mktemp.c u_int pid; pid 66 usr/lib/libc/stdio/mktemp.c pid = getpid(); pid 69 usr/lib/libc/stdio/mktemp.c *trv = (pid % 10) + '0'; pid 70 usr/lib/libc/stdio/mktemp.c pid /= 10; pid 89 usr/lib/posix/process/fork.c pid_t pid; pid 114 usr/lib/posix/process/fork.c pid = m.data[0]; pid 139 usr/lib/posix/process/fork.c return pid; pid 39 usr/lib/posix/process/getpgid.c getpgid(pid_t pid) pid 44 usr/lib/posix/process/getpgid.c m.data[0] = pid; pid 39 usr/lib/posix/process/getsid.c getsid(pid_t pid) pid 44 usr/lib/posix/process/getsid.c m.data[0] = pid; pid 41 usr/lib/posix/process/kill.c kill(pid_t pid, int sig) pid 50 usr/lib/posix/process/kill.c m.data[0] = pid; pid 40 usr/lib/posix/process/setpgid.c setpgid(pid_t pid, pid_t pgid) pid 45 usr/lib/posix/process/setpgid.c m.data[0] = pid; pid 34 usr/lib/posix/process/setpgrp.c setpgrp(pid_t pid, pid_t pgrp) pid 46 usr/lib/posix/process/waitpid.c waitpid(pid_t pid, int *status, int options) pid 60 usr/lib/posix/process/waitpid.c m.data[0] = pid; pid 61 usr/sbin/init/init.c pid_t pid; pid 72 usr/sbin/init/init.c pid = vfork(); pid 74 usr/sbin/init/init.c if (pid == -1) pid 77 usr/sbin/init/init.c if (pid == 0) { pid 95 usr/sbin/init/init.c while (wait((int *)0) != pid) pid 129 usr/server/proc/main.c pid_t pid; pid 131 usr/server/proc/main.c pid = sys_getpid(); pid 133 usr/server/proc/main.c msg->data[0] = (int)pid; pid 151 usr/server/proc/main.c pid_t pid, pgid; pid 154 usr/server/proc/main.c pid = (pid_t)msg->data[0]; pid 156 usr/server/proc/main.c error = sys_getpgid(pid, &pgid); pid 167 usr/server/proc/main.c pid_t pid, pgid; pid 169 usr/server/proc/main.c pid = (pid_t)msg->data[0]; pid 172 usr/server/proc/main.c return sys_setpgid(pid, pgid); pid 178 usr/server/proc/main.c pid_t pid, sid; pid 181 usr/server/proc/main.c pid = (pid_t)msg->data[0]; pid 183 usr/server/proc/main.c error = sys_getsid(pid, &sid); pid 210 usr/server/proc/main.c pid_t pid; pid 216 usr/server/proc/main.c error = sys_fork(child, vfork, &pid); pid 220 usr/server/proc/main.c msg->data[0] = (int)pid; pid 247 usr/server/proc/main.c pid_t pid, pid_child; pid 250 usr/server/proc/main.c pid = (pid_t)msg->data[0]; pid 253 usr/server/proc/main.c error = sys_waitpid(pid, &status, options, &pid_child); pid 266 usr/server/proc/main.c pid_t pid; pid 269 usr/server/proc/main.c pid = (pid_t)msg->data[0]; pid 272 usr/server/proc/main.c return sys_kill(pid, sig); pid 143 usr/server/proc/proc.h int sys_kill(pid_t pid, int sig); pid 142 usr/server/proc/proc_exit.c sys_waitpid(pid_t pid, int *status, int options, pid_t *retval) pid 149 usr/server/proc/proc_exit.c DPRINTF(("proc: wait pid=%d options=%x\n", pid, options)); pid 170 usr/server/proc/proc_exit.c if (pid > 0) { pid 174 usr/server/proc/proc_exit.c if (p->p_pid == pid) pid 176 usr/server/proc/proc_exit.c } else if (pid == 0) { pid 182 usr/server/proc/proc_exit.c } else if (pid != -1) { pid 186 usr/server/proc/proc_exit.c if (p->p_pgrp->pg_pgid == -pid) pid 63 usr/server/proc/proc_fork.c pid_t pid; pid 65 usr/server/proc/proc_fork.c pid = last_pid + 1; pid 66 usr/server/proc/proc_fork.c if (pid >= PID_MAX) pid 67 usr/server/proc/proc_fork.c pid = 1; pid 68 usr/server/proc/proc_fork.c while (pid != last_pid) { pid 69 usr/server/proc/proc_fork.c if (p_find(pid) == NULL) pid 71 usr/server/proc/proc_fork.c if (++pid >= PID_MAX) pid 72 usr/server/proc/proc_fork.c pid = 1; pid 74 usr/server/proc/proc_fork.c if (pid == last_pid) pid 76 usr/server/proc/proc_fork.c last_pid = pid; pid 77 usr/server/proc/proc_fork.c return pid; pid 84 usr/server/proc/proc_fork.c newproc(struct proc *p, pid_t pid, task_t task) pid 90 usr/server/proc/proc_fork.c if (pid == 0) { pid 91 usr/server/proc/proc_fork.c pid = pid_alloc(); pid 92 usr/server/proc/proc_fork.c if (pid == 0) { pid 104 usr/server/proc/proc_fork.c p->p_pid = pid; pid 53 usr/server/proc/proc_hash.c p_find(pid_t pid) pid 58 usr/server/proc/proc_hash.c head = &pid_table[IDHASH(pid)]; pid 62 usr/server/proc/proc_hash.c if (p->p_pid == pid) pid 75 usr/server/proc/proc_pid.c sys_getpgid(pid_t pid, pid_t *retval) pid 81 usr/server/proc/proc_pid.c if (pid == 0) pid 84 usr/server/proc/proc_pid.c if ((p = p_find(pid)) == NULL) pid 95 usr/server/proc/proc_pid.c sys_getsid(pid_t pid, pid_t *retval) pid 102 usr/server/proc/proc_pid.c if (pid == 0) pid 105 usr/server/proc/proc_pid.c if ((p = p_find(pid)) == NULL) pid 177 usr/server/proc/proc_pid.c sys_setpgid(pid_t pid, pid_t pgid) pid 181 usr/server/proc/proc_pid.c DPRINTF(("proc: setpgid pid=%d pgid=%d\n", pid, pgid)); pid 183 usr/server/proc/proc_pid.c if (pid == 0) pid 186 usr/server/proc/proc_pid.c if ((p = p_find(pid)) == NULL) pid 85 usr/server/proc/proc_sig.c kill_one(pid_t pid, int sig) pid 89 usr/server/proc/proc_sig.c DPRINTF(("proc: killone pid=%d sig=%d\n", pid, sig)); pid 91 usr/server/proc/proc_sig.c if ((p = p_find(pid)) == NULL) pid 142 usr/server/proc/proc_sig.c sys_kill(pid_t pid, int sig) pid 148 usr/server/proc/proc_sig.c DPRINTF(("proc: kill pid=%d sig=%d\n", pid, sig)); pid 157 usr/server/proc/proc_sig.c if (pid > 0) { pid 158 usr/server/proc/proc_sig.c if (pid != curproc->p_pid && !kill_capable()) { pid 162 usr/server/proc/proc_sig.c error = kill_one(pid, sig); pid 164 usr/server/proc/proc_sig.c else if (pid == -1) { pid 190 usr/server/proc/proc_sig.c else if (pid == 0) { pid 194 usr/server/proc/proc_sig.c if (curproc->p_pgrp->pg_pgid != -pid && !kill_capable()) pid 196 usr/server/proc/proc_sig.c error = kill_pg(-pid, sig); pid 53 usr/test/creat/creat.c pid_t pid = getpid(); pid 55 usr/test/creat/creat.c sprintf(path, "t%05d", pid); pid 62 usr/test/creat/creat.c sprintf(file, "p%05d.%03d", pid, i); pid 74 usr/test/creat/creat.c sprintf(file, "p%05d.%03d", pid, i); pid 47 usr/test/fifo/fifo.c int pid, fd1, fd2, len; pid 56 usr/test/fifo/fifo.c pid = vfork(); pid 57 usr/test/fifo/fifo.c if (pid == -1) { pid 61 usr/test/fifo/fifo.c if (pid == 0) { pid 43 usr/test/fork/fork.c pid_t pid; pid 50 usr/test/fork/fork.c pid = vfork(); pid 51 usr/test/fork/fork.c if (pid == 0) { pid 56 usr/test/fork/fork.c while (wait(&sts) != pid)