2020-06-15 14:18:57 +00:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_CALLS_TERMIOS_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_CALLS_TERMIOS_H_
|
|
|
|
#include "libc/calls/struct/termios.h"
|
|
|
|
#include "libc/calls/struct/winsize.h"
|
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
|
|
|
/*───────────────────────────────────────────────────────────────────────────│─╗
|
|
|
|
│ cosmopolitan § teletypewriter control ─╬─│┼
|
|
|
|
╚────────────────────────────────────────────────────────────────────────────│*/
|
|
|
|
|
2020-08-25 11:23:25 +00:00
|
|
|
int tcgetattr(int, struct termios *);
|
|
|
|
int tcsetattr(int, int, const struct termios *);
|
2020-06-15 14:18:57 +00:00
|
|
|
|
|
|
|
int openpty(int *, int *, char *, const struct termios *,
|
2022-07-22 13:58:36 +00:00
|
|
|
const struct winsize *) paramsnonnull((1, 2));
|
2020-06-15 14:18:57 +00:00
|
|
|
int forkpty(int *, char *, const struct termios *, const struct winsize *)
|
2023-09-06 10:54:42 +00:00
|
|
|
paramsnonnull((1, 2)) __wur;
|
2022-07-20 04:18:33 +00:00
|
|
|
char *ptsname(int);
|
2020-06-15 14:18:57 +00:00
|
|
|
errno_t ptsname_r(int, char *, size_t);
|
|
|
|
|
|
|
|
int grantpt(int);
|
|
|
|
int unlockpt(int);
|
2023-09-06 10:54:42 +00:00
|
|
|
int posix_openpt(int) __wur;
|
2020-06-15 14:18:57 +00:00
|
|
|
|
2021-08-12 07:42:14 +00:00
|
|
|
int tcdrain(int);
|
|
|
|
int tcgetsid(int);
|
2023-08-14 03:31:27 +00:00
|
|
|
int tcgetpgrp(int);
|
2021-08-12 07:42:14 +00:00
|
|
|
int tcflow(int, int);
|
|
|
|
int tcflush(int, int);
|
2023-09-10 15:12:43 +00:00
|
|
|
int tcsetsid(int, int);
|
2023-08-14 03:31:27 +00:00
|
|
|
int tcsetpgrp(int, int);
|
2021-08-12 07:42:14 +00:00
|
|
|
int tcsendbreak(int, int);
|
|
|
|
void cfmakeraw(struct termios *);
|
2023-06-18 11:02:01 +00:00
|
|
|
int cfsetspeed(struct termios *, uint32_t);
|
|
|
|
int cfsetospeed(struct termios *, uint32_t);
|
|
|
|
int cfsetispeed(struct termios *, uint32_t);
|
2021-08-12 07:42:14 +00:00
|
|
|
uint32_t cfgetospeed(const struct termios *);
|
|
|
|
uint32_t cfgetispeed(const struct termios *);
|
2023-01-20 17:25:45 +00:00
|
|
|
int tcsetwinsize(int, const struct winsize *);
|
|
|
|
int tcgetwinsize(int, struct winsize *);
|
2021-08-12 07:42:14 +00:00
|
|
|
|
2020-06-15 14:18:57 +00:00
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_CALLS_TERMIOS_H_ */
|