PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
ps2lib_err.h
Go to the documentation of this file.
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# (c) 2003 Marcus R. Brown (mrbrown@0xd6.org)
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
16
#ifndef __PS2LIB_ERR_H__
17
#define __PS2LIB_ERR_H__
18
19
/* Some of these error codes are taken from libc, since a few of them
20
overlap with errors returned by the IOP kernel. Some others have been
21
taken from [RO]man's PS2 BIOS reversing project. The rest were arbitrarily
22
created.
23
24
Feel free to add new error codes where appropriate - just make sure you use
25
them! */
26
27
/* Guide to prefixes:
28
29
LIB - ps2lib library-specific errors
30
IOP - IOP kernel module/subsystem
31
LF - IOP executable file loader
32
SIF - libkernel SIF library
33
*/
34
35
enum
_ps2lib_errors
{
36
38
E_LIB_ERROR
= 1,
39
40
/* Erorrs shared with libc. */
42
E_LIB_FILE_NOT_FOUND
= 2,
44
E_LIB_IO_ERROR
= 5,
46
E_LIB_OUT_OF_MEMORY
= 12,
48
E_LIB_MATH_DOMAIN
= 33,
50
E_LIB_MATH_RANGE
= 34,
51
52
/* Errors returned by the IOP kernel and system modules. */
54
E_IOP_INTR_CONTEXT
= 100,
56
E_IOP_DEPENDANCY
= 200,
58
E_LF_NOT_IRX
= 201,
60
E_LF_FILE_NOT_FOUND
= 203,
62
E_LF_FILE_IO_ERROR
= 204,
64
E_IOP_NO_MEMORY
= 400,
65
66
/* Library-specific (API) errors. */
68
E_LIB_API_INIT
= 0xd601,
70
E_LIB_SEMA_CREATE
= 0xd602,
72
E_LIB_THREAD_CREATE
= 0xd603,
74
E_LIB_THREAD_START
= 0xd604,
76
E_LIB_UNSUPPORTED
= 0xd605,
78
E_LIB_INVALID_ARG
= 0xd606,
79
80
/* SIF library */
82
E_SIF_PKT_ALLOC
= 0xd610,
84
E_SIF_PKT_SEND
= 0xd611,
86
E_SIF_RPC_BIND
= 0xd612,
88
E_SIF_RPC_CALL
= 0xd613,
89
90
91
};
92
#endif
/* __PS2LIB_ERR_H__ */
_ps2lib_errors
_ps2lib_errors
Definition
ps2lib_err.h:35
E_LIB_INVALID_ARG
@ E_LIB_INVALID_ARG
Definition
ps2lib_err.h:78
E_LIB_IO_ERROR
@ E_LIB_IO_ERROR
Definition
ps2lib_err.h:44
E_SIF_PKT_SEND
@ E_SIF_PKT_SEND
Definition
ps2lib_err.h:84
E_IOP_INTR_CONTEXT
@ E_IOP_INTR_CONTEXT
Definition
ps2lib_err.h:54
E_LIB_THREAD_CREATE
@ E_LIB_THREAD_CREATE
Definition
ps2lib_err.h:72
E_LIB_API_INIT
@ E_LIB_API_INIT
Definition
ps2lib_err.h:68
E_SIF_PKT_ALLOC
@ E_SIF_PKT_ALLOC
Definition
ps2lib_err.h:82
E_LIB_ERROR
@ E_LIB_ERROR
Definition
ps2lib_err.h:38
E_LF_FILE_IO_ERROR
@ E_LF_FILE_IO_ERROR
Definition
ps2lib_err.h:62
E_LIB_MATH_RANGE
@ E_LIB_MATH_RANGE
Definition
ps2lib_err.h:50
E_LF_NOT_IRX
@ E_LF_NOT_IRX
Definition
ps2lib_err.h:58
E_LIB_MATH_DOMAIN
@ E_LIB_MATH_DOMAIN
Definition
ps2lib_err.h:48
E_SIF_RPC_CALL
@ E_SIF_RPC_CALL
Definition
ps2lib_err.h:88
E_IOP_NO_MEMORY
@ E_IOP_NO_MEMORY
Definition
ps2lib_err.h:64
E_SIF_RPC_BIND
@ E_SIF_RPC_BIND
Definition
ps2lib_err.h:86
E_LIB_SEMA_CREATE
@ E_LIB_SEMA_CREATE
Definition
ps2lib_err.h:70
E_LIB_FILE_NOT_FOUND
@ E_LIB_FILE_NOT_FOUND
Definition
ps2lib_err.h:42
E_LIB_UNSUPPORTED
@ E_LIB_UNSUPPORTED
Definition
ps2lib_err.h:76
E_IOP_DEPENDANCY
@ E_IOP_DEPENDANCY
Definition
ps2lib_err.h:56
E_LIB_THREAD_START
@ E_LIB_THREAD_START
Definition
ps2lib_err.h:74
E_LF_FILE_NOT_FOUND
@ E_LF_FILE_NOT_FOUND
Definition
ps2lib_err.h:60
E_LIB_OUT_OF_MEMORY
@ E_LIB_OUT_OF_MEMORY
Definition
ps2lib_err.h:46
common
include
ps2lib_err.h
Generated on Thu Nov 14 2024 05:25:24 for PS2SDK by
1.9.8