/usr/src/redhat/BUILD/httpd-2.2.3/srclib/apr/include/arch/netware/apr_private.h

00001 /* Copyright 2000-2005 The Apache Software Foundation or its licensors, as
00002  * applicable.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 /*
00018  * Note: 
00019  * This is the windows specific autoconf-like config file
00020  * which unix would create at build time.
00021  */
00022 
00023 #ifdef NETWARE
00024 
00025 #ifndef APR_PRIVATE_H
00026 #define APR_PRIVATE_H
00027 
00028 /* Include the public APR symbols, include our idea of the 'right'
00029  * subset of the Windows.h header.  This saves us repetition.
00030  */
00031 #include "apr.h"
00032 
00033 #include <sys/types.h>
00034 #include <stddef.h>
00035 #include <stdio.h>
00036 #include <stdlib.h>
00037 #include <time.h>
00038 #include <library.h>
00039 #include <netware.h>
00040 
00041 /* Use this section to define all of the HAVE_FOO_H
00042  * that are required to build properly.
00043  */
00044 #define HAVE_DLFCN_H    1
00045 #define HAVE_LIMITS_H   1
00046 #define HAVE_SIGNAL_H   1
00047 #define HAVE_STDDEF_H   1
00048 #define HAVE_STDLIB_H   1
00049 #ifndef USE_WINSOCK
00050 #define HAVE_SYS_SELECT_H 1
00051 #define HAVE_WRITEV       1
00052 #endif
00053 #define HAVE_SYS_STAT_H 1
00054 #define HAVE_SYS_MMAN_H 1
00055 #define HAVE_FCNTL_H    1
00056 #define HAVE_ICONV_H    1
00057 #define HAVE_UTIME_H    1
00058 
00059 #define HAVE_STRICMP    1
00060 #define HAVE_STRNICMP   1
00061 #define HAVE_STRDUP     1
00062 #define HAVE_STRSTR     1
00063 #define HAVE_MEMCHR     1
00064 #define HAVE_CALLOC     1
00065 #define HAVE_UTIME      1
00066 
00067 #define HAVE_GETENV     1
00068 #define HAVE_SETENV     1
00069 #define HAVE_UNSETENV   1
00070 
00071 #define HAVE_WRITEV     1
00072 
00073 /* 64-bit integer conversion function */
00074 #define APR_INT64_STRFN       strtoll
00075 
00076 /*#define DSO_USE_DLFCN */
00077 
00078 #ifdef NW_BUILD_IPV6
00079 #define HAVE_GETADDRINFO 1
00080 #define HAVE_GETNAMEINFO 1
00081 #endif
00082 
00083 /* 1 is used for SIGABRT on netware */
00084 /* 2 is used for SIGFPE on netware */
00085 /* 3 is used for SIGILL on netware */
00086 /* 4 is used for SIGINT on netware */
00087 /* 5 is used for SIGSEGV on netware */
00088 /* 6 is used for SIGTERM on netware */
00089 /* 7 is used for SIGPOLL on netware */
00090 
00091 #define SIGKILL         11
00092 #define SA_NOCLDSTOP    12
00093 #define SIGALRM         13
00094 #define SIGCHLD         14 
00095 #define SIGCONT         15
00096 #define SIGHUP          16
00097 #define SIGPIPE         17
00098 #define SIGQUIT         18
00099 #define SIGSTOP         19
00100 #define SIGTSTP         20
00101 #define SIGTTIN         21
00102 #define SIGTTOU         22
00103 #define SIGUSR1         23
00104 #define SIGUSR2         24
00105     
00106 #define SIGTRAP         25
00107 #define SIGIOT          26
00108 #define SIGBUS          27
00109 #define SIGSTKFLT       28
00110 #define SIGURG          29
00111 #define SIGXCPU         30
00112 #define SIGXFSZ         31
00113 #define SIGVTALRM       32
00114 #define SIGPROF         33
00115 #define SIGWINCH        34
00116 #define SIGIO           35
00117 
00118 #if 0
00119 #define __attribute__(__x) 
00120 
00121 /* APR COMPATABILITY FUNCTIONS
00122  * This section should be used to define functions and
00123  * macros which are need to make Windows features look
00124  * like POSIX features.
00125  */
00126 typedef void (Sigfunc)(int);
00127 #endif
00128 
00129 #define strcasecmp(s1, s2)       stricmp(s1, s2)
00130 #define Sleep(t)                 delay(t)
00131 #define lstat(a,b)               stat(a,b)
00132 #define _getch()                 getcharacter()
00133 
00134 #define SIZEOF_SHORT           2
00135 #define SIZEOF_INT             4
00136 #define SIZEOF_LONGLONG        8
00137 #define SIZEOF_CHAR            1
00138 #define SIZEOF_SSIZE_T         SIZEOF_INT
00139 
00140 void netware_pool_proc_cleanup ();
00141 
00142 /* NLM registration routines for managing which NLMs
00143     are using the library. */
00144 int register_NLM(void *NLMHandle);
00145 int unregister_NLM(void *NLMHandle);
00146 
00147 /* Application global data management */
00148 extern int  gLibId;
00149 extern void *gLibHandle;
00150 
00151 typedef struct app_data {
00152     int     initialized;
00153     void*   gPool;
00154     void*   gs_aHooksToSort;
00155     void*   gs_phOptionalHooks;
00156     void*   gs_phOptionalFunctions;
00157     void*   gs_nlmhandle;
00158     rtag_t  gs_startup_rtag;
00159     rtag_t  gs_socket_rtag;
00160     rtag_t  gs_lookup_rtag;
00161     rtag_t  gs_event_rtag;
00162     rtag_t  gs_pcp_rtag;
00163 } APP_DATA;
00164 
00165 int setGlobalPool(void *data);
00166 void* getGlobalPool();
00167 int setStatCache(void *data);
00168 void* getStatCache();
00169 
00170 /* Redefine malloc to use the library malloc call so 
00171     that all of the memory resources will be owned
00172     and can be shared by the library. */
00173 #undef malloc
00174 #define malloc(x) library_malloc(gLibHandle,x)
00175 
00176 #if APR_HAS_LARGE_FILES
00177 #define APR_OFF_T_STRFN       strtoll
00178 #else
00179 #define APR_OFF_T_STRFN       strtol
00180 #endif
00181 
00182 /* used to check DWORD overflow for 64bit compiles */
00183 #define APR_DWORD_MAX 0xFFFFFFFFUL
00184 
00185 /*
00186  * Include common private declarations.
00187  */
00188 #include "../apr_private_common.h"
00189 
00190 #endif  /*APR_PRIVATE_H*/
00191 #endif  /*NETWARE*/

Apacheに対してSun Jul 19 22:05:24 2009に生成されました。  doxygen 1.4.7