repo.or.cz
/
neatlibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
scanf: support reading hex numbers with %x
[neatlibc.git]
/
isatty.c
blob
4eb3b810a9f580c5bf090c8cbc461db78c545676
1
#include <termios.h>
2
#include <sys/ioctl.h>
3
4
int
5
isatty
(
int
fd
)
6
{
7
struct
termios dummy
;
8
9
return
(!
ioctl
(
fd
,
TCGETS
, &
dummy
));
10
}