Re: How to know which ioctl is included in the library



subramanian100in@xxxxxxxxx, India wrote:
I am using Redhat Linux kernel version 2.6.9, gcc version 3.4.3.

There are two man pages for ioctl:
1)
#include <stropts.h>

int ioctl(int fildes, int request, ... /* arg */);

2)
#include <sys/ioctl.h>

int ioctl(int d, int request, ...);

How do I know which ioctl function implementation is used in the
library.

Where's the difference?
Both return an int.
Both have an int as the first argument.
Both have an int as the second argument.
Both claim to have a variable number of additional arguments.

Is the keyboard a STREAMS device ? Where can I look for knowing
this ?

Linux doesn't have STREAMS.

In the man page of the first ioctl above, the following is mentioned
in a line:
"character special files (e.g. terminals)"

Here is the keyboard called the terminal ?

The term "terminal" was used when the keyboard/display was a single unit connected to the host using a serial line.

--
These are my personal views and not those of Fujitsu Siemens Computers!
Josef Möllers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize (T. Pratchett)
Company Details: http://www.fujitsu-siemens.com/imprint.html
.



Relevant Pages

  • Shared memory question
    ... int main(int argc, char *argv) ... I run the code on two terminals of the same machine. ...
    (comp.os.linux.development.apps)
  • Re: multiset segfault
    ... > I'm seeing a bug at the moment that I can't track down. ... > of Terminals with a given syllable from myStrHash; ... > int unino; ... > StrHashT myStrHash; ...
    (comp.lang.cpp)
  • multiset segfault
    ... I'm seeing a bug at the moment that I can't track down. ... Terminals containing a certain 'syllable' or 'unino'. ... int unino; ... StrHashT myStrHash; ...
    (comp.lang.cpp)