How to know which ioctl is included in the library



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.

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

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 ?

Kindly clarify.

Thanks
V.Subramanian
.



Relevant Pages

  • Re: ioctl to keyboard device file
    ... is coming from keyboard. ... For that I created one character device file. ... it I am sending input characters through ioctl. ... Whether uinput also doing the same thing, ...
    (Linux-Kernel)
  • Re: Scancode Mapper and sleep/power keys
    ... > power keys show up under a separate collection than the keyboard, ... > don't have to filter the keyboard at all. ... in the i8042prt case, both the IOCTL ...
    (microsoft.public.win32.programmer.kernel)
  • Re: ioctl to keyboard device file
    ... > is coming from keyboard. ... For that I created one character device file. ... > it I am sending input characters through ioctl. ...
    (Linux-Kernel)
  • Re: Keyboard filter driver - obtaining keyboard indicator status
    ... you cannot send bytes directly to the keyboard. ... see the ddk for the format of the buffers for this IOCTL. ... > data from the keyboard by sending IOCTLs to this control device object. ... > pass the request down the keyboard stack, ...
    (microsoft.public.development.device.drivers)
  • stuffing characters to keyboard buffer.
    ... keyboard buffer, so that they will be send to applications as if they are ... coming from keyboard irrespective of console or x-windows mode. ... Now the question is how to send ioctl to this ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)