mirror of
https://github.com/reactos/reactos.git
synced 2024-09-11 05:12:43 +00:00
implement __iob_func()
svn path=/branches/ros-amd64-bringup/; revision=39331
This commit is contained in:
parent
38c6f78763
commit
58ab969261
|
@ -117,6 +117,11 @@ static CRITICAL_SECTION FILE_cs;
|
||||||
#define LOCK_FILES() do { EnterCriticalSection(&FILE_cs); } while (0)
|
#define LOCK_FILES() do { EnterCriticalSection(&FILE_cs); } while (0)
|
||||||
#define UNLOCK_FILES() do { LeaveCriticalSection(&FILE_cs); } while (0)
|
#define UNLOCK_FILES() do { LeaveCriticalSection(&FILE_cs); } while (0)
|
||||||
|
|
||||||
|
FILE *__cdecl __iob_func()
|
||||||
|
{
|
||||||
|
return _iob;
|
||||||
|
}
|
||||||
|
|
||||||
static inline BOOL is_valid_fd(int fd)
|
static inline BOOL is_valid_fd(int fd)
|
||||||
{
|
{
|
||||||
return fd >= 0 && fd < fdend && (fdesc[fd].wxflag & WX_OPEN);
|
return fd >= 0 && fd < fdend && (fdesc[fd].wxflag & WX_OPEN);
|
||||||
|
|
Loading…
Reference in a new issue