Root/
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 | ␊ |
9 | int _DefaultRuneLocale;␉// todo: fixme␊ |
10 | ␊ |
11 | void klibc_start()␊ |
12 | {␊ |
13 | }␊ |
14 | ␊ |
15 | void _exit(int status)␊ |
16 | {␊ |
17 | printf("exit() called\n");␊ |
18 | while(1);␊ |
19 | }␊ |
20 | ␊ |
21 | char __toupper(char c)␊ |
22 | {␊ |
23 | ␉return ((c) & ~32);␊ |
24 | }␊ |
25 | ␊ |
26 | void __divide_error()␊ |
27 | {␊ |
28 | ␉printf("Divide by 0\n");␊ |
29 | while(1);␊ |
30 | }␊ |
31 | ␊ |
32 | // hack␊ |
33 | int␊ |
34 | __maskrune(int _c, unsigned long _f)␊ |
35 | {␊ |
36 | ␉return 0;␊ |
37 | ␉//return ((_c < 0 || _c >= _CACHED_RUNES) ? ___runetype(_c) :␊ |
38 | ␉//␉␉_CurrentRuneLocale->__runetype[_c]) & _f;␊ |
39 | }␊ |
40 |