Rivoreo Source Code Repositories
src.rivoreo.one
/
devel
/
celibc
/
ca2aeb48f35c93b8c2b9a46618c175a4ca4049cf
/
.
/
posix-io
/
isatty.c
blob: b3b83e0d93613579a6bbdb04ccb8ca4f92726acd [
file
] [
log
] [
blame
] [
raw
]
#include
<windows.h>
#include
<shared.h>
int
isatty
(
int
fd
)
{
BY_HANDLE_FILE_INFORMATION_NEW information
;
if
(
fd
==
-
1
)
return
0
;
return
!
GetFileInformationByHandle
((
void
*)
fd
,
(
BY_HANDLE_FILE_INFORMATION
*)&
information
);
}