получение и установка атрибутов терминала, управление линией, получение и установка скорости передачи данных (get and set terminal attributes, line control, get and set baud rate)
Синопсис (Synopsis)
#include <termios.h>
#include <unistd.h>
int tcgetattr(int
fd, struct termios *
termios_p);
int tcsetattr(int
fd, int
optional_actions,
const struct termios *
termios_p);
int tcsendbreak(int
fd, int
duration);
int tcdrain(int
fd);
int tcflush(int
fd, int
queue_selector);
int tcflow(int
fd, int
action);
void cfmakeraw(struct termios *
termios_p);
speed_t cfgetispeed(const struct termios *
termios_p);
speed_t cfgetospeed(const struct termios *
termios_p);
int cfsetispeed(struct termios *
termios_p, speed_t
speed);
int cfsetospeed(struct termios *
termios_p, speed_t
speed);
int cfsetspeed(struct termios *
termios_p, speed_t
speed);
Feature Test Macro Requirements for glibc (see
feature_test_macros(7)):
cfsetspeed
(), cfmakeraw
():
Since glibc 2.19:
_DEFAULT_SOURCE
Glibc 2.19 and earlier:
_BSD_SOURCE