2020-06-15 14:18:57 +00:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_TERMIOS_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_TERMIOS_H_
|
2023-06-15 00:02:57 +00:00
|
|
|
|
|
|
|
#define NCCS 20
|
|
|
|
|
2020-06-15 14:18:57 +00:00
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
2023-06-15 00:02:57 +00:00
|
|
|
struct termios { /* cosmo 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 */
|
|
|
|
uint8_t c_cc[NCCS]; /* code mappings */
|
|
|
|
uint32_t _c_ispeed; /* use cfgetispeed() and cfsetispeed() */
|
|
|
|
uint32_t _c_ospeed; /* use cfgetospeed() and cfsetospeed() */
|
2020-06-15 14:18:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_TERMIOS_H_ */
|