minix/lib/posix/_tcgetattr.c
2005-04-21 14:53:53 +00:00

12 lines
222 B
C
Executable file

#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));
}