~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to srclib/apr/include/arch/netware/apr_private.h

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright 2000-2005 The Apache Software Foundation or its licensors, as
 
2
 * applicable.
 
3
 *
 
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
 
7
 *
 
8
 *     http://www.apache.org/licenses/LICENSE-2.0
 
9
 *
 
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.
 
15
 */
 
16
 
 
17
/*
 
18
 * Note: 
 
19
 * This is the windows specific autoconf-like config file
 
20
 * which unix would create at build time.
 
21
 */
 
22
 
 
23
#ifdef NETWARE
 
24
 
 
25
#ifndef APR_PRIVATE_H
 
26
#define APR_PRIVATE_H
 
27
 
 
28
/* Include the public APR symbols, include our idea of the 'right'
 
29
 * subset of the Windows.h header.  This saves us repetition.
 
30
 */
 
31
#include "apr.h"
 
32
 
 
33
#include <sys/types.h>
 
34
#include <stddef.h>
 
35
#include <stdio.h>
 
36
#include <stdlib.h>
 
37
#include <time.h>
 
38
#include <library.h>
 
39
#include <netware.h>
 
40
 
 
41
/* Use this section to define all of the HAVE_FOO_H
 
42
 * that are required to build properly.
 
43
 */
 
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
 
49
#ifndef USE_WINSOCK
 
50
#define HAVE_SYS_SELECT_H 1
 
51
#define HAVE_WRITEV       1
 
52
#endif
 
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
 
58
 
 
59
#define HAVE_STRICMP    1
 
60
#define HAVE_STRNICMP   1
 
61
#define HAVE_STRDUP     1
 
62
#define HAVE_STRSTR     1
 
63
#define HAVE_MEMCHR     1
 
64
#define HAVE_CALLOC     1
 
65
#define HAVE_UTIME      1
 
66
 
 
67
#define HAVE_GETENV     1
 
68
#define HAVE_SETENV     1
 
69
#define HAVE_UNSETENV   1
 
70
 
 
71
#define HAVE_WRITEV     1
 
72
 
 
73
/* 64-bit integer conversion function */
 
74
#define APR_INT64_STRFN       strtoll
 
75
 
 
76
/*#define DSO_USE_DLFCN */
 
77
 
 
78
#ifdef NW_BUILD_IPV6
 
79
#define HAVE_GETADDRINFO 1
 
80
#define HAVE_GETNAMEINFO 1
 
81
#endif
 
82
 
 
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 */
 
90
 
 
91
#define SIGKILL         11
 
92
#define SA_NOCLDSTOP    12
 
93
#define SIGALRM         13
 
94
#define SIGCHLD         14 
 
95
#define SIGCONT         15
 
96
#define SIGHUP          16
 
97
#define SIGPIPE         17
 
98
#define SIGQUIT         18
 
99
#define SIGSTOP         19
 
100
#define SIGTSTP         20
 
101
#define SIGTTIN         21
 
102
#define SIGTTOU         22
 
103
#define SIGUSR1         23
 
104
#define SIGUSR2         24
 
105
    
 
106
#define SIGTRAP         25
 
107
#define SIGIOT          26
 
108
#define SIGBUS          27
 
109
#define SIGSTKFLT       28
 
110
#define SIGURG          29
 
111
#define SIGXCPU         30
 
112
#define SIGXFSZ         31
 
113
#define SIGVTALRM       32
 
114
#define SIGPROF         33
 
115
#define SIGWINCH        34
 
116
#define SIGIO           35
 
117
 
 
118
#if 0
 
119
#define __attribute__(__x) 
 
120
 
 
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.
 
125
 */
 
126
typedef void (Sigfunc)(int);
 
127
#endif
 
128
 
 
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()
 
133
 
 
134
#define SIZEOF_SHORT           2
 
135
#define SIZEOF_INT             4
 
136
#define SIZEOF_LONGLONG        8
 
137
#define SIZEOF_CHAR            1
 
138
#define SIZEOF_SSIZE_T         SIZEOF_INT
 
139
 
 
140
void netware_pool_proc_cleanup ();
 
141
 
 
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);
 
146
 
 
147
/* Application global data management */
 
148
extern int  gLibId;
 
149
extern void *gLibHandle;
 
150
 
 
151
typedef struct app_data {
 
152
    int     initialized;
 
153
    void*   gPool;
 
154
    void*   gs_aHooksToSort;
 
155
    void*   gs_phOptionalHooks;
 
156
    void*   gs_phOptionalFunctions;
 
157
    void*   gs_nlmhandle;
 
158
    rtag_t  gs_startup_rtag;
 
159
    rtag_t  gs_socket_rtag;
 
160
    rtag_t  gs_lookup_rtag;
 
161
    rtag_t  gs_event_rtag;
 
162
    rtag_t  gs_pcp_rtag;
 
163
} APP_DATA;
 
164
 
 
165
int setGlobalPool(void *data);
 
166
void* getGlobalPool();
 
167
int setStatCache(void *data);
 
168
void* getStatCache();
 
169
 
 
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. */
 
173
#undef malloc
 
174
#define malloc(x) library_malloc(gLibHandle,x)
 
175
 
 
176
#if APR_HAS_LARGE_FILES
 
177
#define APR_OFF_T_STRFN       strtoll
 
178
#else
 
179
#define APR_OFF_T_STRFN       strtol
 
180
#endif
 
181
 
 
182
/* used to check DWORD overflow for 64bit compiles */
 
183
#define APR_DWORD_MAX 0xFFFFFFFFUL
 
184
 
 
185
/*
 
186
 * Include common private declarations.
 
187
 */
 
188
#include "../apr_private_common.h"
 
189
 
 
190
#endif  /*APR_PRIVATE_H*/
 
191
#endif  /*NETWARE*/