Re: Open master pty (/dev/ptmx) non blocking

2022-09-27 Thread David Holland
On Fri, Sep 23, 2022 at 05:34:26PM -0400, David H. Gutteridge wrote:
 > It's not just O_NONBLOCK that can be expected/desired, vte wants to set
 > O_CLOEXEC as well. The Linux kernel accepts and applies both of those
 > flags in a posix_openpt(3) call.

There should be no path through open(2) where O_CLOEXEC doesn't work!
It is not a property of the underlying object. Or absolutely shouldn't
be, anyway.

-- 
David A. Holland
dholl...@netbsd.org


Re: fallocate for FFS

2022-09-27 Thread David Holland
On Mon, Sep 26, 2022 at 11:53:46PM +, Emmanuel Dreyfus wrote:
 > > > I will try to figure it out, since its not yet implemented the syscall 
 > > > is a
 > > > good way to start dev in BSD kernel.
 > > 
 > > I'm not sure about that; many people have started looking at it and
 > > not got anywhere.
 > 
 > It is true that adding a system call is an easy entry point to
 > learn about the kernel. But here the syscall is the easy part, the
 > real work is modifying FFS code to suport it, and that is a steep
 > learning curve.

The system call is already there, also.

-- 
David A. Holland
dholl...@netbsd.org