2 Copyright © 1995-2006, The AROS Development Team. All rights reserved.
5 Desc: bsdsocket initialization code.
9 /****************************************************************************************/
11 #include <exec/types.h>
12 #include <exec/libraries.h>
13 #include <proto/exec.h>
14 #include <aros/symbolsets.h>
15 #include <aros/macros.h>
16 #include <utility/utility.h>
18 #include "inifile_intern.h"
21 # include <aros/debug.h>
23 #include LC_LIBDEFS_FILE
25 /****************************************************************************************/
27 static int Init(LIBBASETYPEPTR LIBBASE
)
29 D(bug(NAME_STRING
": Inside libinit func \n"));
34 /****************************************************************************************/
36 static int Open(LIBBASETYPEPTR LIBBASE
)
39 This function is single-threaded by exec by calling Forbid.
40 If you break the Forbid() another task may enter this function
41 at the same time. Take care.
43 D(bug(NAME_STRING
": Inside libopen func \n"));
48 /****************************************************************************************/
50 static int Expunge(LIBBASETYPEPTR LIBBASE
)
53 This function is single-threaded by exec by calling Forbid.
54 Never break the Forbid() or strange things might happen.
57 /* Test for openers. */
58 D(bug(NAME_STRING
": Inside libexpunge func \n"));
63 /****************************************************************************************/
65 static void Close(LIBBASETYPEPTR LIBBASE
)
68 This function is single-threaded by exec by calling Forbid.
69 If you break the Forbid() another task may enter this function
70 at the same time. Take care.
73 D(bug(NAME_STRING
": Inside libclose func\n"));
78 /****************************************************************************************/
82 ADD2CLOSELIB(Close
, 0);
83 ADD2EXPUNGELIB(Expunge
, 0);