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
13extern "C" {
14#endif
15
16
17typedef void (* SceSysclibPrntCallback)(void *argp, int ch);
18
29
30
40void *memset(void *dst, int ch, unsigned int len);
41
51void *memcpy(void *dst, const void *src, unsigned int len);
52
62void *memmove(void *dst, const void *src, unsigned int len);
63
73int memcmp(const void *s1, const void *s2, unsigned int len);
74
84void *memchr(const void *src, int ch, unsigned int n);
85
94int strcmp(const char *s1, const char *s2);
95
105int strncmp(const char *s1, const char *s2, unsigned int n);
106
115char *strchr(const char *src, int ch);
116
125char *strstr(const char *s1, const char *s2);
126
134unsigned int strlen(const char *s);
135
144unsigned int strnlen(const char *s, unsigned int n);
145
155char *strncpy(char *dst, const char *src, unsigned int n);
156
157int snprintf(char *dst, unsigned int max, const char *fmt, ...);
158int vsnprintf(char *dst, unsigned int max, const char *fmt, va_list arg);
159
160
161char look_ctype_table(char ch);
162
163int tolower(int ch);
164int toupper(int ch);
165
166int timingsafe_memcmp(const void *s1, const void *s2, size_t n);
167
168long strtol(const char *str, char **endptr, int base);
169long long strtoll(const char *str, char **endptr, int base);
170unsigned long strtoul(const char *str, char **endptr, int base);
171
172
173void *__memcpy_chk(void *dst, const void *src, unsigned int len, unsigned int dst_len);
174void *__memset_chk(void *dst, int ch, unsigned int len, unsigned int dst_len);
175void *__memmove_chk(void *dst, const void *src, unsigned int len, unsigned int dst_len);
176char *__strncpy_chk(char *dst, const char *src, unsigned int n, unsigned int dst_len);
177
188void __prnt(SceSysclibPrntCallback callback, void *argp, const char *fmt, va_list list);
189
190__attribute__((__noreturn__))
191void __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
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)
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 * strncpy(char *dst, const char *src, unsigned int n)
Copy string with length limit.
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.
char look_ctype_table(char ch)
void * __memcpy_chk(void *dst, const void *src, unsigned int len, unsigned int dst_len)
void * memchr(const void *src, int ch, unsigned int n)
Search character from memory.
char * __strncpy_chk(char *dst, const char *src, unsigned int n, unsigned int dst_len)
char * strstr(const char *s1, const char *s2)
Search string from string.
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)
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.
int tolower(int ch)
int toupper(int ch)
void * memset(void *dst, int ch, unsigned int len)
Set character to memory.
void * memmove(void *dst, const void *src, unsigned int len)
Move memory to memory.
unsigned int strlen(const char *s)
Get string length.
void * __memmove_chk(void *dst, const void *src, unsigned int len, unsigned int dst_len)
long strtol(const char *str, char **endptr, int base)
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