> To fully abstract /dev/ptm in libutil, the API below would have to be
> extended to have another function to open /dev/ptm in libutil as well,
> eg. (better names would be desired):
> 
>       fd = openptmfd()
>       pledge()
>       fdopenpty(fd, ...)
>       fdopenpty(fd, ...)
>       fdopenpty(fd, ...)
>       fdopenpty(fd, ...)

I'm not certain about prefixing the name with "fd"; after all it isn't
just some fd, it is a VERY specific fd which was opened earlier as
a resource.   It is "some resource".  Maybe this "some resource" is
a concept found on other systems, where it might not be a fd.

Reply via email to