DBD-cubrid
view release on metacpan or search on metacpan
cci-src/src/base/porting.c view on Meta::CPAN
int len = 0;
if (tmp_str != NULL)
{
strncpy (tmp_path, tmp_str, _MAX_PATH);
/*
* The output of _fullpath() ends with '\'(Windows format) or without it.
* It doesn't end with '/'(Linux format).
*
* Even if the directory path exists, the stat() in Windows fails when
* the directory path ends with '\'.
*/
len = strlen (tmp_path);
if (len > 0 && tmp_path[len - 1] == '\\')
{
tmp_path[len - 1] = '\0';
}
if (stat (tmp_path, &stat_buf) == 0)
{
cci-src/src/base/porting.c view on Meta::CPAN
if (NT_PageSize == 0)
{
GetSystemInfo (&sysinfo);
NT_PageSize = sysinfo.dwPageSize;
}
return (NT_PageSize);
}
#if 0
/*
* stat - Windows port of Unix stat()
* return: 0 or -1
* path(in): file path
* buffer(in): struct _stat
*/
int
stat (const char *path, struct stat *buf)
{
struct _stat _buf;
int rc;
( run in 0.593 second using v1.01-cache-2.11-cpan-49f99fa48dc )