Re: Linux console interface






1. How is STDIN/STDOUT/STDERR opened? Is this done by getty, and then
all applications descended from getty just inherit this?

2. I know that keyboard input is obtained by reading STDIN and screen
output is acheived by writing to STDOUT. How do you send the console
configuration options. You can do this via the termios functions of
the C library, but does the C library acheive this using ioctls? I
think it does, but I thought console ioctls may change between kernel
versions. Should I just support the latest kernel version and risk old
applications breaking if they do ioctls directly (that is not through
termios)?

3. What C module is the top-level terminal driver in the Linux kernel.
That is, the one that is attached to major char device 4? Also, what
is the association between the terminal driver and /dev/console. They
seem to be two separate devices (/dev/console is on major number 5)



Is any one able to answer my questions?

MQ

.



Relevant Pages

  • Re: Linux console interface
    ... Is this done by getty, ... but does the C library acheive this using ioctls? ... Should I just support the latest kernel version and risk old ... What C module is the top-level terminal driver in the Linux kernel. ...
    (comp.os.linux.development.system)
  • Re: [PATCH 5/7] FUSE: implement ioctl support
    ... namespace than your filesystem and so it's arguments refer ... is implemented in kernel or not. ... Of course FUSE has specific kernel dependencies. ... and I don't see why individual ioctls should be different. ...
    (Linux-Kernel)
  • Re: [PATCH v1 3/6] driver: Google EFI SMI
    ... in kernel sources. ... to ever let userland include kernel headers in any meaningful way. ... it isn't always obvious how to write ioctls properly when you ...
    (Linux-Kernel)
  • Re: [PATCH 5/7] FUSE: implement ioctl support
    ... It would be better if the kernel handed you back a file descriptor to the ... - This seems to allow for random ioctls. ... arbitrary user space processes to support random ioctls. ...
    (Linux-Kernel)
  • Re: [PATCH 5/7] FUSE: implement ioctl support
    ... we won't have the option of doing backwards compatibility when something ... like we can with the 32->64bit ioctls. ... kernel stub kind of beats a lot of benefits of FUSE - no ... Of course FUSE has specific kernel dependencies. ...
    (Linux-Kernel)