2020-06-15 14:18:57 +00:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_TERMIOS_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_TERMIOS_H_
|
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
|
|
|
struct termios { /* GNU/Systemd ABI */
|
|
|
|
uint32_t c_iflag; /* input modes */
|
|
|
|
uint32_t c_oflag; /* output modes */
|
|
|
|
uint32_t c_cflag; /* control modes */
|
|
|
|
uint32_t c_lflag; /* local modes */
|
2021-09-04 05:19:41 +00:00
|
|
|
uint8_t c_cc[20]; /* code mappings */
|
2020-06-15 14:18:57 +00:00
|
|
|
uint32_t c_ispeed; /* input speed */
|
|
|
|
uint32_t c_ospeed; /* output speed */
|
|
|
|
};
|
|
|
|
|
2021-09-04 05:19:41 +00:00
|
|
|
#define c_line c_cc[0] /* line discipline */
|
|
|
|
|
2020-06-15 14:18:57 +00:00
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_TERMIOS_H_ */
|