Device- and Class- Specific Functions Manager tcgetattr - Gets terminal attributes
RTEMS POSIX API User's Guide
6.4.5: tcgetattr - Gets terminal attributes
CALLING SEQUENCE:
#include <termios.h>
#include <unistd.h>
int tcgetattr(
int fildes,
struct termios *p
);
STATUS CODES:
EBADF
Invalid file descriptor
ENOOTY
Terminal control function attempted for a file that is not a terminal.
DESCRIPTION:
The tcgetattr() gets the parameters associated with the terminal
referred to by fildes and stores them into the termios()
structure pointed to by termios_p.