|
ginnOS
The reference: libc, the libraries and the kernel
|
#include "common/stdint.h"Go to the source code of this file.
Data Structures | |
| struct | ktermios |
| struct | kwinsize |
Macros | |
| #define | NCCS 19 |
| the console's terminal settings (termios) and the job-control ioctls. | |
| #define | INLCR 0x0040 |
| #define | IGNCR 0x0080 |
| #define | ICRNL 0x0100 |
| #define | OPOST 0x0001 |
| #define | ONLCR 0x0004 |
| #define | CS8 0x0030 |
| #define | CREAD 0x0080 |
| #define | ISIG 0x0001 |
| #define | ICANON 0x0002 |
| #define | ECHO 0x0008 |
| #define | ECHOE 0x0010 |
| #define | ECHOK 0x0020 |
| #define | TOSTOP 0x0100 |
| #define | IEXTEN 0x8000 |
| #define | XKEYEVENTS 0x40000000 |
| #define | XKEYRAW 0x20000000 |
| #define | VINTR 0 |
| #define | VQUIT 1 |
| #define | VERASE 2 |
| #define | VKILL 3 |
| #define | VEOF 4 |
| #define | VTIME 5 |
| #define | VMIN 6 |
| #define | VSUSP 10 |
| #define | TCGETS 0x5401 |
| #define | TCSETS 0x5402 |
| #define | TCSETSW 0x5403 |
| #define | TCSETSF 0x5404 |
| #define | TIOCSCTTY 0x540E |
| #define | TIOCGPGRP 0x540F |
| #define | TIOCSPGRP 0x5410 |
| #define | TIOCGWINSZ 0x5413 |
| #define | TIOCSWINSZ 0x5414 |
| #define | TIOCGPTN 0x80045430 |
| #define | TIOCSPTLCK 0x40045431 |
Functions | |
| void | console_terminal_init (uint32_t init_pid) |
| set up the console terminal: default settings, and init's session as the one it controls (with init's group in the foreground). | |
| #define NCCS 19 |
the console's terminal settings (termios) and the job-control ioctls.
the layout, flags and request numbers are ABI: the libc's <termios.h> and <sys/ioctl.h> have the same ones (the Linux i386 values).
| #define INLCR 0x0040 |
| #define IGNCR 0x0080 |
| #define ICRNL 0x0100 |
| #define OPOST 0x0001 |
| #define ONLCR 0x0004 |
| #define CS8 0x0030 |
| #define CREAD 0x0080 |
| #define ISIG 0x0001 |
| #define ICANON 0x0002 |
| #define ECHO 0x0008 |
| #define ECHOE 0x0010 |
| #define ECHOK 0x0020 |
| #define TOSTOP 0x0100 |
| #define IEXTEN 0x8000 |
| #define XKEYEVENTS 0x40000000 |
| #define XKEYRAW 0x20000000 |
| #define VINTR 0 |
| #define VQUIT 1 |
| #define VERASE 2 |
| #define VKILL 3 |
| #define VEOF 4 |
| #define VTIME 5 |
| #define VMIN 6 |
| #define VSUSP 10 |
| #define TCGETS 0x5401 |
| #define TCSETS 0x5402 |
| #define TCSETSW 0x5403 |
| #define TCSETSF 0x5404 |
| #define TIOCSCTTY 0x540E |
| #define TIOCGPGRP 0x540F |
| #define TIOCSPGRP 0x5410 |
| #define TIOCGWINSZ 0x5413 |
| #define TIOCSWINSZ 0x5414 |
| #define TIOCGPTN 0x80045430 |
| #define TIOCSPTLCK 0x40045431 |
| void console_terminal_init | ( | uint32_t | init_pid | ) |
set up the console terminal: default settings, and init's session as the one it controls (with init's group in the foreground).
call once at boot, before the first process runs.
| init_pid | the pid init will have (its session and group id). |