Re: no ioctls for serial ports? [was Re: LANANA: To Pending Device Num

Tim Jansen
2001-05-20T14:26:48Z

On Sunday 20 May 2001 15:40, Alexander Viro wrote:
> > ctlfd = open_device_control_fd(fd);
> > If fd is something that doesn't have a control interface (say, it already
> > is a control filehandle), this returns an appropriate error code.
> It may have several. Which one?

That's why I proposed using multi-stream files. With a syscall like

fd2 = open_substream(fd, "somename")

you could have several control streams and also be prepared if you want to
support multi-stream filesystems like NTFS in the future...

BTW: how does this work in NT? Do you first open a file and then fork it like
in my example, do they have a special open for substreams or is the
substream always encoded in the filename?

bye...