minix/lib/posix/_tcgetattr.c

13 lines
222 B
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
#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));
}