minix/lib/posix/_tcgetattr.c
2009-11-09 10:26:00 +00:00

12 lines
222 B
C

#define tcgetattr _tcgetattr
#define ioctl _ioctl
#include <sys/ioctl.h>
#include <errno.h>
#include <termios.h>
int tcgetattr(fd, termios_p)
int fd;
struct termios *termios_p;
{
return(ioctl(fd, TCGETS, termios_p));
}