PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
sysclib.h File Reference
#include <types.h>
#include <irx.h>
#include <stdarg.h>
#include <setjmp.h>
#include <ctype.h>
+ Include dependency graph for sysclib.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define memchr   __builtin_memchr
 
#define memcmp   __builtin_memcmp
 
#define memcpy   __builtin_memcpy
 
#define memset   __builtin_memset
 
#define bcmp   __builtin_bcmp
 
#define bzero   __builtin_bzero
 
#define sprintf   __builtin_sprintf
 
#define strcat   __builtin_strcat
 
#define strchr   __builtin_strchr
 
#define strcmp   __builtin_strcmp
 
#define strcpy   __builtin_strcpy
 
#define strcspn   __builtin_strcspn
 
#define index   __builtin_index
 
#define rindex   __builtin_rindex
 
#define strlen   __builtin_strlen
 
#define strncat   __builtin_strncat
 
#define strncmp   __builtin_strncmp
 
#define strncpy   __builtin_strncpy
 
#define strpbrk   __builtin_strpbrk
 
#define strrchr   __builtin_strrchr
 
#define strspn   __builtin_strspn
 
#define strstr   __builtin_strstr
 
#define vsprintf   __builtin_vsprintf
 
#define sysclib_IMPORTS_start   DECLARE_IMPORT_TABLE(sysclib, 1, 1)
 
#define sysclib_IMPORTS_end   END_IMPORT_TABLE
 
#define I_setjmp   DECLARE_IMPORT(4, setjmp)
 
#define I_longjmp   DECLARE_IMPORT(5, longjmp)
 
#define I_toupper   DECLARE_IMPORT(6, _toupper)
 
#define I_tolower   DECLARE_IMPORT(7, _tolower)
 
#define I_look_ctype_table   DECLARE_IMPORT(8, look_ctype_table)
 
#define I_get_ctype_table   DECLARE_IMPORT(9, get_ctype_table)
 
#define I_memchr   DECLARE_IMPORT(10, memchr)
 
#define I_memcmp   DECLARE_IMPORT(11, memcmp)
 
#define I_memcpy   DECLARE_IMPORT(12, memcpy)
 
#define I_memmove   DECLARE_IMPORT(13, memmove)
 
#define I_memset   DECLARE_IMPORT(14, memset)
 
#define I_bcmp   DECLARE_IMPORT(15, bcmp);
 
#define I_bcopy   DECLARE_IMPORT(16, bcopy);
 
#define I_bzero   DECLARE_IMPORT(17, bzero);
 
#define I_prnt   DECLARE_IMPORT(18, prnt)
 
#define I_sprintf   DECLARE_IMPORT(19, sprintf)
 
#define I_strcat   DECLARE_IMPORT(20, strcat)
 
#define I_strchr   DECLARE_IMPORT(21, strchr)
 
#define I_strcmp   DECLARE_IMPORT(22, strcmp)
 
#define I_strcpy   DECLARE_IMPORT(23, strcpy)
 
#define I_strcspn   DECLARE_IMPORT(24, strcspn)
 
#define I_index   DECLARE_IMPORT(25, index)
 
#define I_rindex   DECLARE_IMPORT(26, rindex)
 
#define I_strlen   DECLARE_IMPORT(27, strlen)
 
#define I_strncat   DECLARE_IMPORT(28, strncat)
 
#define I_strncmp   DECLARE_IMPORT(29, strncmp)
 
#define I_strncpy   DECLARE_IMPORT(30, strncpy)
 
#define I_strpbrk   DECLARE_IMPORT(31, strpbrk)
 
#define I_strrchr   DECLARE_IMPORT(32, strrchr)
 
#define I_strspn   DECLARE_IMPORT(33, strspn)
 
#define I_strstr   DECLARE_IMPORT(34, strstr)
 
#define I_strtok   DECLARE_IMPORT(35, strtok)
 
#define I_strtol   DECLARE_IMPORT(36, strtol)
 
#define I_atob   DECLARE_IMPORT(37, atob)
 
#define I_strtoul   DECLARE_IMPORT(38, strtoul)
 
#define I_wmemcopy   DECLARE_IMPORT(40, _wmemcopy)
 
#define I_wmemset   DECLARE_IMPORT(41, _wmemset)
 
#define I_vsprintf   DECLARE_IMPORT(42, vsprintf)
 
#define I_strtok_r   DECLARE_IMPORT(43, strtok_r)
 

Typedefs

typedef void(* print_callback_t) (void *context, int c)
 

Functions

char _toupper (char c)
 
char _tolower (char c)
 
void * _wmemcopy (u32 *dest, const u32 *src, size_t size)
 
void * _wmemset (u32 *dest, u32 c, size_t size)
 
int prnt (print_callback_t, void *context, const char *format, va_list ap)
 
