Windows: Implement a wrapper of the open() function.
authorJohannes Sixt <johannes.sixt@telecom.at>
Thu, 15 Nov 2007 21:22:47 +0000 (22:22 +0100)
committerJohannes Sixt <johannes.sixt@telecom.at>
Mon, 23 Jun 2008 11:38:07 +0000 (13:38 +0200)
commit3e4a1ba07b65506c36f7f40fa76fcee26c400a5c
treeb17b947348df45d0c1b44d315a119a04c0430cbb
parent23326d14edbd16469453f6c3ecdd98ab90e6efb7
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>
compat/mingw.c
compat/mingw.h