POSIX to ISO FS functions naming.

git-svn-id: svn://svn.code.sf.net/p/hxcfloppyemu/code/HxCFloppyEmulator/libhxcadaptor/trunk@1318 63fa2f70-6a9b-4bc4-b855-9c6a949b1d69
This commit is contained in:
Jean-François DEL NERO
2015-09-05 17:27:07 +00:00
parent 33083d45b5
commit 639b72edb6
+6 -6
View File
@@ -200,20 +200,20 @@ FILE *hxc_fopen (const char *filename, const char *mode)
if(append)
{
if(lseek(fd,0,SEEK_END) == -1)
if(_lseek(fd,0,SEEK_END) == -1)
{
close (fd);
_close (fd);
return NULL;
}
}
else
{
lseek(fd,0,SEEK_SET);
_lseek(fd,0,SEEK_SET);
}
stream = fdopen(fd,mode);
stream = _fdopen(fd,mode);
if(stream == NULL)
close(fd);
_close(fd);
}
return stream;
@@ -474,7 +474,7 @@ int hxc_mkdir(char * folder)
{
#ifdef WIN32
mkdir(folder);
_mkdir(folder);
#else
mkdir(folder,0777);
#endif