Chameleon

Chameleon Svn Source Tree

Root/branches/xZenu/src/modules/klibc/klibc.c

Source at commit 1406 created 12 years 10 months ago.
By meklort, Revert drivers.c so that kexts are only loaded when OSBundleRequired is set and that value is not safe mode. Added some comments about it too.
1/*
2 * klibc.c
3 *
4 * glue + initialization
5 */
6
7#include <stdio.h>
8
9int _DefaultRuneLocale;// todo: fixme
10
11void klibc_start()
12{
13}
14
15void _exit(int status)
16{
17 printf("exit() called\n");
18 while(1);
19}
20
21char __toupper(char c)
22{
23return ((c) & ~32);
24}
25
26void __divide_error()
27{
28printf("Divide by 0\n");
29 while(1);
30}
31
32// hack
33int
34__maskrune(int _c, unsigned long _f)
35{
36return 0;
37//return ((_c < 0 || _c >= _CACHED_RUNES) ? ___runetype(_c) :
38//_CurrentRuneLocale->__runetype[_c]) & _f;
39}
40

Archive Download this file

Revision: 1406