1 2 3 4 5 6 7
#include <termios.h> #include <sys/ioctl.h> int tcgetattr(int fildes, struct termios *termios_p) { return ioctl(fildes, TCGETS, termios_p); }