unsigned char look_ctype_table (char character)
 
void * get_ctype_table ()
 
char * atob (char *s, int *i)
 
void * memchr (const void *s, int c, size_t n)
 
int memcmp (const void *p, const void *q, size_t size)
 
void * memcpy (void *dest, const void *src, size_t size)
 
void * memmove (void *dest, const void *src, size_t size)
 
void * memset (void *ptr, int c, size_t size)
 
int bcmp (const void *, const void *, size_t)
 
void bcopy (const void *, void *, size_t)
 
void bzero (void *, size_t)
 
int sprintf (char *str, const char *format,...)
 
char * strcat (char *dest, const char *src)
 
char * strchr (const char *s, int c)
 
int strcmp (const char *p, const char *q)
 
char * strcpy (char *dest, const char *src)
 
size_t strcspn (const char *s, const char *reject)
 
char * index (const char *s, int c)
 
char * rindex (const char *s, int c)
 
size_t strlen (const char *s)
 
char * strncat (char *dest, const char *src, size_t size)
 
int strncmp (const char *p, const char *q, size_t size)
 
char * strncpy (char *dest, const char *src, size_t size)
 
char * strpbrk (const char *s, const char *accept)
 
char * strrchr (const char *s, int c)
 
size_t strspn (const char *s, const char *accept)
 
char * strstr (const char *haystack, const char *needle)
 
char * strtok (char *s, const char *delim)
 
long strtol (const char *s, char **endptr, int base)
 
unsigned long strtoul (const char *s, char **endptr, int base)
 
int vsprintf (char *, const char *, va_list)
 
char * strtok_r (char *s, const char *delim, char **lasts)
 

Detailed Description

Standard C Library subset.

Definition in file sysclib.h.

Macro Definition Documentation

◆ memchr

#define memchr   __builtin_memchr

Definition at line 87 of file sysclib.h.

◆ memcmp

#define memcmp   __builtin_memcmp

Definition at line 90 of file sysclib.h.

◆ memcpy

#define memcpy   __builtin_memcpy

Definition at line 93 of file sysclib.h.

◆ memset

#define memset   __builtin_memset

Definition at line 96 of file sysclib.h.

◆ bcmp

#define bcmp   __builtin_bcmp

Definition at line 99 of file sysclib.h.

◆ bzero

#define bzero   __builtin_bzero

Definition at line 102 of file sysclib.h.

◆ sprintf

#define sprintf   __builtin_sprintf

Definition at line 105 of file sysclib.h.

◆ strcat

#define strcat   __builtin_strcat

Definition at line 108 of file sysclib.h.

◆ strchr

#define strchr   __builtin_strchr

Definition at line 111 of file sysclib.h.

◆ strcmp

#define strcmp   __builtin_strcmp

Definition at line 114 of file sysclib.h.

◆ strcpy

#define strcpy   __builtin_strcpy

Definition at line 117 of file sysclib.h.

◆ strcspn

#define strcspn   __builtin_strcspn

Definition at line 120 of file sysclib.h.

◆ index

#define index   __builtin_index

Definition at line 123 of file sysclib.h.

◆ rindex

#define rindex   __builtin_rindex

Definition at line 126 of file sysclib.h.

◆ strlen

#define strlen   __builtin_strlen

Definition at line 129 of file sysclib.h.

◆ strncat

#define strncat   __builtin_strncat

Definition at line 132 of file sysclib.h.

◆ strncmp

#define strncmp   __builtin_strncmp

Definition at line 135 of file sysclib.h.

◆ strncpy

#define strncpy   __builtin_strncpy

Definition at line 138 of file sysclib.h.

◆ strpbrk

#define strpbrk   __builtin_strpbrk

Definition at line 141 of file sysclib.h.

◆ strrchr

#define strrchr   __builtin_strrchr

Definition at line 144 of file sysclib.h.

◆ strspn

#define strspn   __builtin_strspn

Definition at line 147 of file sysclib.h.

◆ strstr

#define strstr   __builtin_strstr

Definition at line 150 of file sysclib.h.

◆ vsprintf

#define vsprintf   __builtin_vsprintf

Definition at line 153 of file sysclib.h.

◆ sysclib_IMPORTS_start

#define sysclib_IMPORTS_start   DECLARE_IMPORT_TABLE(sysclib, 1, 1)

Definition at line 157 of file sysclib.h.

◆ sysclib_IMPORTS_end

#define sysclib_IMPORTS_end   END_IMPORT_TABLE

Definition at line 158 of file sysclib.h.

◆ I_setjmp

#define I_setjmp   DECLARE_IMPORT(4, setjmp)

Definition at line 160 of file sysclib.h.

◆ I_longjmp

#define I_longjmp   DECLARE_IMPORT(5, longjmp)

Definition at line 161 of file sysclib.h.

