[lkml]   [1996]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: broken ioctl?
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. \

 \ /
  Last update: 2005-03-22 13:37    [W:0.047 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site