fsetfdflags
error = fsetfdflags(p->p_fd, fd,
int fsetfdflags(struct filedesc *fdp, int fd, int set_flags);