Back to index

php5  5.3.10
libpre.c
Go to the documentation of this file.
00001 /*
00002   +----------------------------------------------------------------------+
00003   | PHP Version 5                                                        |
00004   +----------------------------------------------------------------------+
00005   | Copyright (c) 1997-2012 The PHP Group                                |
00006   +----------------------------------------------------------------------+
00007   | This source file is subject to version 3.01 of the PHP license,      |
00008   | that is bundled with this package in the file LICENSE, and is        |
00009   | available through the world-wide-web at the following url:           |
00010   | http://www.php.net/license/3_01.txt                                  |
00011   | If you did not receive a copy of the PHP license and are unable to   |
00012   | obtain it through the world-wide-web, please send a note to          |
00013   | license@php.net so we can mail you a copy immediately.               |
00014   +----------------------------------------------------------------------+
00015   | Author:                                                              |
00016   +----------------------------------------------------------------------+
00017 */
00018 
00019 /* $Id: libpre.c 321634 2012-01-01 13:15:04Z felipe $ */
00020 
00021 #ifdef NETWARE
00022 
00023 /* ------------------------------------------------------------------
00024  * These functions are to be called when the shared NLM starts and
00025  * stops.  By using these functions instead of defining a main()
00026  * and calling ExitThread(TSR_THREAD, 0), the load time of the
00027  * shared NLM is faster and memory size reduced.
00028  * 
00029  * You may also want to override these in your own Apache module
00030  * to do any cleanup other than the mechanism Apache modules provide.
00031  * ------------------------------------------------------------------
00032  */
00033 
00034 
00035 #ifdef __GNUC__
00036 #include <string.h>        /* memset */
00037 extern char _edata, _end ; /* end of DATA (start of BSS), end of BSS */
00038 #endif
00039 
00040 int _lib_start()
00041 {
00042 /*     printf("Inside _lib_start\n");*/
00043 #ifdef __GNUC__
00044     memset (&_edata, 0, &_end - &_edata);
00045 #endif
00046     return 0;
00047 }
00048 
00049 int _lib_stop()
00050 {
00051 /*     printf("Inside _lib_stop\n");*/
00052     return 0;
00053 }
00054 
00055 #endif /* NETWARE */