repo.or.cz
/
minix3.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
. pci driver now returns devices, even when they have been pci_reserve()d
[minix3.git]
/
lib
/
posix
/
_isatty.c
blob
39d0069fe39229e951678745ef0efbd306dda3a0
1
#include <lib.h>
2
#define isatty _isatty
3
#define tcgetattr _tcgetattr
4
#include <termios.h>
5
#include <unistd.h>
6
7
PUBLIC
int
isatty
(
fd
)
8
int
fd
;
9
{
10
struct
termios dummy
;
11
12
return
(
tcgetattr
(
fd
, &
dummy
) ==
0
);
13
}