revert between 56095 -> 55830 in arch
[AROS.git] / compiler / posixc / __posixc_init.c
bloba1d2dc4b966052e4b818f3343c7b62038705b995
1 /*
2 Copyright © 2012-2018, 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 __aros_rellib_base_StdCBase = 0;
17 SETRELLIBOFFSET(StdCBase, struct PosixCBase, StdCBase)
19 /* We handle StdCIOBase */
20 const ULONG __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);