np 132 proc.c struct proc *np; np 135 proc.c if((np = allocproc()) == 0) np 139 proc.c if((np->pgdir = copyuvm(proc->pgdir, proc->sz)) == 0){ np 140 proc.c kfree(np->kstack); np 141 proc.c np->kstack = 0; np 142 proc.c np->state = UNUSED; np 145 proc.c np->sz = proc->sz; np 146 proc.c np->parent = proc; np 147 proc.c *np->tf = *proc->tf; np 150 proc.c np->tf->eax = 0; np 154 proc.c np->ofile[i] = filedup(proc->ofile[i]); np 155 proc.c np->cwd = idup(proc->cwd); np 157 proc.c safestrcpy(np->name, proc->name, sizeof(proc->name)); np 159 proc.c pid = np->pid; np 163 proc.c np->state = RUNNABLE; np 467 usertests.c int fd, pid, i, n, nc, np; np 496 usertests.c nc = np = 0; np 502 usertests.c np++; np 507 usertests.c if(nc == 10000 && np == 10000){ np 510 usertests.c printf(1, "sharedfd oops %d %d\n", nc, np);