◆ I_toupper

#define I_toupper   DECLARE_IMPORT(6, _toupper)

Definition at line 162 of file sysclib.h.

◆ I_tolower

#define I_tolower   DECLARE_IMPORT(7, _tolower)

Definition at line 163 of file sysclib.h.

◆ I_look_ctype_table

#define I_look_ctype_table   DECLARE_IMPORT(8, look_ctype_table)

Definition at line 164 of file sysclib.h.

◆ I_get_ctype_table

#define I_get_ctype_table   DECLARE_IMPORT(9, get_ctype_table)

Definition at line 165 of file sysclib.h.

◆ I_memchr

#define I_memchr   DECLARE_IMPORT(10, memchr)

Definition at line 166 of file sysclib.h.

◆ I_memcmp

#define I_memcmp   DECLARE_IMPORT(11, memcmp)

Definition at line 167 of file sysclib.h.

◆ I_memcpy

#define I_memcpy   DECLARE_IMPORT(12, memcpy)

Definition at line 168 of file sysclib.h.

◆ I_memmove

#define I_memmove   DECLARE_IMPORT(13, memmove)

Definition at line 169 of file sysclib.h.

◆ I_memset

#define I_memset   DECLARE_IMPORT(14, memset)

Definition at line 170 of file sysclib.h.

◆ I_bcmp

#define I_bcmp   DECLARE_IMPORT(15, bcmp);

Definition at line 171 of file sysclib.h.

◆ I_bcopy

#define I_bcopy   DECLARE_IMPORT(16, bcopy);

Definition at line 172 of file sysclib.h.

◆ I_bzero

#define I_bzero   DECLARE_IMPORT(17, bzero);

Definition at line 173 of file sysclib.h.

◆ I_prnt

#define I_prnt   DECLARE_IMPORT(18, prnt)

Definition at line 174 of file sysclib.h.

◆ I_sprintf

#define I_sprintf   DECLARE_IMPORT(19, sprintf)

Definition at line 175 of file sysclib.h.

◆ I_strcat

#define I_strcat   DECLARE_IMPORT(20, strcat)

Definition at line 176 of file sysclib.h.

◆ I_strchr

#define I_strchr   DECLARE_IMPORT(21, strchr)

Definition at line 177 of file sysclib.h.

◆ I_strcmp

#define I_strcmp   DECLARE_IMPORT(22, strcmp)

Definition at line 178 of file sysclib.h.

◆ I_strcpy

#define I_strcpy   DECLARE_IMPORT(23, strcpy)

Definition at line 179 of file sysclib.h.

◆ I_strcspn

#define I_strcspn   DECLARE_IMPORT(24, strcspn)

Definition at line 180 of file sysclib.h.

◆ I_index

#define I_index   DECLARE_IMPORT(25, index)

Definition at line 181 of file sysclib.h.

◆ I_rindex

#define I_rindex   DECLARE_IMPORT(26, rindex)

Definition at line 182 of file sysclib.h.

◆ I_strlen

#define I_strlen   DECLARE_IMPORT(27, strlen)

Definition at line 183 of file sysclib.h.

◆ I_strncat

#define I_strncat   DECLARE_IMPORT(28, strncat)

Definition at line 184 of file sysclib.h.

◆ I_strncmp

#define I_strncmp   DECLARE_IMPORT(29, strncmp)

Definition at line 185 of file sysclib.h.

◆ I_strncpy

#define I_strncpy   DECLARE_IMPORT(30, strncpy)

Definition at line 186 of file sysclib.h.

◆ I_strpbrk

#define I_strpbrk   DECLARE_IMPORT(31, strpbrk)

Definition at line 187 of file sysclib.h.

◆ I_strrchr

#define I_strrchr   DECLARE_IMPORT(32, strrchr)

Definition at line 188 of file sysclib.h.

◆ I_strspn

#define I_strspn   DECLARE_IMPORT(33, strspn)

Definition at line 189 of file sysclib.h.

◆ I_strstr

#define I_strstr   DECLARE_IMPORT(34, strstr)

Definition at line 190 of file sysclib.h.

◆ I_strtok

#define I_strtok   DECLARE_IMPORT(35, strtok)

Definition at line 191 of file sysclib.h.

◆ I_strtol

#define I_strtol   DECLARE_IMPORT(36, strtol)

Definition at line 192 of file sysclib.h.

◆ I_atob

#define I_atob   DECLARE_IMPORT(37, atob)

Definition at line 193 of file sysclib.h.

◆ I_strtoul

#define I_strtoul   DECLARE_IMPORT(38, strtoul)

Definition at line 194 of file sysclib.h.

◆ I_wmemcopy

#define I_wmemcopy   DECLARE_IMPORT(40, _wmemcopy)

Definition at line 195 of file sysclib.h.

