Re: broken ioctl?

Miquel van Smoorenburg (miquels@drinkel.cistron.nl)
25 Oct 1996 22:17:15 +0200


In article <Pine.ULT.3.91.961025141924.12437B-100000@blaze.trentu.ca>,
Charles Warden <csopr@trentu.ca> 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.

>It seems like a perfectly good thing to do, and it
>even worked on linux 1.2.13. I'm trying to compile tintin++.

It didn't work on 1.2.13 either..

But you might want to compile with

-D_BSD_SOURCE -I /usr/include/bsd

and link with

-lbsd

that will give you TIOCGETP emulation if you really need it

Mike.

-- 
|  Miquel van Smoorenburg  \ The answer to Life, the Universe and Everything \
| miquels@drinkel.cistron.nl \ Just reinstall windows and try again, sir.     \