fdalloc
error = fdalloc(curproc, 0, &fd);
if (fdalloc(lp->lwp_proc, cfi->cfi_index, &fd) != 0) {
if ((error = fdalloc(lp->lwp_proc, 0, resultfd)) != 0) {
if (fdalloc(p, 0, &f)) {
if ((error = fdalloc(p, 0, &indx)) != 0) {
int fdalloc (struct proc *p, int want, int *result);