ReactOS
0.4.16-dev-1948-gd260c1d
fileno.cpp
Go to the documentation of this file.
1
//
2
// fileno.cpp
3
//
4
// Copyright (c) Microsoft Corporation. All rights reserved.
5
//
6
// Defines _fileno(), which returns the lowio file handle for the given stdio
7
// stream.
8
//
9
#include <
corecrt_internal_stdio.h
>
10
11
12
13
extern
"C"
int
__cdecl
_fileno
(
FILE
*
const
public_stream)
14
{
15
__crt_stdio_stream
const
stream
(public_stream);
16
17
_VALIDATE_RETURN
(
stream
.valid(),
EINVAL
, -1);
18
return
stream
.lowio_handle();
19
}
EINVAL
#define EINVAL
Definition:
acclib.h:90
__cdecl
#define __cdecl
Definition:
accygwin.h:79
__crt_stdio_stream
Definition:
corecrt_internal_stdio.h:197
corecrt_internal_stdio.h
_VALIDATE_RETURN
#define _VALIDATE_RETURN(expr, errorcode, retexpr)
Definition:
corecrt_internal_strtox.h:38
_fileno
int __cdecl _fileno(FILE *const public_stream)
Definition:
fileno.cpp:13
_iobuf
Definition:
mbstring.h:19
stream
Definition:
parse.h:23
sdk
lib
ucrt
stdio
fileno.cpp
Generated on Fri Dec 5 2025 06:15:42 for ReactOS by
1.9.6