Re: broken ioctl?

Miquel van Smoorenburg (
25 Oct 1996 22:17:15 +0200

In article <>,
Charles Warden <> 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


that will give you TIOCGETP emulation if you really need it


|  Miquel van Smoorenburg  \ The answer to Life, the Universe and Everything \
| \ Just reinstall windows and try again, sir.     \