2024-02-23 22:32:32 +01:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
2023-11-06 00:11:54 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include "common/types.h"
|
|
|
|
|
|
|
|
namespace Core::Loader {
|
|
|
|
class SymbolsResolver;
|
|
|
|
}
|
|
|
|
|
2024-04-13 23:35:48 +02:00
|
|
|
namespace Libraries::Kernel {
|
2023-11-06 00:11:54 +01:00
|
|
|
|
2024-06-30 23:50:07 +02:00
|
|
|
void ErrSceToPosix(int result);
|
2024-07-11 13:37:21 +02:00
|
|
|
int ErrnoToSceKernelError(int e);
|
2024-08-17 00:20:21 +02:00
|
|
|
void SetPosixErrno(int e);
|
2024-06-30 09:40:06 +02:00
|
|
|
|
2024-05-12 18:03:51 +02:00
|
|
|
struct OrbisTimesec {
|
|
|
|
time_t t;
|
2024-06-05 21:27:28 +02:00
|
|
|
u32 west_sec;
|
|
|
|
u32 dst_sec;
|
2024-05-12 18:03:51 +02:00
|
|
|
};
|
|
|
|
|
2024-06-15 16:51:51 +02:00
|
|
|
typedef struct {
|
|
|
|
uint32_t timeLow;
|
|
|
|
uint16_t timeMid;
|
|
|
|
uint16_t timeHiAndVersion;
|
|
|
|
uint8_t clockSeqHiAndReserved;
|
|
|
|
uint8_t clockSeqLow;
|
|
|
|
uint8_t node[6];
|
|
|
|
} OrbisKernelUuid;
|
|
|
|
|
2023-11-11 11:13:43 +01:00
|
|
|
int* PS4_SYSV_ABI __Error();
|
2024-06-30 18:22:39 +02:00
|
|
|
int PS4_SYSV_ABI sceKernelGetCompiledSdkVersion(int* ver);
|
2023-11-06 00:11:54 +01:00
|
|
|
|
2024-04-13 23:35:48 +02:00
|
|
|
void LibKernel_Register(Core::Loader::SymbolsResolver* sym);
|
2023-11-06 00:11:54 +01:00
|
|
|
|
2024-04-13 23:35:48 +02:00
|
|
|
} // namespace Libraries::Kernel
|