summaryrefslogtreecommitdiff
path: root/src/termios/tcgetattr.c
blob: 545a0bf8ad135696e526c22c9bf1f251879292ac (plain) (blame)
1
2
3
4
5
6
7
8
9
#include <termios.h>
#include <sys/ioctl.h>

int tcgetattr(int fd, struct termios *tio)
{
	if (ioctl(fd, TCGETS, tio))
		return -1;
	return 0;
}