mirror of
https://github.com/jfdelnero/HxCFloppyEmulator.git
synced 2026-07-28 04:06:36 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user