shadPS4/src/core/libraries/kernel/libkernel.h

40 lines
805 B
C
Raw Normal View History

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);
int ErrnoToSceKernelError(int e);
void SetPosixErrno(int e);
2024-06-30 09:40:06 +02:00
struct OrbisTimesec {
time_t t;
u32 west_sec;
u32 dst_sec;
};
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();
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