1
/* Copyright 2000-2005 The Apache Software Foundation or its licensors, as
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
8
* http://www.apache.org/licenses/LICENSE-2.0
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
19
* This is the windows specific autoconf-like config file
20
* which unix would create at build time.
28
/* Include the public APR symbols, include our idea of the 'right'
29
* subset of the Windows.h header. This saves us repetition.
33
#include <sys/types.h>
41
/* Use this section to define all of the HAVE_FOO_H
42
* that are required to build properly.
44
#define HAVE_DLFCN_H 1
45
#define HAVE_LIMITS_H 1
46
#define HAVE_SIGNAL_H 1
47
#define HAVE_STDDEF_H 1
48
#define HAVE_STDLIB_H 1
50
#define HAVE_SYS_SELECT_H 1
53
#define HAVE_SYS_STAT_H 1
54
#define HAVE_SYS_MMAN_H 1
55
#define HAVE_FCNTL_H 1
56
#define HAVE_ICONV_H 1
57
#define HAVE_UTIME_H 1
59
#define HAVE_STRICMP 1
60
#define HAVE_STRNICMP 1
69
#define HAVE_UNSETENV 1
73
/* 64-bit integer conversion function */
74
#define APR_INT64_STRFN strtoll
76
/*#define DSO_USE_DLFCN */
79
#define HAVE_GETADDRINFO 1
80
#define HAVE_GETNAMEINFO 1
83
/* 1 is used for SIGABRT on netware */
84
/* 2 is used for SIGFPE on netware */
85
/* 3 is used for SIGILL on netware */
86
/* 4 is used for SIGINT on netware */
87
/* 5 is used for SIGSEGV on netware */
88
/* 6 is used for SIGTERM on netware */
89
/* 7 is used for SIGPOLL on netware */
92
#define SA_NOCLDSTOP 12
119
#define __attribute__(__x)
121
/* APR COMPATABILITY FUNCTIONS
122
* This section should be used to define functions and
123
* macros which are need to make Windows features look
124
* like POSIX features.
126
typedef void (Sigfunc)(int);
129
#define strcasecmp(s1, s2) stricmp(s1, s2)
130
#define Sleep(t) delay(t)
131
#define lstat(a,b) stat(a,b)
132
#define _getch() getcharacter()
134
#define SIZEOF_SHORT 2
136
#define SIZEOF_LONGLONG 8
137
#define SIZEOF_CHAR 1
138
#define SIZEOF_SSIZE_T SIZEOF_INT
140
void netware_pool_proc_cleanup ();
142
/* NLM registration routines for managing which NLMs
143
are using the library. */
144
int register_NLM(void *NLMHandle);
145
int unregister_NLM(void *NLMHandle);
147
/* Application global data management */
149
extern void *gLibHandle;
151
typedef struct app_data {
154
void* gs_aHooksToSort;
155
void* gs_phOptionalHooks;
156
void* gs_phOptionalFunctions;
158
rtag_t gs_startup_rtag;
159
rtag_t gs_socket_rtag;
160
rtag_t gs_lookup_rtag;
161
rtag_t gs_event_rtag;
165
int setGlobalPool(void *data);
166
void* getGlobalPool();
167
int setStatCache(void *data);
168
void* getStatCache();
170
/* Redefine malloc to use the library malloc call so
171
that all of the memory resources will be owned
172
and can be shared by the library. */
174
#define malloc(x) library_malloc(gLibHandle,x)
176
#if APR_HAS_LARGE_FILES
177
#define APR_OFF_T_STRFN strtoll
179
#define APR_OFF_T_STRFN strtol
182
/* used to check DWORD overflow for 64bit compiles */
183
#define APR_DWORD_MAX 0xFFFFFFFFUL
186
* Include common private declarations.
188
#include "../apr_private_common.h"
190
#endif /*APR_PRIVATE_H*/