Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/libc.c

    r47b7006 r7171760  
    4141 */
    4242
    43 #include <stdio.h>
    44 #include <unistd.h>
     43#include <libc.h>
    4544#include <stdlib.h>
    46 #include <malloc.h>
    4745#include <tls.h>
    4846#include <fibril.h>
     
    5149#include "private/libc.h"
    5250#include "private/async.h"
    53 #include "private/async_sess.h"
    5451#include "private/malloc.h"
    5552#include "private/io.h"
     53
     54#ifdef CONFIG_RTLD
     55#include <rtld/rtld.h>
     56#endif
    5657
    5758static bool env_setup = false;
     
    6263        __malloc_init();
    6364        __async_init();
    64         __async_sess_init();
    6565       
    6666        fibril_t *fibril = fibril_setup();
     
    7979        char **argv;
    8080       
     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
    8186        /*
    8287         * Get command line arguments and initialize
     
    8691                argc = 0;
    8792                argv = NULL;
    88                 __stdio_init(0, NULL);
     93                __stdio_init(0);
    8994        } else {
    9095                argc = __pcb->argc;
    9196                argv = __pcb->argv;
    92                 __stdio_init(__pcb->filc, __pcb->filv);
     97                __stdio_init(__pcb->filc);
    9398                (void) chdir(__pcb->cwd);
    9499        }
Note: See TracChangeset for help on using the changeset viewer.