Added debug messages.

Added special handling for std file descriptors.

svn path=/trunk/; revision=2798
This commit is contained in:
Hartmut Birr 2002-04-01 21:51:59 +00:00
parent e8b5ff7de0
commit 5cd1300eac

View file

@ -12,8 +12,14 @@
#include <msvcrt/stdio.h>
#include <msvcrt/internal/file.h>
#define NDEBUG
#include <msvcrt/msvcrtdbg.h>
int _setmode(int _fd, int _newmode)
{
DPRINT("_setmod(fd %d, newmode %x)\n", _fd, _newmode);
if (_fd >= 0 && _fd < 5)
return _O_TEXT;
return __fileno_setmode(_fd, _newmode);
}