◆ I_wmemset

#define I_wmemset   DECLARE_IMPORT(41, _wmemset)

Definition at line 196 of file sysclib.h.

◆ I_vsprintf

#define I_vsprintf   DECLARE_IMPORT(42, vsprintf)

Definition at line 197 of file sysclib.h.

◆ I_strtok_r

#define I_strtok_r   DECLARE_IMPORT(43, strtok_r)

Definition at line 198 of file sysclib.h.

Typedef Documentation

◆ print_callback_t

typedef void(* print_callback_t) (void *context, int c)

Definition at line 29 of file sysclib.h.

Function Documentation

◆ _toupper()

char _toupper ( char  c)

Definition at line 5 of file toupper.c.

◆ _tolower()

char _tolower ( char  c)

Definition at line 5 of file tolower.c.

◆ _wmemcopy()

void * _wmemcopy ( u32 *  dest,
const u32 *  src,
size_t  size 
)

Definition at line 15 of file _wmemcopy.c.

◆ _wmemset()

void * _wmemset ( u32 *  dest,
u32  c,
size_t  size 
)

Definition at line 15 of file _wmemset.c.

◆ prnt()

int prnt ( print_callback_t  out,
void *  context,
const char *  format,
va_list  ap 
)

Definition at line 1435 of file printf.c.

◆ look_ctype_table()

unsigned char look_ctype_table ( char  character)

Definition at line 36 of file ctype.c.

◆ get_ctype_table()

void * get_ctype_table ( )

Definition at line 41 of file ctype.c.

◆ atob()

char * atob ( char *  s,
int *  i 
)

Definition at line 15 of file atob.c.

◆ memchr()

void * memchr ( const void *  s,
int  c,
size_t  n 
)

Definition at line 12 of file memchr.c.

◆ memcmp()

int memcmp ( const void *  p,
const void *  q,
size_t  size 
)

Definition at line 4 of file memcmp.c.

◆ memcpy()

void * memcpy ( void *  dest,
const void *  src,
size_t  size 
)

Definition at line 14 of file memcpy.c.

◆ memmove()

void * memmove ( void *  dest,
const void *  src,
size_t  size 
)

Definition at line 10 of file memmove.c.

◆ memset()

void * memset ( void *  ptr,
int  c,
size_t  size 
)

Definition at line 5 of file memset.c.

◆ bcmp()

int bcmp ( const void *  s1,
const void *  s2,
size_t  n 
)

Definition at line 3 of file bcmp.c.

◆ bcopy()

void bcopy ( const void *  s1,
void *  s2,
size_t  n 
)

Definition at line 3 of file bcopy.c.

◆ bzero()

void bzero ( void *  s,
size_t  n 
)

Definition at line 3 of file bzero.c.

◆ strchr()

char * strchr ( const char *  s,
int  c 
)

Definition at line 6 of file strchr.c.

◆ strcmp()

int strcmp ( const char *  p,
const char *  q 
)

Definition at line 4 of file strcmp.c.

◆ strcspn()

size_t strcspn ( const char *  s,
const char *  reject 
)

Definition at line 9 of file strcspn.c.

◆ index()

char * index ( const char *  s,
int  c 
)

Definition at line 4 of file index.c.

◆ rindex()

char * rindex ( const char *  s,
int  c 
)

Definition at line 4 of file rindex.c.

◆ strlen()

size_t strlen ( const char *  s)

Definition at line 11 of file strlen.c.

◆ strncmp()

int strncmp ( const char *  p,
const char *  q,
size_t  size 
)

Definition at line 4 of file strncmp.c.

◆ strncpy()

char * strncpy ( char *  dest,
const char *  src,
size_t  size 
)

Definition at line 46 of file strncpy.c.

◆ strpbrk()

char * strpbrk ( const char *  s,
const char *  accept 
)

Definition at line 4 of file strpbrk.c.

◆ strrchr()

char * strrchr ( const char *  s,
int  c 
)

Definition at line 6 of file strrchr.c.

◆ strspn()

size_t strspn ( const char *  s,
const char *  accept 
)

Definition at line 7 of file strspn.c.

◆ strstr()

char * strstr ( const char *  haystack,
const char *  needle 
)

Definition at line 139 of file strstr.c.

◆ strtok()

char * strtok ( char *  s,
const char *  delim 
)

Definition at line 14 of file strtok.c.

◆ strtol()

long strtol ( const char *  s,
char **  endptr,
int  base 
)

Definition at line 15 of file strtol.c.

◆ strtoul()

unsigned long strtoul ( const char *  s,
char **  endptr,
int  base 
)

Definition at line 15 of file strtoul.c.

◆ strtok_r()

char * strtok_r ( char *  s,
const char *  delim,
char **  lasts 
)

Definition at line 14 of file strtok_r.c.