00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifdef NETWARE
00024
00025 #ifndef APR_PRIVATE_H
00026 #define APR_PRIVATE_H
00027
00028
00029
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
00042
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
00074 #define APR_INT64_STRFN strtoll
00075
00076
00077
00078 #ifdef NW_BUILD_IPV6
00079 #define HAVE_GETADDRINFO 1
00080 #define HAVE_GETNAMEINFO 1
00081 #endif
00082
00083
00084
00085
00086
00087
00088
00089
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
00122
00123
00124
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
00143
00144 int register_NLM(void *NLMHandle);
00145 int unregister_NLM(void *NLMHandle);
00146
00147
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
00171
00172
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
00183 #define APR_DWORD_MAX 0xFFFFFFFFUL
00184
00185
00186
00187
00188 #include "../apr_private_common.h"
00189
00190 #endif
00191 #endif