vitasdk
Documentation of the vitasdk

Detailed Description

Exports for User.


Using this library in your project

Include the header file in your project:


Link the library to the executable:

SceLibKernel_stub



Functions

 VITASDK_BUILD_ASSERT_EQ (4, SceClibMspace)
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceClibMspaceStats)
 
void sceClibAbort (void)
 Run bkpt #0x88 and end the process in state -1. More...
 
char sceClibLookCtypeTable (char ch)
 
int sceClibTolower (char ch)
 
int sceClibToupper (char ch)
 
int sceClibPrintf (const char *fmt,...) __attribute__((format(printf
 
int int sceClibDprintf (SceUID fd, const char *fmt,...) __attribute__((format(printf
 
int int int sceClibSnprintf (char *dst, SceSize dst_max_size, const char *fmt,...) __attribute__((format(printf
 
int int int int sceClibVsnprintf (char *dst, SceSize dst_max_size, const char *fmt, va_list args) __attribute__((format(printf
 
int int int int char * sceClibStrncpy (char *dst, const char *src, SceSize len)
 
char * sceClibStrncat (char *dst, const char *src, SceSize len)
 
char * sceClibStrchr (const char *s, int ch)
 
char * sceClibStrrchr (const char *src, int ch)
 
char * sceClibStrstr (const char *s1, const char *s2)
 
int sceClibStrcmp (const char *s1, const char *s2)
 
int sceClibStrncmp (const char *s1, const char *s2, SceSize len)
 
int sceClibStrncasecmp (const char *s1, const char *s2, SceSize len)
 
SceSize sceClibStrnlen (const char *s1, SceSize max_len)
 
void * sceClibMemset (void *dst, int ch, SceSize len)
 
void * sceClibMemcpy (void *dst, const void *src, SceSize len)
 
void * sceClibMemcpy_safe (void *dst, const void *src, SceSize len)
 
void * sceClibMemmove (void *dst, const void *src, SceSize len)
 
int sceClibMemcmp (const void *s1, const void *s2, SceSize len)
 
void * sceClibMemchr (const void *src, int ch, SceSize len)
 
SceClibMspace sceClibMspaceCreate (void *memblock, SceSize size)
 
void sceClibMspaceDestroy (SceClibMspace mspace)
 
SceSize sceClibMspaceMallocUsableSize (void *ptr)
 
SceBool sceClibMspaceIsHeapEmpty (SceClibMspace mspace)
 
void sceClibMspaceMallocStats (SceClibMspace mspace, SceClibMspaceStats *stats)
 
void sceClibMspaceMallocStatsFast (SceClibMspace mspace, SceClibMspaceStats *stats)
 
void * sceClibMspaceMalloc (SceClibMspace mspace, SceSize size)
 
void * sceClibMspaceCalloc (SceClibMspace mspace, SceSize num, SceSize size)
 
void * sceClibMspaceRealloc (SceClibMspace mspace, void *ptr, SceSize size)
 
void * sceClibMspaceReallocalign (SceClibMspace mspace, void *ptr, SceSize size, SceSize alignment)
 
void * sceClibMspaceMemalign (SceClibMspace mspace, SceSize alignment, SceSize size)
 
void sceClibMspaceFree (SceClibMspace mspace, void *ptr)
 

Typedefs

typedef void * SceClibMspace
 A handle for a managed memory space. More...
 

Data Structure Documentation

◆ SceClibMspaceStats

struct SceClibMspaceStats

Structure for stats of SceClibMspace.

Data Fields
SceSize capacity Capacity of the Mspace.
SceSize unk Unknown, value is equal to capacity.
SceSize peak_in_use Peak memory allocated.
SceSize current_in_use Current memory allocated.

Typedef Documentation

◆ SceClibMspace

typedef void* SceClibMspace

A handle for a managed memory space.

Function Documentation

◆ VITASDK_BUILD_ASSERT_EQ() [1/2]

VITASDK_BUILD_ASSERT_EQ ( ,
SceClibMspace   
)

◆ VITASDK_BUILD_ASSERT_EQ() [2/2]

VITASDK_BUILD_ASSERT_EQ ( 0x10  ,
SceClibMspaceStats   
)

◆ sceClibAbort()

void sceClibAbort ( void  )

Run bkpt #0x88 and end the process in state -1.

Returns
none

◆ sceClibLookCtypeTable()

char sceClibLookCtypeTable ( char  ch)

◆ sceClibTolower()

int sceClibTolower ( char  ch)

◆ sceClibToupper()

int sceClibToupper ( char  ch)

◆ sceClibPrintf()

int sceClibPrintf ( const char *  fmt,
  ... 
)

◆ sceClibDprintf()

int int sceClibDprintf ( SceUID  fd,
const char *  fmt,
  ... 
)

◆ sceClibSnprintf()

int int int sceClibSnprintf ( char *  dst,
SceSize  dst_max_size,
const char *  fmt,
  ... 
)

◆ sceClibVsnprintf()

int int int int sceClibVsnprintf ( char *  dst,
SceSize  dst_max_size,
const char *  fmt,
va_list  args 
)

◆ sceClibStrncpy()

int int int int char* sceClibStrncpy ( char *  dst,
const char *  src,
SceSize  len 
)

◆ sceClibStrncat()

char* sceClibStrncat ( char *  dst,
const char *  src,
SceSize  len 
)

◆ sceClibStrchr()

char* sceClibStrchr ( const char *  s,
int  ch 
)

◆ sceClibStrrchr()

char* sceClibStrrchr ( const char *  src,
int  ch 
)

◆ sceClibStrstr()

char* sceClibStrstr ( const char *  s1,
const char *  s2 
)

◆ sceClibStrcmp()

int sceClibStrcmp ( const char *  s1,
const char *  s2 
)

◆ sceClibStrncmp()

int sceClibStrncmp ( const char *  s1,
const char *  s2,
SceSize  len 
)

◆ sceClibStrncasecmp()

int sceClibStrncasecmp ( const char *  s1,
const char *  s2,
SceSize  len 
)

◆ sceClibStrnlen()

SceSize sceClibStrnlen ( const char *  s1,
SceSize  max_len 
)

◆ sceClibMemset()

void* sceClibMemset ( void *  dst,
int  ch,
SceSize  len 
)

◆ sceClibMemcpy()

void* sceClibMemcpy ( void *  dst,
const void *  src,
SceSize  len 
)

◆ sceClibMemcpy_safe()

void* sceClibMemcpy_safe ( void *  dst,
const void *  src,
SceSize  len 
)

◆ sceClibMemmove()

void* sceClibMemmove ( void *  dst,
const void *  src,
SceSize  len 
)

◆ sceClibMemcmp()

int sceClibMemcmp ( const void *  s1,
const void *  s2,
SceSize  len 
)

◆ sceClibMemchr()

void* sceClibMemchr ( const void *  src,
int  ch,
SceSize  len 
)

◆ sceClibMspaceCreate()

SceClibMspace sceClibMspaceCreate ( void *  memblock,
SceSize  size 
)

◆ sceClibMspaceDestroy()

void sceClibMspaceDestroy ( SceClibMspace  mspace)

◆ sceClibMspaceMallocUsableSize()

SceSize sceClibMspaceMallocUsableSize ( void *  ptr)

◆ sceClibMspaceIsHeapEmpty()

SceBool sceClibMspaceIsHeapEmpty ( SceClibMspace  mspace)

◆ sceClibMspaceMallocStats()

void sceClibMspaceMallocStats ( SceClibMspace  mspace,
SceClibMspaceStats stats 
)

◆ sceClibMspaceMallocStatsFast()

void sceClibMspaceMallocStatsFast ( SceClibMspace  mspace,
SceClibMspaceStats stats 
)

◆ sceClibMspaceMalloc()

void* sceClibMspaceMalloc ( SceClibMspace  mspace,
SceSize  size 
)

◆ sceClibMspaceCalloc()

void* sceClibMspaceCalloc ( SceClibMspace  mspace,
SceSize  num,
SceSize  size 
)

◆ sceClibMspaceRealloc()

void* sceClibMspaceRealloc ( SceClibMspace  mspace,
void *  ptr,
SceSize  size 
)

◆ sceClibMspaceReallocalign()

void* sceClibMspaceReallocalign ( SceClibMspace  mspace,
void *  ptr,
SceSize  size,
SceSize  alignment 
)

◆ sceClibMspaceMemalign()

void* sceClibMspaceMemalign ( SceClibMspace  mspace,
SceSize  alignment,
SceSize  size 
)

◆ sceClibMspaceFree()

void sceClibMspaceFree ( SceClibMspace  mspace,
void *  ptr 
)