Re: [Bug 7635] New: ioctl(fd,TCSBRK,1) on socket yields EFAULT, expected EINVAL/ENOTTY

2006-12-09 Thread David Miller
From: Eric Dumazet <[EMAIL PROTECTED]> Date: Sat, 09 Dec 2006 09:06:27 +0100 > Well, as long you/we dont break isattty() (which try an > ioctl(fd,TCGETS,&termios) on the fd), it should be OK. > > So TCGETS *MUST* return an error on a socket (and other non tty files) Actually, did anyone actuall

Re: [Bug 7635] New: ioctl(fd,TCSBRK,1) on socket yields EFAULT, expected EINVAL/ENOTTY

2006-12-09 Thread Eric Dumazet
David Miller a écrit : From: Stephen Hemminger <[EMAIL PROTECTED]> Date: Fri, 8 Dec 2006 14:00:21 -0800 That is not true on BSD or other unix standardish ioctl's. There are no conflicts between the TIOC... values and the SIOC... values There is absolutely nothing that we can do about this und

Re: [Bug 7635] New: ioctl(fd,TCSBRK,1) on socket yields EFAULT, expected EINVAL/ENOTTY

2006-12-08 Thread David Miller
From: Stephen Hemminger <[EMAIL PROTECTED]> Date: Fri, 8 Dec 2006 14:00:21 -0800 > That is not true on BSD or other unix standardish ioctl's. > There are no conflicts between the TIOC... values and the SIOC... values There is absolutely nothing that we can do about this under Linux without breaki

Re: [Bug 7635] New: ioctl(fd,TCSBRK,1) on socket yields EFAULT, expected EINVAL/ENOTTY

2006-12-08 Thread Stephen Hemminger
On Fri, 08 Dec 2006 13:36:33 -0800 (PST) David Miller <[EMAIL PROTECTED]> wrote: > From: Stephen Hemminger <[EMAIL PROTECTED]> > Date: Fri, 8 Dec 2006 09:50:55 -0800 > > > ioctl(TCSBRK,1) errno > > pty 0 > > pipe22/EINVAL > > /dev/null 25/ENOTTY > > reg_file25/EN

Re: [Bug 7635] New: ioctl(fd,TCSBRK,1) on socket yields EFAULT, expected EINVAL/ENOTTY

2006-12-08 Thread David Miller
From: Stephen Hemminger <[EMAIL PROTECTED]> Date: Fri, 8 Dec 2006 09:50:55 -0800 > ioctl(TCSBRK,1) errno > pty 0 > pipe 22/EINVAL > /dev/null 25/ENOTTY > reg_file 25/ENOTTY > socket14/EFAULT If you call a TTY ioctl on a socket, it might not work,

Fw: [Bug 7635] New: ioctl(fd,TCSBRK,1) on socket yields EFAULT, expected EINVAL/ENOTTY

2006-12-08 Thread Stephen Hemminger
Begin forwarded message: Date: Tue, 5 Dec 2006 08:55:19 -0800 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Bug 7635] New: ioctl(fd,TCSBRK,1) on socket yields EFAULT, expected EINVAL/ENOTTY http://bugzilla.kernel.org/show_bug.cgi?id=7635 Summary: ioctl(fd,TCSBRK,1) on