Chameleon

Chameleon Svn Source Tree

Root/branches/rewrite/i386/modules/klibc/klibc.c

Source at commit 1146 created 12 years 11 months ago.
By azimutz, Sync with trunk (r1145). Add nVidia dev id's, 0DF4 for "GeForce GT 450M" (issue 99) and 1251 for "GeForce GTX 560M" (thanks to oSxFr33k for testing).
1/*
2 * klibc.c
3 *
4 * glue + initialization
5 */
6
7#include "libsaio.h"
8
9int _DefaultRuneLocale;// todo: fixme
10
11void klibc_start()
12{
13}
14
15void _exit(int status)
16{
17 stop("exit() called\n");
18 while(1) halt(); // this is never reached
19}
20
21char __toupper(char c)
22{
23return ((c) & ~32);
24}
25
26void __divide_error()
27{
28stop("Divide by 0\n");
29}
30
31// hack
32int
33__maskrune(int _c, unsigned long _f)
34{
35return 0;
36//return ((_c < 0 || _c >= _CACHED_RUNES) ? ___runetype(_c) :
37//_CurrentRuneLocale->__runetype[_c]) & _f;
38}
39

Archive Download this file

Revision: 1146