Changeset 04552a80 in mainline for libc/generic/libc.c
- Timestamp:
- 2006-05-17T20:51:08Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 25f9823
- Parents:
- 04a73cdf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libc/generic/libc.c
r04a73cdf r04552a80 33 33 #include <psthread.h> 34 34 #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> 40 36 41 37 void _exit(int status) { … … 46 42 tcb_t *tcb; 47 43 48 if(!__DONT_OPEN_STDIO__)49 {50 open("stdin",0);51 open("stdout",0);52 open("stderr",0);53 }54 55 44 tcb = __make_tls(); 56 45 __tcb_set(tcb); 57 46 psthread_setup(tcb); 58 47 _ipc_init(); 48 49 open("stdin", 0); 50 open("stdout", 0); 51 open("stderr", 0); 59 52 } 60 53
Note:
See TracChangeset
for help on using the changeset viewer.