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

2001-05-22 Thread Pavel Machek
Hi! > > I've seen this question several times in this thread. I haven't seen the > > obvious answer, though. > > > > Have a new system call: > > > > ctlfd = open_device_control_fd(fd); > > > > If fd is something that doesn't have a control interface (say, it already > > is a control

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

2001-05-22 Thread Pavel Machek
Hi! I've seen this question several times in this thread. I haven't seen the obvious answer, though. Have a new system call: 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

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

2001-05-20 Thread Tim Jansen
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

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

2001-05-20 Thread Kai Henningsen
[EMAIL PROTECTED] (Pavel Machek) wrote on 19.05.01 in <[EMAIL PROTECTED]>: > I think that plan9 uses something different -- they have ttyS0 and > ttyS0ctl. This would leave us with problem "how do I get handle to > ttyS0ctl when I only have handle to ttyS0"? I've seen this question several

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

2001-05-20 Thread Kai Henningsen
[EMAIL PROTECTED] (Pavel Machek) wrote on 19.05.01 in [EMAIL PROTECTED]: I think that plan9 uses something different -- they have ttyS0 and ttyS0ctl. This would leave us with problem how do I get handle to ttyS0ctl when I only have handle to ttyS0? I've seen this question several times in

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

2001-05-20 Thread Tim Jansen
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