Changeset 04552a80 in mainline for libc/generic/libc.c


Ignore:
Timestamp:
2006-05-17T20:51:08Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
25f9823
Parents:
04a73cdf
Message:

code cleanup (somebody should read the coding style guide)
remove DONT_OPEN_STDIO (this has to be done in a different way, ppc32 linker segfaults on initiating extern variable)
remove deprecated libipc stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libc/generic/libc.c

    r04a73cdf r04552a80  
    3333#include <psthread.h>
    3434#include <io/stream.h>
    35 
    36 int __DONT_OPEN_STDIO__;
    37 
    38 /* We should probably merge libc and libipc together */
    39 extern void _ipc_init(void);
     35#include <ipc/ipc.h>
    4036
    4137void _exit(int status) {
     
    4642        tcb_t *tcb;
    4743       
    48         if(!__DONT_OPEN_STDIO__)
    49         {
    50                 open("stdin",0);
    51                 open("stdout",0);
    52                 open("stderr",0);
    53         }       
    54        
    5544        tcb = __make_tls();
    5645        __tcb_set(tcb);
    5746        psthread_setup(tcb);
    5847        _ipc_init();
     48       
     49        open("stdin", 0);
     50        open("stdout", 0);
     51        open("stderr", 0);
    5952}
    6053
Note: See TracChangeset for help on using the changeset viewer.