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