fixed name style

This commit is contained in:
georgemoralis 2024-07-01 00:50:07 +03:00
parent 1413a70a92
commit 24f78fac20
3 changed files with 9 additions and 9 deletions

View File

@ -102,7 +102,7 @@ int PS4_SYSV_ABI posix_open(const char* path, int flags, /* SceKernelMode*/ u16
int result = sceKernelOpen(path, flags, mode); int result = sceKernelOpen(path, flags, mode);
// Posix calls different only for their return values // Posix calls different only for their return values
if (result < 0) { if (result < 0) {
err_sce_to_posix(result); ErrSceToPosix(result);
return -1; return -1;
} }
return result; return result;
@ -130,7 +130,7 @@ int PS4_SYSV_ABI posix_close(int d) {
int result = sceKernelClose(d); int result = sceKernelClose(d);
if (result < 0) { if (result < 0) {
LOG_ERROR(Kernel_Pthread, "posix_close: error = {}", result); LOG_ERROR(Kernel_Pthread, "posix_close: error = {}", result);
err_sce_to_posix(result); ErrSceToPosix(result);
return -1; return -1;
} }
return result; return result;
@ -189,7 +189,7 @@ s64 PS4_SYSV_ABI posix_lseek(int d, s64 offset, int whence) {
int result = sceKernelLseek(d, offset, whence); int result = sceKernelLseek(d, offset, whence);
if (result < 0) { if (result < 0) {
LOG_ERROR(Kernel_Pthread, "posix_lseek: error = {}", result); LOG_ERROR(Kernel_Pthread, "posix_lseek: error = {}", result);
err_sce_to_posix(result); ErrSceToPosix(result);
return -1; return -1;
} }
return result; return result;
@ -210,7 +210,7 @@ int PS4_SYSV_ABI posix_read(int d, void* buf, size_t nbytes) {
int result = sceKernelRead(d, buf, nbytes); int result = sceKernelRead(d, buf, nbytes);
if (result < 0) { if (result < 0) {
LOG_ERROR(Kernel_Pthread, "posix_read: error = {}", result); LOG_ERROR(Kernel_Pthread, "posix_read: error = {}", result);
err_sce_to_posix(result); ErrSceToPosix(result);
return -1; return -1;
} }
return result; return result;
@ -241,7 +241,7 @@ int PS4_SYSV_ABI posix_mkdir(const char* path, u16 mode) {
int result = sceKernelMkdir(path, mode); int result = sceKernelMkdir(path, mode);
if (result < 0) { if (result < 0) {
LOG_ERROR(Kernel_Pthread, "posix_mkdir: error = {}", result); LOG_ERROR(Kernel_Pthread, "posix_mkdir: error = {}", result);
err_sce_to_posix(result); ErrSceToPosix(result);
return -1; return -1;
} }
return result; return result;
@ -277,7 +277,7 @@ int PS4_SYSV_ABI posix_stat(const char* path, OrbisKernelStat* sb) {
int result = sceKernelStat(path, sb); int result = sceKernelStat(path, sb);
if (result < 0) { if (result < 0) {
LOG_ERROR(Kernel_Pthread, "posix_stat: error = {}", result); LOG_ERROR(Kernel_Pthread, "posix_stat: error = {}", result);
err_sce_to_posix(result); ErrSceToPosix(result);
return -1; return -1;
} }
return result; return result;
@ -341,7 +341,7 @@ int PS4_SYSV_ABI posix_fstat(int fd, OrbisKernelStat* sb) {
int result = sceKernelFStat(fd, sb); int result = sceKernelFStat(fd, sb);
if (result < 0) { if (result < 0) {
LOG_ERROR(Kernel_Pthread, "posix_fstat: error = {}", result); LOG_ERROR(Kernel_Pthread, "posix_fstat: error = {}", result);
err_sce_to_posix(result); ErrSceToPosix(result);
return -1; return -1;
} }
return result; return result;

View File

@ -68,7 +68,7 @@ int* PS4_SYSV_ABI __Error() {
return &g_posix_errno; return &g_posix_errno;
} }
void err_sce_to_posix(int result) { void ErrSceToPosix(int result) {
int rt = result > SCE_KERNEL_ERROR_UNKNOWN && result <= SCE_KERNEL_ERROR_ESTOP int rt = result > SCE_KERNEL_ERROR_UNKNOWN && result <= SCE_KERNEL_ERROR_ESTOP
? result + -SCE_KERNEL_ERROR_UNKNOWN ? result + -SCE_KERNEL_ERROR_UNKNOWN
: POSIX_EOTHER; : POSIX_EOTHER;

View File

@ -12,7 +12,7 @@ class SymbolsResolver;
namespace Libraries::Kernel { namespace Libraries::Kernel {
void err_sce_to_posix(int result); void ErrSceToPosix(int result);
struct OrbisTimesec { struct OrbisTimesec {
time_t t; time_t t;