Changes in uspace/lib/c/generic/libc.c [153c7a29:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/libc.c
r153c7a29 r9d58539 41 41 */ 42 42 43 #include <errno.h>44 43 #include <libc.h> 45 44 #include <stdlib.h> … … 53 52 #include "private/io.h" 54 53 55 #ifdef FUTEX_UPGRADABLE56 #include <rcu.h>57 #endif58 59 54 #ifdef CONFIG_RTLD 60 55 #include <rtld/rtld.h> 61 56 #endif 62 63 57 64 58 static bool env_setup = false; … … 68 62 /* Initialize user task run-time environment */ 69 63 __malloc_init(); 70 71 /* Save the PCB pointer */ 72 __pcb = (pcb_t *) pcb_ptr; 73 74 #ifdef CONFIG_RTLD 75 if (__pcb != NULL && __pcb->rtld_runtime != NULL) { 76 runtime_env = (rtld_t *) __pcb->rtld_runtime; 77 } else { 78 if (rtld_init_static() != EOK) 79 abort(); 80 } 81 #endif 64 __async_init(); 82 65 83 66 fibril_t *fibril = fibril_setup(); … … 87 70 __tcb_set(fibril->tcb); 88 71 89 90 #ifdef FUTEX_UPGRADABLE 91 rcu_register_fibril(); 92 #endif 93 94 __async_init(); 72 /* Save the PCB pointer */ 73 __pcb = (pcb_t *) pcb_ptr; 95 74 96 75 /* The basic run-time environment is setup */ … … 100 79 char **argv; 101 80 81 #ifdef __IN_SHARED_LIBC__ 82 if (__pcb != NULL && __pcb->rtld_runtime != NULL) { 83 runtime_env = (runtime_env_t *) __pcb->rtld_runtime; 84 } 85 #endif 102 86 /* 103 87 * Get command line arguments and initialize … … 128 112 __stdio_done(); 129 113 task_retval(status); 130 fibril_teardown(__tcb_get()->fibril_data , false);114 fibril_teardown(__tcb_get()->fibril_data); 131 115 } 132 116
Note:
See TracChangeset
for help on using the changeset viewer.