VirtualBox

source: vbox/trunk/src/libs/curl-7.87.0/lib/config-os400.h@ 98326

Last change on this file since 98326 was 98326, checked in by vboxsync, 2 years ago

curl-7.87.0: Applied and adjusted our curl changes to 7.83.1. bugref:10356

  • Property svn:eol-style set to native
File size: 10.4 KB
Line 
1#ifndef HEADER_CURL_CONFIG_OS400_H
2#define HEADER_CURL_CONFIG_OS400_H
3/***************************************************************************
4 * _ _ ____ _
5 * Project ___| | | | _ \| |
6 * / __| | | | |_) | |
7 * | (__| |_| | _ <| |___
8 * \___|\___/|_| \_\_____|
9 *
10 * Copyright (C) 1998 - 2022, Daniel Stenberg, <[email protected]>, et al.
11 *
12 * This software is licensed as described in the file COPYING, which
13 * you should have received as part of this distribution. The terms
14 * are also available at https://curl.se/docs/copyright.html.
15 *
16 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
17 * copies of the Software, and permit persons to whom the Software is
18 * furnished to do so, under the terms of the COPYING file.
19 *
20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 * KIND, either express or implied.
22 *
23 * SPDX-License-Identifier: curl
24 *
25 ***************************************************************************/
26
27/* ================================================================ */
28/* Hand crafted config file for OS/400 */
29/* ================================================================ */
30
31#pragma enum(int)
32
33#undef PACKAGE
34
35/* Version number of this archive. */
36#undef VERSION
37
38/* Define cpu-machine-OS */
39#ifndef OS
40#define OS "OS/400"
41#endif
42
43/* OS400 supports a 3-argument ASCII version of gethostbyaddr_r(), but its
44 * prototype is incompatible with the "standard" one (1st argument is not
45 * const). However, getaddrinfo() is supported (ASCII version defined as
46 * a local wrapper in setup-os400.h) in a threadsafe way: we can then
47 * configure getaddrinfo() as such and get rid of gethostbyname_r() without
48 * loss of threadsafeness. */
49#undef HAVE_GETHOSTBYNAME_R
50#undef HAVE_GETHOSTBYNAME_R_3
51#undef HAVE_GETHOSTBYNAME_R_5
52#undef HAVE_GETHOSTBYNAME_R_6
53#define HAVE_GETADDRINFO
54#define HAVE_GETADDRINFO_THREADSAFE
55
56/* Define if you need the _REENTRANT define for some functions */
57#undef NEED_REENTRANT
58
59/* Define if you want to enable IPv6 support */
60#define ENABLE_IPV6
61
62/* Define if struct sockaddr_in6 has the sin6_scope_id member */
63#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
64
65/* Define this to 'int' if ssize_t is not an available typedefed type */
66#undef ssize_t
67
68/* Define this as a suitable file to read random data from */
69#undef RANDOM_FILE
70
71/* Define this to your Entropy Gathering Daemon socket pathname */
72#undef EGD_SOCKET
73
74/* Define to 1 if you have the alarm function. */
75#define HAVE_ALARM 1
76
77/* Define if you have the <arpa/inet.h> header file. */
78#define HAVE_ARPA_INET_H
79
80/* Define if you have the `closesocket' function. */
81#undef HAVE_CLOSESOCKET
82
83/* Define if you have the <fcntl.h> header file. */
84#define HAVE_FCNTL_H
85
86/* Define if you have the `geteuid' function. */
87#define HAVE_GETEUID
88
89/* Define if you have the `gethostname' function. */
90#define HAVE_GETHOSTNAME
91
92/* Define if you have the `getpass_r' function. */
93#undef HAVE_GETPASS_R
94
95/* Define to 1 if you have the getpeername function. */
96#define HAVE_GETPEERNAME 1
97
98/* Define if you have the `getpwuid' function. */
99#define HAVE_GETPWUID
100
101/* Define to 1 if you have the getsockname function. */
102#define HAVE_GETSOCKNAME 1
103
104/* Define if you have the `gettimeofday' function. */
105#define HAVE_GETTIMEOFDAY
106
107/* Define if you have the `timeval' struct. */
108#define HAVE_STRUCT_TIMEVAL
109
110/* Define if you have the <inttypes.h> header file. */
111#define HAVE_INTTYPES_H
112
113/* Define if you have the <io.h> header file. */
114#undef HAVE_IO_H
115
116/* Define if you have the `socket' library (-lsocket). */
117#undef HAVE_LIBSOCKET
118
119/* Define if you have GSS API. */
120#define HAVE_GSSAPI
121
122/* Define if you have the GNU gssapi libraries */
123#undef HAVE_GSSGNU
124
125/* Define if you have the Heimdal gssapi libraries */
126#define HAVE_GSSHEIMDAL
127
128/* Define if you have the MIT gssapi libraries */
129#undef HAVE_GSSMIT
130
131/* Define if you need the malloc.h header file even with stdlib.h */
132/* #define NEED_MALLOC_H 1 */
133
134/* Define if you have the <netdb.h> header file. */
135#define HAVE_NETDB_H
136
137/* Define if you have the <netinet/in.h> header file. */
138#define HAVE_NETINET_IN_H
139
140/* Define if you have the <net/if.h> header file. */
141#define HAVE_NET_IF_H
142
143/* Define if you have the <pwd.h> header file. */
144#define HAVE_PWD_H
145
146/* Define if you have the `RAND_egd' function. */
147#undef HAVE_RAND_EGD
148
149/* Define if you have the `select' function. */
150#define HAVE_SELECT
151
152/* Define if you have the `sigaction' function. */
153#define HAVE_SIGACTION
154
155/* Define if you have the `signal' function. */
156#undef HAVE_SIGNAL
157
158/* Define if you have the <signal.h> header file. */
159#define HAVE_SIGNAL_H
160
161/* Define if you have the `socket' function. */
162#define HAVE_SOCKET
163
164/* Define if you have the <ssl.h> header file. */
165#undef HAVE_SSL_H
166
167/* Define if you have the <stdint.h> header file. */
168#undef HAVE_STDINT_H
169
170/* Define if you have the <stdlib.h> header file. */
171#define HAVE_STDLIB_H
172
173
174/* The following define is needed on OS400 to enable strcmpi(), stricmp() and
175 strdup(). */
176#define __cplusplus__strings__
177
178/* Define if you have the `strcasecmp' function. */
179#undef HAVE_STRCASECMP
180
181/* Define if you have the `strcmpi' function. */
182#define HAVE_STRCMPI
183
184/* Define if you have the `stricmp' function. */
185#define HAVE_STRICMP
186
187/* Define if you have the `strdup' function. */
188#define HAVE_STRDUP
189
190/* Define if you have the <strings.h> header file. */
191#define HAVE_STRINGS_H
192
193/* Define if you have the <string.h> header file. */
194#define HAVE_STRING_H
195
196/* Define if you have the <stropts.h> header file. */
197#undef HAVE_STROPTS_H
198
199/* Define if you have the `strtok_r' function. */
200#define HAVE_STRTOK_R
201
202/* Define if you have the `strtoll' function. */
203#undef HAVE_STRTOLL /* Allows ASCII compile on V5R1. */
204
205/* Define if you have the <sys/param.h> header file. */
206#define HAVE_SYS_PARAM_H
207
208/* Define if you have the <sys/select.h> header file. */
209#undef HAVE_SYS_SELECT_H
210
211/* Define if you have the <sys/socket.h> header file. */
212#define HAVE_SYS_SOCKET_H
213
214/* Define if you have the <sys/sockio.h> header file. */
215#undef HAVE_SYS_SOCKIO_H
216
217/* Define if you have the <sys/stat.h> header file. */
218#define HAVE_SYS_STAT_H
219
220/* Define if you have the <sys/time.h> header file. */
221#define HAVE_SYS_TIME_H
222
223/* Define if you have the <sys/types.h> header file. */
224#define HAVE_SYS_TYPES_H
225
226/* Define if you have the <sys/un.h> header file. */
227#define HAVE_SYS_UN_H
228
229/* Define if you have the <sys/ioctl.h> header file. */
230#define HAVE_SYS_IOCTL_H
231
232/* Define if you have the <termios.h> header file. */
233#undef HAVE_TERMIOS_H
234
235/* Define if you have the <termio.h> header file. */
236#undef HAVE_TERMIO_H
237
238/* Define if you have the <time.h> header file. */
239#define HAVE_TIME_H
240
241/* Define if you have the <unistd.h> header file. */
242#define HAVE_UNISTD_H
243
244/* Name of package */
245#undef PACKAGE
246
247/* The size of `int', as computed by sizeof. */
248#define SIZEOF_INT 4
249
250/* Define if the compiler supports the 'long long' data type. */
251#define HAVE_LONGLONG
252
253/* The size of a `long long', as computed by sizeof. */
254#define SIZEOF_LONG_LONG 8
255
256/* The size of `long', as computed by sizeof. */
257#define SIZEOF_LONG 4
258
259/* The size of `size_t', as computed by sizeof. */
260#define SIZEOF_SIZE_T 4
261
262/* The size of `curl_off_t', as computed by sizeof. */
263#define SIZEOF_CURL_OFF_T 8
264
265/* Define this if you have struct sockaddr_storage */
266#define HAVE_STRUCT_SOCKADDR_STORAGE
267
268/* Define if you have the ANSI C header files. */
269#define STDC_HEADERS
270
271/* Define if you can safely include both <sys/time.h> and <time.h>. */
272#define TIME_WITH_SYS_TIME
273
274/* Define to enable HTTP3 support (experimental, requires NGTCP2, QUICHE or
275 MSH3) */
276#undef ENABLE_QUIC
277
278/* Version number of package */
279#undef VERSION
280
281/* Number of bits in a file offset, on hosts where this is settable. */
282#undef _FILE_OFFSET_BITS
283
284/* Define for large files, on AIX-style hosts. */
285#define _LARGE_FILES
286
287/* Define to empty if `const' does not conform to ANSI C. */
288#undef const
289
290/* type to use in place of in_addr_t if not defined */
291#define in_addr_t unsigned long
292
293/* Define to `unsigned' if <sys/types.h> does not define. */
294#undef size_t
295
296/* Define if you have a working ioctl FIONBIO function. */
297#define HAVE_IOCTL_FIONBIO
298
299/* Define if you have a working ioctl SIOCGIFADDR function. */
300#define HAVE_IOCTL_SIOCGIFADDR
301
302/* To disable LDAP */
303#undef CURL_DISABLE_LDAP
304
305/* Definition to make a library symbol externally visible. */
306#define CURL_EXTERN_SYMBOL
307
308/* Define if you have the ldap_url_parse procedure. */
309/* #define HAVE_LDAP_URL_PARSE */ /* Disabled because of an IBM bug. */
310
311/* Define if you have the recv function. */
312#define HAVE_RECV
313
314/* Define to the type of arg 1 for recv. */
315#define RECV_TYPE_ARG1 int
316
317/* Define to the type of arg 2 for recv. */
318#define RECV_TYPE_ARG2 char *
319
320/* Define to the type of arg 3 for recv. */
321#define RECV_TYPE_ARG3 int
322
323/* Define to the type of arg 4 for recv. */
324#define RECV_TYPE_ARG4 int
325
326/* Define to the function return type for recv. */
327#define RECV_TYPE_RETV int
328
329/* Define if you have the send function. */
330#define HAVE_SEND
331
332/* Define to the type of arg 1 for send. */
333#define SEND_TYPE_ARG1 int
334
335/* Define to the type qualifier of arg 2 for send. */
336#define SEND_QUAL_ARG2
337
338/* Define to the type of arg 2 for send. */
339#define SEND_TYPE_ARG2 char *
340
341/* Define to the type of arg 3 for send. */
342#define SEND_TYPE_ARG3 int
343
344/* Define to the type of arg 4 for send. */
345#define SEND_TYPE_ARG4 int
346
347/* Define to the function return type for send. */
348#define SEND_TYPE_RETV int
349
350/* Define to use the GSKit package. */
351#define USE_GSKIT
352
353/* Define to use the OS/400 crypto library. */
354#define USE_OS400CRYPTO
355
356/* Define to use Unix sockets. */
357#define USE_UNIX_SOCKETS
358
359/* Use the system keyring as the default CA bundle. */
360#define CURL_CA_BUNDLE "/QIBM/UserData/ICSS/Cert/Server/DEFAULT.KDB"
361
362/* ---------------------------------------------------------------- */
363/* ADDITIONAL DEFINITIONS */
364/* ---------------------------------------------------------------- */
365
366/* The following must be defined BEFORE system header files inclusion. */
367
368#define __ptr128 /* No teraspace. */
369#define qadrt_use_fputc_inline /* Generate fputc() wrapper inline. */
370#define qadrt_use_fread_inline /* Generate fread() wrapper inline. */
371#define qadrt_use_fwrite_inline /* Generate fwrite() wrapper inline. */
372
373#endif /* HEADER_CURL_CONFIG_OS400_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette