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

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