type mess in mingw32/MSYS

int or mode_t?
This commit is contained in:
vscosta 2014-10-30 07:44:43 +00:00
parent e0da1a2ae0
commit 93bad76d18
1 changed files with 15 additions and 1 deletions

View File

@ -789,7 +789,7 @@ simple:
int
_xos_chmod(const char *path, int mode)
_xos_chmod(const char *path, mode_t mode)
{ TCHAR buf[PATH_MAX];
if ( !_xos_os_filenameW(path, buf, PATH_MAX) )
@ -1003,6 +1003,20 @@ _xos_getcwd(char *buf, size_t len)
{ return _xos_canonical_filenameW(buf1, buf, len, 0);
}
return NULL;
}
char *
_xos_getcwd_i(char *buf, int len)
{ TCHAR buf0[PATH_MAX];
TCHAR buf1[PATH_MAX];
if ( _wgetcwd(buf0, sizeof(buf0)/sizeof(TCHAR)) &&
_xos_long_file_nameW(buf0, buf1, sizeof(buf0)/sizeof(TCHAR)) )
{ return _xos_canonical_filenameW(buf1, buf, len, 0);
}
return NULL;
}