Ignore:
File:
1 edited

Legend:

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

    r7171760 r47b7006  
    4141 */
    4242
    43 #include <libc.h>
     43#include <stdio.h>
     44#include <unistd.h>
    4445#include <stdlib.h>
     46#include <malloc.h>
    4547#include <tls.h>
    4648#include <fibril.h>
     
    4951#include "private/libc.h"
    5052#include "private/async.h"
     53#include "private/async_sess.h"
    5154#include "private/malloc.h"
    5255#include "private/io.h"
    53 
    54 #ifdef CONFIG_RTLD
    55 #include <rtld/rtld.h>
    56 #endif
    5756
    5857static bool env_setup = false;
     
    6362        __malloc_init();
    6463        __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
    8681        /*
    8782         * Get command line arguments and initialize
     
    9186                argc = 0;
    9287                argv = NULL;
    93                 __stdio_init(0);
     88                __stdio_init(0, NULL);
    9489        } else {
    9590                argc = __pcb->argc;
    9691                argv = __pcb->argv;
    97                 __stdio_init(__pcb->filc);
     92                __stdio_init(__pcb->filc, __pcb->filv);
    9893                (void) chdir(__pcb->cwd);
    9994        }
Note: See TracChangeset for help on using the changeset viewer.