source: trunk/minix/lib/posix/_isatty.c@ 22

Last change on this file since 22 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 208 bytes
Line 
1#include <lib.h>
2#define isatty _isatty
3#define tcgetattr _tcgetattr
4#include <termios.h>
5#include <unistd.h>
6
7PUBLIC int isatty(fd)
8int fd;
9{
10 struct termios dummy;
11
12 return(tcgetattr(fd, &dummy) == 0);
13}
Note: See TracBrowser for help on using the repository browser.