ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
ps2lib_err.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  _ps2lib_errors {
  E_LIB_ERROR = 1 ,
  E_LIB_FILE_NOT_FOUND = 2 ,
  E_LIB_IO_ERROR = 5 ,
  E_LIB_OUT_OF_MEMORY = 12 ,
  E_LIB_MATH_DOMAIN = 33 ,
  E_LIB_MATH_RANGE = 34 ,
  E_IOP_INTR_CONTEXT = 100 ,
  E_IOP_DEPENDANCY = 200 ,
  E_LF_NOT_IRX = 201 ,
  E_LF_FILE_NOT_FOUND = 203 ,
  E_LF_FILE_IO_ERROR = 204 ,
  E_IOP_NO_MEMORY = 400 ,
  E_LIB_API_INIT = 0xd601 ,
  E_LIB_SEMA_CREATE = 0xd602 ,
  E_LIB_THREAD_CREATE = 0xd603 ,
  E_LIB_THREAD_START = 0xd604 ,
  E_LIB_UNSUPPORTED = 0xd605 ,
  E_LIB_INVALID_ARG = 0xd606 ,
  E_SIF_PKT_ALLOC = 0xd610 ,
  E_SIF_PKT_SEND = 0xd611 ,
  E_SIF_RPC_BIND = 0xd612 ,
  E_SIF_RPC_CALL = 0xd613
}
 

Detailed Description

Error codes shared across ps2lib.

Definition in file ps2lib_err.h.

Enumeration Type Documentation

◆ _ps2lib_errors

Enumerator
E_LIB_ERROR 

Generic (unmapped) error.

E_LIB_FILE_NOT_FOUND 

libc: File not found.

E_LIB_IO_ERROR 

libc: I/O error.

E_LIB_OUT_OF_MEMORY 

libc: No more memory.

E_LIB_MATH_DOMAIN 

libc: Math arg out of domain of func

E_LIB_MATH_RANGE 

libc: Math result not representable

E_IOP_INTR_CONTEXT 

IOP is in exception context.

E_IOP_DEPENDANCY 

inter IRX dependancy error.

E_LF_NOT_IRX 

Invalid IRX module.

E_LF_FILE_NOT_FOUND 

Unable to open executable file.

E_LF_FILE_IO_ERROR 

Error while accessing file.

E_IOP_NO_MEMORY 

IOP is out of memory.

E_LIB_API_INIT 

Unable to initialize library.

E_LIB_SEMA_CREATE 

Couldn't create semaphore.

E_LIB_THREAD_CREATE 

Couldn't create thread.

E_LIB_THREAD_START 

Couldn't execute thread.

E_LIB_UNSUPPORTED 

Unsupported/unimplemented function.

E_LIB_INVALID_ARG 

Invalid argument.

E_SIF_PKT_ALLOC 

Can't allocate SIF packet.

E_SIF_PKT_SEND 

Can't send SIF packet.

E_SIF_RPC_BIND 

Couldn't bind to server.

E_SIF_RPC_CALL 

Couldn't execute RPC call.

Definition at line 35 of file ps2lib_err.h.

35  {
36 
38  E_LIB_ERROR = 1,
39 
40  /* Erorrs shared with libc. */
44  E_LIB_IO_ERROR = 5,
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 };
@ E_LIB_INVALID_ARG
Definition: ps2lib_err.h:78
@ E_LIB_IO_ERROR
Definition: ps2lib_err.h:44
@ E_SIF_PKT_SEND
Definition: ps2lib_err.h:84
@ E_IOP_INTR_CONTEXT
Definition: ps2lib_err.h:54
@ E_LIB_THREAD_CREATE
Definition: ps2lib_err.h:72
@ E_LIB_API_INIT
Definition: ps2lib_err.h:68
@ E_SIF_PKT_ALLOC
Definition: ps2lib_err.h:82
@ E_LIB_ERROR
Definition: ps2lib_err.h:38
@ E_LF_FILE_IO_ERROR
Definition: ps2lib_err.h:62
@ E_LIB_MATH_RANGE
Definition: ps2lib_err.h:50
@ E_LF_NOT_IRX
Definition: ps2lib_err.h:58
@ E_LIB_MATH_DOMAIN
Definition: ps2lib_err.h:48
@ E_SIF_RPC_CALL
Definition: ps2lib_err.h:88
@ E_IOP_NO_MEMORY
Definition: ps2lib_err.h:64
@ E_SIF_RPC_BIND
Definition: ps2lib_err.h:86
@ E_LIB_SEMA_CREATE
Definition: ps2lib_err.h:70
@ E_LIB_FILE_NOT_FOUND
Definition: ps2lib_err.h:42
@ E_LIB_UNSUPPORTED
Definition: ps2lib_err.h:76
@ E_IOP_DEPENDANCY
Definition: ps2lib_err.h:56
@ E_LIB_THREAD_START
Definition: ps2lib_err.h:74
@ E_LF_FILE_NOT_FOUND
Definition: ps2lib_err.h:60
@ E_LIB_OUT_OF_MEMORY
Definition: ps2lib_err.h:46