repo.or.cz
/
newlib-cygwin.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Cygwin: access: Fix X_OK behaviour for backup operators and admins
[newlib-cygwin.git]
/
newlib
/
libc
/
sys
/
sysvi386
/
isatty.c
blob
fa1e3557f20af77225197656976b78db15e79290
1
#include <sys/termio.h>
2
3
int
4
isatty
(
fd
)
5
int
fd
; {
6
struct
termio buf
;
7
8
if
(
ioctl
(
fd
,
TCGETA
, &
buf
) == -
1
)
9
return
0
;
10
return
1
;
11
}