38be0cd5625a56b6389c7dd77c9f02103597e20e
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: lib/crtdll/io/setmode.c
5 * PURPOSE: Sets the file translation mode
6 * PROGRAMER: Boudewijn Dekker
11 #include <msvcrt/io.h>
12 #include <msvcrt/stdio.h>
13 #include <msvcrt/internal/file.h>
16 #include <msvcrt/msvcrtdbg.h>
19 int _setmode(int _fd
, int _newmode
)
21 DPRINT("_setmod(fd %d, newmode %x)\n", _fd
, _newmode
);
22 if (_fd
>= 0 && _fd
< 5)
24 return __fileno_setmode(_fd
, _newmode
);