Re: How to know which ioctl is included in the library
- From: Josef Moellers <josef.moellers@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 25 Jan 2008 10:31:00 +0100
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
.
- References:
- How to know which ioctl is included in the library
- From: subramanian100in@xxxxxxxxx, India
- How to know which ioctl is included in the library
- Prev by Date: cygwin-xhost-tvtime
- Next by Date: Concurrent processes and I/O multiplexing
- Previous by thread: How to know which ioctl is included in the library
- Next by thread: cygwin-xhost-tvtime
- Index(es):
Relevant Pages
|
|