File tree 1 file changed +30
-0
lines changed 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*------------------------------------------------------------------
2
+ These functions are to be called when the shared NLM starts and
3
+ stops. By using these functions instead of defining a main()
4
+ and calling ExitThread(TSR_THREAD, 0), the load time of the
5
+ shared NLM is faster and memory size reduced.
6
+
7
+ You may also want to override these in your own Apache module
8
+ to do any cleanup other than the mechanism Apache modules
9
+ provide.
10
+ ------------------------------------------------------------------*/
11
+
12
+ #ifdef __GNUC__
13
+ #include <string.h> /* memset */
14
+ extern char _edata , _end ; /* end of DATA (start of BSS), end of BSS */
15
+ #endif
16
+
17
+ int _lib_start ()
18
+ {
19
+ /* printf("Inside _lib_start\n");*/
20
+ #ifdef __GNUC__
21
+ memset (& _edata , 0 , & _end - & _edata );
22
+ #endif
23
+ return 0 ;
24
+ }
25
+
26
+ int _lib_stop ()
27
+ {
28
+ /* printf("Inside _lib_stop\n");*/
29
+ return 0 ;
30
+ }
You can’t perform that action at this time.
0 commit comments