/branches/dynload/uspace/lib/libc/generic/libc.c/libc.c |
---|
50,6 → 50,10 |
#include <as.h> |
#include <loader/pcb.h> |
/* From librtld. */ |
#include <rtld.h> |
#include <string.h> |
extern char _heap; |
extern int main(int argc, char *argv[]); |
74,6 → 78,12 |
/* Save the PCB pointer */ |
__pcb = (pcb_t *)pcb_ptr; |
#ifdef __IN_SHARED_LIBC__ |
if (__pcb != NULL && __pcb->rtld_runtime != NULL) { |
runtime_env = (runtime_env_t *) __pcb->rtld_runtime; |
} |
#endif |
if (__pcb == NULL) { |
argc = 0; |
argv = NULL; |