Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions libPS4/include/libc.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ extern int (*strncmp)(const char *s1, const char *s2, size_t n);
extern int (*sprintf)(char *str, const char *format, ...);
extern int (*snprintf)(char *str, size_t size, const char *format, ...);
extern int (*sscanf)(const char *str, const char *format, ...);
extern int (*strtol)(const char* s1, char** s2, int base);
extern char *(*strtok)(char *str, const char *delimiters);
extern char *(*strchr)(const char *s, int c);
extern char *(*strrchr)(const char *s, int c);
extern char *(*strstr)(char *str1, char *str2);
Expand Down
10 changes: 7 additions & 3 deletions libPS4/source/libc.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ int (*strncmp)(const char *s1, const char *s2, size_t n);
int (*sprintf)(char *str, const char *format, ...);
int (*snprintf)(char *str, size_t size, const char *format, ...);
int (*sscanf)(const char *str, const char *format, ...);
int (*strtol)(const char* s1, char** s2, int base);
char *(*strtok)(char *str, const char *delimiters);
char *(*strchr)(const char *s, int c);
char *(*strrchr)(const char *s, int c);
char *(*strstr)(char *str1, char *str2);
Expand Down Expand Up @@ -88,6 +90,8 @@ void initLibc(void) {
RESOLVE(libc, sprintf);
RESOLVE(libc, snprintf);
RESOLVE(libc, sscanf);
RESOLVE(libc, strtol);
RESOLVE(libc, strtok);
RESOLVE(libc, strchr);
RESOLVE(libc, strrchr);
RESOLVE(libc, strstr);
Expand Down Expand Up @@ -115,7 +119,7 @@ void initLibc(void) {
RESOLVE(libc, localtime);
RESOLVE(libc, localtime_r);
RESOLVE(libc, mktime);

RESOLVE(libc, opendir);
RESOLVE(libc, readdir);
RESOLVE(libc, readdir_r);
Expand All @@ -124,9 +128,9 @@ void initLibc(void) {
RESOLVE(libc, rewinddir);
RESOLVE(libc, closedir);
RESOLVE(libc, dirfd);

RESOLVE(libc, getprogname);

RESOLVE(libc, fopen);
RESOLVE(libc, fread);
RESOLVE(libc, fwrite);
Expand Down