Changes in uspace/lib/c/generic/libc.c [47b7006:7171760] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/libc.c
r47b7006 r7171760 41 41 */ 42 42 43 #include <stdio.h> 44 #include <unistd.h> 43 #include <libc.h> 45 44 #include <stdlib.h> 46 #include <malloc.h>47 45 #include <tls.h> 48 46 #include <fibril.h> … … 51 49 #include "private/libc.h" 52 50 #include "private/async.h" 53 #include "private/async_sess.h"54 51 #include "private/malloc.h" 55 52 #include "private/io.h" 53 54 #ifdef CONFIG_RTLD 55 #include <rtld/rtld.h> 56 #endif 56 57 57 58 static bool env_setup = false; … … 62 63 __malloc_init(); 63 64 __async_init(); 64 __async_sess_init();65 65 66 66 fibril_t *fibril = fibril_setup(); … … 79 79 char **argv; 80 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 81 86 /* 82 87 * Get command line arguments and initialize … … 86 91 argc = 0; 87 92 argv = NULL; 88 __stdio_init(0 , NULL);93 __stdio_init(0); 89 94 } else { 90 95 argc = __pcb->argc; 91 96 argv = __pcb->argv; 92 __stdio_init(__pcb->filc , __pcb->filv);97 __stdio_init(__pcb->filc); 93 98 (void) chdir(__pcb->cwd); 94 99 }
Note:
See TracChangeset
for help on using the changeset viewer.