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

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