np 184 proc.c struct proc *np; np 188 proc.c if((np = allocproc()) == 0){ np 193 proc.c if((np->pgdir = copyuvm(curproc->pgdir, curproc->sz)) == 0){ np 194 proc.c kfree(np->kstack); np 195 proc.c np->kstack = 0; np 196 proc.c np->state = UNUSED; np 199 proc.c np->sz = curproc->sz; np 200 proc.c np->parent = curproc; np 201 proc.c *np->tf = *curproc->tf; np 204 proc.c np->tf->eax = 0; np 208 proc.c np->ofile[i] = filedup(curproc->ofile[i]); np 209 proc.c np->cwd = idup(curproc->cwd); np 211 proc.c safestrcpy(np->name, curproc->name, sizeof(curproc->name)); np 213 proc.c pid = np->pid; np 217 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);