git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
3ed7a80d1e6c8a181564ea33f28ea0c2ac334b8f
[reactos.git]
/
lib
/
crtdll
/
io
/
isatty.c
1
#include <msvcrt/io.h>
2
#include <msvcrt/sys/stat.h>
3
4
#define NDEBUG
5
#include <msvcrt/msvcrtdbg.h>
6
7
int _isatty( int fd )
8
{
9
struct stat buf;
10
DPRINT("_isatty(fd %d)\n", fd);
11
if (_fstat (fd, &buf) < 0)
12
return 0;
13
if (S_ISCHR (buf.st_mode))
14
return 1;
15
return 0;
16
}