Re: broken ioctl?
Oleg Kibirev (snowcat@netgate.net)
Mon, 04 Nov 1996 19:30:29 -0800
Roeland Th. Jansen wrote:
> Miquel van Smoorenburg (miquels@drinkel.cistron.nl) wrote:
> > >Perhaps this isn't a kernel question, but I am not exactly sure how
> > >ioctls are implemented. In my 2.0.23 kernel, ioctl(0, TIOCGETP, &sggbuf)
> > >always returns <0.
> >
> > Because it has never been implemented in the Linux kernel - Linux uses
> > termios, thank God.
>
> in other words.... thank linus :-)
I think a better answer to the original question would be to compile the
program with -I/usr/include/bsd -include /usr/include/bsd/bsd.h and link
it with -lbsd. This should simulate most of BSD ioctls not directly
supported
by kernel
--
_. _ .
(_ ,_ _ , . / ` _ _L | Email: Oleg Kibirev <snowcat@netgate.net>
._)| U(_)\/\/ \_,(_L/L | Visit
http://math.math.CSUFresno.EDU/~oleg/math.html
------------------------' to get my programs + PGP public key