Lines Matching refs:pidtable
134 static struct pidentry *pidtable = NULL;
278 * Allocate the pidtable and fdtable. An earlier version did
281 if ((pidtable = malloc(Max_fds * sizeof (struct pidentry))) == NULL)
471 (int)pidtable[i].pl_pid, psinfo.pr_wstat));
472 pidtable[i].pl_status = psinfo.pr_wstat;
476 (int)pidtable[i].pl_pid));
477 pidtable[i].pl_status = 0;
493 pfd->revents, (int)pidtable[i].pl_pid, i));
495 pid = pidtable[i].pl_pid; /* Save pid for below */
521 (int)pidtable[i].pl_pid, pfd->revents));
697 * add_pid - add a pid to the fd table and the pidtable.
743 if (pid <= pidtable[i].pl_pid)
751 if (i != pidcnt && pid != pidtable[i].pl_pid) {
758 (void) memmove(&pidtable[i+1], &pidtable[i],
776 pidtable[i].pl_pid = pid;
823 (void) memmove(&pidtable[i], &pidtable[i+1],
840 * find_pid - Returns an index into the pidtable of the specifed pid,
851 p = bsearch(&pe, pidtable, pidcnt, sizeof (struct pidentry), pidcmp);
856 *i = p - (struct pidentry *)pidtable;
936 dprintf((" Cleaning %d\n", (int)pidtable[i].pl_pid));
941 if (proc_is_alive(pidtable[i].pl_pid)) {
943 (int)pidtable[i].pl_pid));
953 if (u->ut_pid == pidtable[i].pl_pid) {
1032 dprintf(("pidtable: "));
1034 dprintf(("%d: %d ", i, (int)pidtable[i].pl_pid));