8000 minix/lib/posix/_isatty.c at v3.1.4 · ledinhminh/minix · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
executable file
·
13 lines (11 loc) · 208 Bytes

_isatty.c

File metadata and controls

executable file
·
13 lines (11 loc) · 208 Bytes
< 4040 div class="react-code-file-contents codeFileContents__2n7WVf" role="presentation" aria-hidden="true" data-tab-size="4" data-paste-markdown-skip="true" style="tab-size:4;max-width:unset" data-hpc="true" containertiming="hpc">
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <lib.h>
#define isatty _isatty
#define tcgetattr _tcgetattr
#include <termios.h>
#include <unistd.h>
PUBLIC int isatty(fd)
int fd;
{
struct termios dummy;
return(tcgetattr(fd, &dummy) == 0);
}
0