PS2SDK
PS2 Homebrew Libraries
sys_arch.h
1 #ifndef __SYS_ARCH_H__
2 #define __SYS_ARCH_H__
3 
4 typedef int sys_prot_t;
5 typedef int sys_sem_t;
6 typedef int sys_mbox_t;
7 typedef int sys_thread_t;
8 
9 #define SYS_MBOX_NULL -1
10 #define SYS_SEM_NULL -1
11 
12 #define SYS_MAX_MESSAGES (MEMP_NUM_TCPIP_MSG_API+MEMP_NUM_TCPIP_MSG_INPKT)
13 
14 typedef struct st_arch_message
15 {
16  struct st_arch_message *next;
17  void *sys_msg;
18 } arch_message;
19 
20 extern void *malloc(size_t size);
21 extern void free(void *ptr);
22 extern void *calloc(size_t n, size_t size);
23 
24 #endif /* __SYS_ARCH_H__ */
MboxData
Definition: sys_arch.h:18
st_arch_message
Definition: sys_arch.h:12