Root/
Source at commit 307 created 13 years 12 days ago. By ifabio, merge changes from trunk (929). Also merge the module changes from Azimutz branche (fix compile error) Also edited the info.plist into AHCIPortInjector.kext: http://forum.voodooprojects.org/index.php/topic,1170.0.html | |
---|---|
1 | /*␊ |
2 | * klibc.c␊ |
3 | *␊ |
4 | * glue + initialization␊ |
5 | */␊ |
6 | ␊ |
7 | #include "libsaio.h"␊ |
8 | ␊ |
9 | int _DefaultRuneLocale;␉// todo: fixme␊ |
10 | ␊ |
11 | void klibc_start()␊ |
12 | {␊ |
13 | }␊ |
14 | ␊ |
15 | void _exit(int status)␊ |
16 | {␊ |
17 | stop("exit() called\n");␊ |
18 | while(1) halt(); // this is never reached␊ |
19 | }␊ |
20 | ␊ |
21 | char __toupper(char c)␊ |
22 | {␊ |
23 | ␉return ((c) & ~32);␊ |
24 | }␊ |
25 | ␊ |
26 | void __divide_error()␊ |
27 | {␊ |
28 | ␉stop("Divide by 0\n");␊ |
29 | }␊ |
30 | ␊ |
31 | // hack␊ |
32 | int␊ |
33 | __maskrune(int _c, unsigned long _f)␊ |
34 | {␊ |
35 | ␉return 0;␊ |
36 | ␉//return ((_c < 0 || _c >= _CACHED_RUNES) ? ___runetype(_c) :␊ |
37 | ␉//␉␉_CurrentRuneLocale->__runetype[_c]) & _f;␊ |
38 | }␊ |
39 |