Sign in
googlers
/
maze
/
klibc
/
1eaa73ce57def6d35bfe9a11071824990d9f0576
/
.
/
usr
/
klibc
/
isatty.c
blob: c2e4a4ea7fba37e483a220f8971e3ec3a4269984 [
file
] [
log
] [
blame
]
/*
* isatty.c
*/
#include
<unistd.h>
#include
<termios.h>
#include
<errno.h>
int
isatty
(
int
fd
)
{
int
dummy
;
/* All ttys support TIOCGPGRP */
return
!
ioctl
(
fd
,
TIOCGPGRP
,
&
dummy
);
}