prgetmap
extern int prgetmap(proc_t *, int, list_t *);
error = prgetmap(p, 0, &iolhead);
error = prgetmap(p, 1, &iolhead);