2 Copyright © 2012-2018, The AROS Development Team. All rights reserved.
5 Internal initialisation code for posixc.library
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);