kern_fpathconf
error = kern_fpathconf(curthread, VTOFDESC(vp)->fd_fd,
error = kern_fpathconf(td, uap->fd, uap->name, &value);
int kern_fpathconf(struct thread *td, int fd, int name, long *valuep);