Adding pthreadglue support

This commit is contained in:
Francisco Javier Trujillo Mata
2021-11-19 17:25:38 +01:00
parent 99e2ed1600
commit 8a0ab6b14e
11 changed files with 1101 additions and 3 deletions

View File

@@ -23,6 +23,7 @@ void __init_cwd(char *argv_0);
void __timezone_update();
void __fdman_init();
void __init_mutex();
void pthread_init();
void __psp_free_heap();
void __deinit_mutex();
@@ -45,6 +46,9 @@ void __libcglue_init(int argc, char *argv[])
/* Initialize filedescriptor management */
__fdman_init();
/* Initialize pthread library */
pthread_init();
/* Initialize cwd from this program's path */
__init_cwd(argv[0]);

View File

@@ -19,6 +19,9 @@
/* Fuctions from errno.c */
int __set_errno(int code);
/* Fuctions from errno.c */
int __set_errno(int code);
#ifdef F_nanosleep
/* note: we don't use rem as we have no signals */
int nanosleep(const struct timespec *req, struct timespec *rem)