Uses Windows API for reading/writing to improve error detection and reporting.

This commit is contained in:
Andrea Mazzoleni 2013-04-06 14:52:23 +02:00
parent aeb167bb16
commit e2c269fcdf
4 changed files with 227 additions and 20 deletions

2
util.c
View file

@ -49,7 +49,9 @@ static unsigned strdecset[256] =
STREAM* sopen_read(const char* file)
{
#if HAVE_POSIX_FADVISE
int ret;
#endif
STREAM* s = malloc_nofail(sizeof(STREAM));
s->handle_size = 1;