tools/adflib: build only host variant which is used by Sam440 target
[AROS.git] / compiler / posixc / __posixc_init.c
blob57b0c90f08b5050602c9ee3127ffb99ea68b2db5
1 /*
2 Copyright © 2012-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Internal initialisation code for posixc.library
6 */
8 #include <proto/exec.h>
9 #include <aros/symbolsets.h>
11 #include <libraries/posixc.h>
13 #include "__posixc_intbase.h"
15 /* We handle StdCBase */
16 const ULONG const __aros_rellib_base_StdCBase = 0;
17 SETRELLIBOFFSET(StdCBase, struct PosixCBase, StdCBase)
19 /* We handle StdCIOBase */
20 const ULONG const __aros_rellib_base_StdCIOBase = 0;
21 SETRELLIBOFFSET(StdCIOBase, struct PosixCBase, StdCIOBase)
23 static int __posixc_open(struct PosixCIntBase *PosixCBase)
25 PosixCBase->internalpool = CreatePool(MEMF_PUBLIC|MEMF_CLEAR, 256, 256);
27 return PosixCBase->internalpool != NULL;
30 static void __posixc_close(struct PosixCIntBase *PosixCBase)
32 DeletePool(PosixCBase->internalpool);
35 ADD2OPENLIB(__posixc_open, -50);
36 ADD2CLOSELIB(__posixc_close, -50);