ReactOS
0.4.16-dev-1093-g93e9710
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
isatty.cpp
Go to the documentation of this file.
1
//
2
// isatty.cpp
3
//
4
// Copyright (c) Microsoft Corporation. All rights reserved.
5
//
6
// Defines _isatty(), which tests whether a file refers to a character device.
7
//
8
#include <
corecrt_internal_lowio.h
>
9
10
11
12
// Tests if the given file refers to a character device (e.g. terminal, console,
13
// printer, serial port, etc.). Returns nonzero if so; zero if not.
14
extern
"C"
int
__cdecl
_isatty
(
int
const
fh)
15
{
16
_CHECK_FH_RETURN
(fh,
EBADF
, 0);
17
_VALIDATE_RETURN
((fh >= 0 && (
unsigned
)fh < (
unsigned
)
_nhandle
),
EBADF
, 0);
18
19
return
static_cast<
int
>
(
_osfile
(fh) &
FDEV
);
20
}
EBADF
#define EBADF
Definition:
acclib.h:82
__cdecl
#define __cdecl
Definition:
accygwin.h:79
_CHECK_FH_RETURN
#define _CHECK_FH_RETURN(handle, errorcode, retexpr)
Definition:
corecrt_internal.h:1730
corecrt_internal_lowio.h
FDEV
@ FDEV
Definition:
corecrt_internal_lowio.h:85
_nhandle
int _nhandle
Definition:
ioinit.cpp:34
_VALIDATE_RETURN
#define _VALIDATE_RETURN(expr, errorcode, retexpr)
Definition:
corecrt_internal_strtox.h:38
_isatty
int __cdecl _isatty(int const fh)
Definition:
isatty.cpp:14
_osfile
#define _osfile(i)
Definition:
internal.h:72
sdk
lib
ucrt
lowio
isatty.cpp
Generated on Mon May 5 2025 06:14:57 for ReactOS by
1.9.6