Skip to content

Commit 4bc5295

Browse files
author
Anantha Kesari H Y
committed
NetWare related file.
1 parent a064635 commit 4bc5295

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

sapi/apache/libpre.c

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
}

0 commit comments

Comments
 (0)