err = 0;
} else {
Warning(LGPFX" %s of '%s' failed: %s\n", __FUNCTION__,
- UTF8(path), Err_Errno2String(err));
+ UTF8(path), strerror(err));
}
}
if (err != ENOENT) {
Warning(LGPFX" %s open failure on '%s': %s\n", __FUNCTION__,
- UTF8(path), Err_Errno2String(err));
+ UTF8(path), strerror(err));
}
goto bail;
if (err != ENOENT) {
Warning(LGPFX" %s file size failure on '%s': %s\n", __FUNCTION__,
- UTF8(path), Err_Errno2String(err));
+ UTF8(path), strerror(err));
}
FileLockCloseFile(handle);
if (err != 0) {
Warning(LGPFX" %s read failure on '%s': %s\n",
- __FUNCTION__, UTF8(path), Err_Errno2String(err));
+ __FUNCTION__, UTF8(path), strerror(err));
goto bail;
}
if (err && vmx86_debug) {
Log(LGPFX" %s failed for '%s': %s\n", __FUNCTION__,
- UTF8(tokenPtr->lockFilePath), Err_Errno2String(err));
+ UTF8(tokenPtr->lockFilePath), strerror(err));
}
/*
if ((err != 0) && (err != EEXIST)) {
Warning(LGPFX" %s creation failure on '%s': %s\n",
- __FUNCTION__, UTF8(lockDir), Err_Errno2String(err));
+ __FUNCTION__, UTF8(lockDir), strerror(err));
break;
}
} else {
Warning(LGPFX" %s stat failure on '%s': %s\n",
- __FUNCTION__, UTF8(lockDir), Err_Errno2String(err));
+ __FUNCTION__, UTF8(lockDir), strerror(err));
break;
}
if (vmx86_debug) {
Log(LGPFX" %s stat failure on '%s': %s\n",
- __FUNCTION__, UTF8(*memberFilePath), Err_Errno2String(err));
+ __FUNCTION__, UTF8(*memberFilePath), strerror(err));
}
}
if ((err != EEXIST) && // Another process/thread created it...
(err != ENOENT)) { // lockDir is gone...
Warning(LGPFX" %s creation failure on '%s': %s\n",
- __FUNCTION__, UTF8(*entryDirectory),
- Err_Errno2String(err));
+ __FUNCTION__, UTF8(*entryDirectory), strerror(err));
break;
}
if (err != 0) {
Warning(LGPFX" %s write of '%s' failed: %s\n", __FUNCTION__,
- UTF8(entryFilePath), Err_Errno2String(err));
+ UTF8(entryFilePath), strerror(err));
FileLockCloseFile(entryHandle);
if (err != 0) {
Warning(LGPFX" %s close of '%s' failed: %s\n", __FUNCTION__,
- UTF8(entryFilePath), Err_Errno2String(err));
+ UTF8(entryFilePath), strerror(err));
return err;
}
if (err != 0) {
Warning(LGPFX" %s FileRename of '%s' to '%s' failed: %s\n",
__FUNCTION__, UTF8(entryFilePath), UTF8(memberFilePath),
- Err_Errno2String(err));
+ strerror(err));
if (vmx86_debug) {
Log(LGPFX" %s FileLockFileType() of '%s': %s\n",
__FUNCTION__, UTF8(entryFilePath),
- Err_Errno2String(FileAttributesRobust(entryFilePath, NULL)));
+ strerror(FileAttributesRobust(entryFilePath, NULL)));
Log(LGPFX" %s FileLockFileType() of '%s': %s\n",
__FUNCTION__, UTF8(memberFilePath),
- Err_Errno2String(FileAttributesRobust(memberFilePath, NULL)));
+ strerror(FileAttributesRobust(memberFilePath, NULL)));
}
return err;
} else {
if (vmx86_debug) {
Warning(LGPFX" %s clean-up failure for '%s': %s\n",
- __FUNCTION__, UTF8(pathName), Err_Errno2String(err));
+ __FUNCTION__, UTF8(pathName), strerror(err));
}
}