vitasdk
Documentation of the vitasdk
sysclib.h
Go to the documentation of this file.
1 
6 #ifndef _PSP2KERN_KERNEL_SYSCLIB_H_
7 #define _PSP2KERN_KERNEL_SYSCLIB_H_
8 
9 #include <psp2kern/types.h>
10 #include <stdarg.h>
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 
17 typedef void (* SceSysclibPrntCallback)(void *argp, int ch);
18 
19 typedef enum SceCTypeFlag {
27  SCE_CTYPE_HEX_CASE = 0x40
29 
30 
40 void *memset(void *dst, int ch, unsigned int len);
41 
51 void *memcpy(void *dst, const void *src, unsigned int len);
52 
62 void *memmove(void *dst, const void *src, unsigned int len);
63 
73 int memcmp(const void *s1, const void *s2, unsigned int len);
74 
84 void *memchr(const void *src, int ch, unsigned int n);
85 
94 int strcmp(const char *s1, const char *s2);
95 
105 int strncmp(const char *s1, const char *s2, unsigned int n);
106 
115 char *strchr(const char *src, int ch);
116 
125 char *strstr(const char *s1, const char *s2);
126 
134 unsigned int strlen(const char *s);
135 
144 unsigned int strnlen(const char *s, unsigned int n);
145 
155 char *strncpy(char *dst, const char *src, unsigned int n);
156 
157 int snprintf(char *dst, unsigned int max, const char *fmt, ...);
158 int vsnprintf(char *dst, unsigned int max, const char *fmt, va_list arg);
159 
160 
161 char look_ctype_table(char ch);
162 
163 int tolower(int ch);
164 int toupper(int ch);
165 
166 int timingsafe_memcmp(const void *s1, const void *s2, size_t n);
167 
168 long strtol(const char *str, char **endptr, int base);
169 long long strtoll(const char *str, char **endptr, int base);
170 unsigned long strtoul(const char *str, char **endptr, int base);
171 
172 
173 void *__memcpy_chk(void *dst, const void *src, unsigned int len, unsigned int dst_len);
174 void *__memset_chk(void *dst, int ch, unsigned int len, unsigned int dst_len);
175 void *__memmove_chk(void *dst, const void *src, unsigned int len, unsigned int dst_len);
176 char *__strncpy_chk(char *dst, const char *src, unsigned int n, unsigned int dst_len);
177 
188 void __prnt(SceSysclibPrntCallback callback, void *argp, const char *fmt, va_list list);
189 
190 __attribute__((__noreturn__))
191 void __stack_chk_fail(void);
192 
193 
194 #ifdef __cplusplus
195 }
196 #endif
197 
198 #endif /* _PSP2KERN_KERNEL_SYSCLIB_H_ */
const void const char * fmt
Definition: debug.h:139
void * __memcpy_chk(void *dst, const void *src, unsigned int len, unsigned int dst_len)
int strcmp(const char *s1, const char *s2)
Strings comparison.
long long strtoll(const char *str, char **endptr, int base)
int strncmp(const char *s1, const char *s2, unsigned int n)
Strings comparison with length limit.
unsigned long strtoul(const char *str, char **endptr, int base)
void * __memmove_chk(void *dst, const void *src, unsigned int len, unsigned int dst_len)
int vsnprintf(char *dst, unsigned int max, const char *fmt, va_list arg)
void * __memset_chk(void *dst, int ch, unsigned int len, unsigned int dst_len)
char look_ctype_table(char ch)
void * memmove(void *dst, const void *src, unsigned int len)
Move memory to memory.
int snprintf(char *dst, unsigned int max, const char *fmt,...)
int memcmp(const void *s1, const void *s2, unsigned int len)
Memory comparison.
SceCTypeFlag
Definition: sysclib.h:19
__attribute__((__noreturn__)) void __stack_chk_fail(void)
int timingsafe_memcmp(const void *s1, const void *s2, size_t n)
void * memset(void *dst, int ch, unsigned int len)
Set character to memory.
void * memcpy(void *dst, const void *src, unsigned int len)
Copy memory1 to memory2.
char * strchr(const char *src, int ch)
Search character from string.
unsigned int strnlen(const char *s, unsigned int n)
Get string length with length limit.
void __prnt(SceSysclibPrntCallback callback, void *argp, const char *fmt, va_list list)
Internal functions used for snprintf, vsnprintf, kscDebugPrintf.
char * __strncpy_chk(char *dst, const char *src, unsigned int n, unsigned int dst_len)
int tolower(int ch)
int toupper(int ch)
void * memchr(const void *src, int ch, unsigned int n)
Search character from memory.
char * strncpy(char *dst, const char *src, unsigned int n)
Copy string with length limit.
unsigned int strlen(const char *s)
Get string length.
long strtol(const char *str, char **endptr, int base)
char * strstr(const char *s1, const char *s2)
Search string from string.
void(* SceSysclibPrntCallback)(void *argp, int ch)
Definition: sysclib.h:17
@ SCE_CTYPE_HEX_CASE
Definition: sysclib.h:27
@ SCE_CTYPE_NUMBER
Definition: sysclib.h:23
@ SCE_CTYPE_INVISIBLE
Definition: sysclib.h:26
@ SCE_CTYPE_SYMBOL
Definition: sysclib.h:25
@ SCE_CTYPE_LOWERCASE
Definition: sysclib.h:22
@ SCE_CTYPE_CONTROL
Definition: sysclib.h:24
@ SCE_CTYPE_NONE
Definition: sysclib.h:20
@ SCE_CTYPE_UPPERCASE
Definition: sysclib.h:21