repo.or.cz
/
tangerine.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
mlib update: new isnan()/isnanf() implementation
[tangerine.git]
/
compiler
/
clib
/
isatty.c
blob
07801584e4a51597914e1e1bd2fc4d76bd011f0b
1
/*
2
Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3
$Id$
4
*/
5
6
#include <proto/dos.h>
7
8
#include
"__open.h"
9
10
#include <unistd.h>
11
12
int
isatty
(
int
fd
)
13
{
14
fdesc
*
desc
=
__getfdesc
(
fd
);
15
16
if
(
desc
)
17
return
IsInteractive
(
desc
->
fh
)?
1
:
0
;
18
19
return
0
;
20
}