2 Copyright © 2009-2012, The AROS Development Team. All rights reserved.
5 Desc: arosc library - support code for entering and leaving a program
8 #include "__arosc_privdata.h"
9 #include "__exitfunc.h"
12 #include <aros/debug.h>
14 #include <dos/stdio.h>
15 #include <proto/dos.h>
17 void __arosc_program_startup(void)
19 struct Process
*me
= (struct Process
*)FindTask(NULL
);
21 D(bug("[__arosc_program_startup] aroscbase 0x%p\n", __GM_GetBase()));
23 /* Function is just a placeholder for the future */
25 /* A some C error IO routines evidently rely on this, and
28 if (me
->pr_Task
.tc_Node
.ln_Type
== NT_PROCESS
&&
31 SetVBuf(me
->pr_CES
, NULL
, BUF_NONE
, -1);
35 void __arosc_program_end(void)
37 D(bug("[__arosc_program_end]\n"));