Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1362 → Rev 1363

/uspace/trunk/libc/generic/libc.c
31,7 → 31,10
#include <thread.h>
#include <malloc.h>
#include <psthread.h>
#include <io/stream.h>
 
int __DONT_OPEN_STDIO__;
 
/* We should probably merge libc and libipc together */
extern void _ipc_init(void);
 
42,6 → 45,13
void __main(void) {
tcb_t *tcb;
if(!__DONT_OPEN_STDIO__)
{
open("stdin",0);
open("stdout",0);
open("stderr",0);
}
tcb = __make_tls();
__tcb_set(tcb);
psthread_setup(tcb);