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
/
crtdll
/
io
/
isatty.c
1
#include <crtdll/io.h>
2
#include <crtdll/sys/stat.h>
3
4
5
int _isatty( int fd )
6
{
7
struct stat buf;
8
9
if (_fstat (fd, &buf) < 0)
10
return 0;
11
if (S_ISCHR (buf.st_mode))
12
return 1;
13
return 0;
14
}