fixed name style
This commit is contained in:
parent
1413a70a92
commit
24f78fac20
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue