- Make iofuncs.h standalone.
[reactos.git] / rosky / lib / libsky / libsky.c
1 /*
2 * ROSky - SkyOS Application Layer
3 * Copyright (C) 2004 ReactOS Team
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19 /* $Id$
20 *
21 * PROJECT: SkyOS library
22 * FILE: lib/libsky/libsky.c
23 * PURPOSE: SkyOS library
24 *
25 * UPDATE HISTORY:
26 * 08/12/2004 Created
27 */
28
29 #include <windows.h>
30 /* #define NDEBUG */
31 #include "libsky.h"
32 #include "resource.h"
33
34 /*
35 * @implemented
36 */
37 void __cdecl
38 __to_kernel(int ret)
39 {
40 DBG("__to_kernel: ret=0x%x\n", ret);
41 ExitProcess(ret);
42 }
43
44
45 /*
46 * @implemented
47 */
48 void __cdecl
49 __libc_init_memory(void *end,
50 void *__bss_end__,
51 void *__bss_start__)
52 {
53 DBG("__libc_init_memory: end=0x%x __bss_end__=0x%x __bss_start__=0x%x\n", end, __bss_end__, __bss_start__);
54 RtlZeroMemory(__bss_start__, (PCHAR)__bss_end__ - (PCHAR)__bss_start__);
55 /* FIXME - initialize other stuff */
56 }
57