summaryrefslogtreecommitdiff
path: root/lib/libc/termios/tcgetattr.c
blob: a52eeedf021d6a9c674ee9bf4c9ec32f619bc81b (plain)
1
2
3
4
5
6
7
8
9
#include <termios.h>
#include <syscall.h>
#include <asm-generic/ioctls.h>

int tcgetattr(int fildes, struct termios *termios_p)

{
	return syscall(ioctl, fildes, TCGETS, termios_p);
}