pts_alloc
return (pts_alloc(fflags & (FREAD|FWRITE), td, fp));
error = pts_alloc(FFLAGS(uap->flags & O_ACCMODE), td, fp);
int pts_alloc(int fflags, struct thread *td, struct file *fp);