add instrumentation showing when files are opened

This was SVN commit r891.
This commit is contained in:
janwas 2004-08-03 12:57:06 +00:00
parent f1c7af9a95
commit 9a2acadc2e

View File

@ -69,7 +69,7 @@ int open(const char* fn, int oflag, ...)
WIN_SAVE_LAST_ERROR;
int fd = _open(fn, oflag, mode);
debug_out("open %s = %d\n", fn, fd);
WIN_RESTORE_LAST_ERROR;
@ -88,6 +88,7 @@ int open(const char* fn, int oflag, ...)
int close(int fd)
{
debug_out("close %d\n", fd);
assert(3 <= fd && fd < 256);
aio_close(fd);
return _close(fd);