kern_getdirentries
error = kern_getdirentries(uap->fd, uap->buf, uap->count, &base,
error = kern_getdirentries(uap->fd, uap->buf, uap->count, NULL,
int kern_getdirentries(int fd, char *buf, u_int count, long *basep, int *res,