author | Johannes Sixt <johannes.sixt@telecom.at> | |
Thu, 15 Nov 2007 21:22:47 +0000 (22:22 +0100) | ||
committer | Johannes Sixt <johannes.sixt@telecom.at> | |
Mon, 23 Jun 2008 11:38:07 +0000 (13:38 +0200) | ||
commit | 3e4a1ba07b65506c36f7f40fa76fcee26c400a5c | |
tree | b17b947348df45d0c1b44d315a119a04c0430cbb | tree | snapshot |
parent | 23326d14edbd16469453f6c3ecdd98ab90e6efb7 | commit | diff |
Windows: Implement a wrapper of the open() function.
The wrapper does two things:
- Requests to open /dev/null are redirected to open the nul pseudo file.
- A request to open a file that currently exists as a directory on
Windows fails with EACCES; this is changed to EISDIR.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
The wrapper does two things:
- Requests to open /dev/null are redirected to open the nul pseudo file.
- A request to open a file that currently exists as a directory on
Windows fails with EACCES; this is changed to EISDIR.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
compat/mingw.c | diff | blob | history | |
compat/mingw.h | diff | blob | history |