Ignore:
File:
1 edited

Legend:

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

    r153c7a29 rd96d9bc  
    4848#include <task.h>
    4949#include <loader/pcb.h>
     50#include <vfs/vfs.h>
     51#include <vfs/inbox.h>
    5052#include "private/libc.h"
    5153#include "private/async.h"
     
    107109                argc = 0;
    108110                argv = NULL;
    109                 __stdio_init(0);
     111                __stdio_init();
    110112        } else {
    111113                argc = __pcb->argc;
    112114                argv = __pcb->argv;
    113                 __stdio_init(__pcb->filc);
    114                 (void) chdir(__pcb->cwd);
     115                __inbox_init(__pcb->inbox, __pcb->inbox_entries);
     116                __stdio_init();
     117                vfs_root_set(inbox_get("root"));
     118                (void) vfs_cwd_set(__pcb->cwd);
    115119        }
    116120       
Note: See TracChangeset for help on using the changeset viewer.