projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
BSD 3 release
[unix-history]
/
usr
/
src
/
libc
/
gen
/
isatty.c
/*
* Returns 1 iff file is a tty
*/
#include <sgtty.h>
isatty
(
f
)
{
struct
sgttyb ttyb
;
if
(
gtty
(
f
, &
ttyb
) <
0
)
return
(
0
);
return
(
1
);
}