> I think putting these in libutil is a good idea. tmux could use > them. I'd like to have openptmfd() as you suggest as well - it'd be nice > to hide PATH_PTMDEV as well as the PTMGET. > > Life would be a lot easier for portable if there was fdforkpty() as > well.
I agree. Are the -portable versions of such an interface trivial?