git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git]
/
lib
/
msvcrt
/
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
}