config-micrium.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. #ifndef CURL_CONFIG_MICRIUM_H
  2. #define CURL_CONFIG_MICRIUM_H
  3. /***************************************************************************
  4. * _ _ ____ _
  5. * Project ___| | | | _ \| |
  6. * / __| | | | |_) | |
  7. * | (__| |_| | _ <| |___
  8. * \___|\___/|_| \_\_____|
  9. *
  10. * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
  11. *
  12. * This program is free software: you can redistribute it and/or modify
  13. * it under the terms of the GNU General Public License as published by
  14. * the Free Software Foundation, either version 3 of the License, or
  15. * (at your option) any later version.
  16. *
  17. * This program is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU General Public License for more details.
  21. *
  22. * You should have received a copy of the GNU General Public License
  23. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  24. *
  25. * SPDX-License-Identifier: GPL-3.0-or-later
  26. *
  27. ***************************************************************************/
  28. #define CURL_DISABLE_SOCKETPAIR 1
  29. /* to disable cookies support */
  30. #define CURL_DISABLE_COOKIES 1
  31. /* disable HTTP authentication */
  32. #define CURL_DISABLE_HTTP_AUTH 1
  33. /* disable DoH */
  34. #define CURL_DISABLE_DOH 1
  35. /* disable mime API */
  36. #define CURL_DISABLE_MIME 1
  37. /* disable date parsing */
  38. #define CURL_DISABLE_PARSEDATE 1
  39. /* disable netrc parsing */
  40. #define CURL_DISABLE_NETRC 1
  41. /* disable DNS shuffling */
  42. #define CURL_DISABLE_SHUFFLE_DNS 1
  43. /* disable progress-meter */
  44. #define CURL_DISABLE_PROGRESS_METER 1
  45. /* to disable cryptographic authentication */
  46. #define CURL_DISABLE_CRYPTO_AUTH 1
  47. /* to disable DICT */
  48. #define CURL_DISABLE_DICT 1
  49. /* to disable FILE */
  50. #define CURL_DISABLE_FILE 1
  51. /* to disable FTP */
  52. #define CURL_DISABLE_FTP 1
  53. /* to disable Gopher */
  54. #define CURL_DISABLE_GOPHER 1
  55. /* to disable IMAP */
  56. #define CURL_DISABLE_IMAP 1
  57. /* to disable LDAP */
  58. #define CURL_DISABLE_LDAP 1
  59. /* to disable LDAPS */
  60. #define CURL_DISABLE_LDAPS 1
  61. /* to disable POP3 */
  62. #define CURL_DISABLE_POP3 1
  63. /* to disable proxies */
  64. #define CURL_DISABLE_PROXY 1
  65. /* to disable RTSP */
  66. #define CURL_DISABLE_RTSP 1
  67. /* to disable SMB/CIFS */
  68. #define CURL_DISABLE_SMB 1
  69. /* to disable SMTP */
  70. #define CURL_DISABLE_SMTP 1
  71. /* to disable TELNET */
  72. #define CURL_DISABLE_TELNET 1
  73. /* to disable TFTP */
  74. #define CURL_DISABLE_TFTP 1
  75. /* to disable verbose strings */
  76. #define CURL_DISABLE_VERBOSE_STRINGS 1
  77. /* Definition to make a library symbol externally visible. */
  78. #define CURL_EXTERN_SYMBOL __attribute__ ((__visibility__ ("default")))
  79. /* IP address type in sockaddr */
  80. #define CURL_SA_FAMILY_T uint8_t
  81. /* lack of non-blocking support */
  82. #define USE_BLOCKING_SOCKETS 1
  83. /* Define to the type of arg 2 for gethostname. */
  84. #define GETHOSTNAME_TYPE_ARG2 size_t
  85. /* Specifies the number of arguments to getservbyport_r */
  86. #define GETSERVBYPORT_R_ARGS 6
  87. /* Specifies the size of the buffer to pass to getservbyport_r */
  88. #define GETSERVBYPORT_R_BUFSIZE 4096
  89. /* Define to 1 if you have the <alloca.h> header file. */
  90. #define HAVE_ALLOCA_H 1
  91. /* Define to 1 if you have the <arpa/inet.h> header file. */
  92. /* Define to 1 if you have the <arpa/tftp.h> header file. */
  93. /* Define to 1 if you have the <assert.h> header file. */
  94. #define HAVE_ASSERT_H 1
  95. /* Define to 1 if you have the basename function. */
  96. #define HAVE_BASENAME 1
  97. /* Define to 1 if bool is an available type. */
  98. #define HAVE_BOOL_T 1
  99. /* Define to 1 if you have the connect function. */
  100. #define HAVE_CONNECT 1
  101. /* Define to 1 if you have the <cyassl/error-ssl.h> header file. */
  102. #define HAVE_CYASSL_ERROR_SSL_H 1
  103. /* Define to 1 if you have the <cyassl/options.h> header file. */
  104. #define HAVE_CYASSL_OPTIONS_H 1
  105. /* Define to 1 if you have the declaration of `getpwuid_r', and to 0 if you
  106. don't. */
  107. #define HAVE_DECL_GETPWUID_R 1
  108. /* Define to 1 if you have the <errno.h> header file. */
  109. #define HAVE_ERRNO_H 1
  110. #define CURLRES_IPV6
  111. #define HAVE_GETADDRINFO 1
  112. /* Define to 1 if you have the <inttypes.h> header file. */
  113. #define HAVE_INTTYPES_H 1
  114. /* Define to 1 if you have the <linux/tcp.h> header file. */
  115. /* if your compiler supports LL */
  116. #define HAVE_LL 1
  117. /* Define to 1 if the compiler supports the 'long long' data type. */
  118. #define HAVE_LONGLONG 1
  119. /* Define to 1 if you have the malloc.h header file. */
  120. #define HAVE_MALLOC_H 1
  121. /* Define to 1 if you have the memory.h header file. */
  122. #define HAVE_MEMORY_H 1
  123. /* Define to 1 if you have the <netdb.h> header file. */
  124. #define HAVE_NETDB_H
  125. /* Define to 1 if you have the <netinet/in.h> header file. */
  126. /* Define to 1 if you have the <netinet/tcp.h> header file. */
  127. /* Define to 1 if you have the <net/if.h> header file. */
  128. /* Define to 1 if you have the recv function. */
  129. #define HAVE_RECV 1
  130. /* Define to 1 if you have the select function. */
  131. #define HAVE_SELECT 1
  132. /* Define to 1 if you have the send function. */
  133. #define HAVE_SEND 1
  134. /* Define to 1 if you have the setsockopt function. */
  135. #define HAVE_SETSOCKOPT 1
  136. /* Define to 1 if you have the socket function. */
  137. #define HAVE_SOCKET 1
  138. /* Define to 1 if you have the <stdbool.h> header file. */
  139. #define HAVE_STDBOOL_H 1
  140. /* Define to 1 if you have the <stdint.h> header file. */
  141. #define HAVE_STDINT_H 1
  142. /* Define to 1 if you have the <stdio.h> header file. */
  143. #define HAVE_STDIO_H 1
  144. /* Define to 1 if you have the <stdlib.h> header file. */
  145. #define HAVE_STDLIB_H 1
  146. /* Define to 1 if you have the strcasecmp function. */
  147. #define HAVE_STRCASECMP 1
  148. /* Define to 1 if you have the strdup function. */
  149. #define HAVE_STRDUP 1
  150. /* Define to 1 if you have the <strings.h> header file. */
  151. #define HAVE_STRINGS_H 1
  152. /* Define to 1 if you have the <string.h> header file. */
  153. #define HAVE_STRING_H 1
  154. /* Define to 1 if you have the strncasecmp function. */
  155. #define HAVE_STRNCASECMP 1
  156. /* Define to 1 if you have the <stropts.h> header file. */
  157. /* Define to 1 if you have the strstr function. */
  158. #define HAVE_STRSTR 1
  159. /* Define to 1 if you have the strtok_r function. */
  160. #define HAVE_STRTOK_R 1
  161. /* Define to 1 if you have the strtoll function. */
  162. #define HAVE_STRTOLL 1
  163. /* Define to 1 if you have the timeval struct. */
  164. #define HAVE_STRUCT_TIMEVAL 1
  165. /* Define to 1 if you have the <sys/resource.h> header file. */
  166. #define HAVE_SYS_RESOURCE_H 1
  167. /* Define to 1 if you have the <sys/uio.h> header file. */
  168. #define HAVE_SYS_UIO_H 1
  169. /* Define to 1 if you have the <sys/un.h> header file. */
  170. /* Define to 1 if you have the <sys/wait.h> header file. */
  171. #define HAVE_SYS_WAIT_H 1
  172. /* Define to 1 if you have the <sys/xattr.h> header file. */
  173. #define HAVE_SYS_XATTR_H 1
  174. /* Define to 1 if you have the <termios.h> header file. */
  175. #define HAVE_TERMIOS_H 1
  176. /* Define to 1 if you have the <termio.h> header file. */
  177. #define HAVE_TERMIO_H 1
  178. /* Define to 1 if you have the <time.h> header file. */
  179. #define HAVE_TIME_H 1
  180. /* Define to 1 if you have the `utime' function. */
  181. #define HAVE_UTIME 1
  182. /* Define to 1 if you have the `utimes' function. */
  183. #define HAVE_UTIMES 1
  184. /* Define to 1 if you have the <utime.h> header file. */
  185. #define HAVE_UTIME_H 1
  186. /* Define to 1 if compiler supports C99 variadic macro style. */
  187. #define HAVE_VARIADIC_MACROS_C99 1
  188. /* Define to 1 if compiler supports old gcc variadic macro style. */
  189. #define HAVE_VARIADIC_MACROS_GCC 1
  190. /* Define to 1 if you have the `wolfSSL_CTX_UseSupportedCurve' function. */
  191. #define HAVE_WOLFSSL_CTX_USESUPPORTEDCURVE 1
  192. /* Define to 1 if you have the `wolfSSL_get_peer_certificate' function. */
  193. #define HAVE_WOLFSSL_GET_PEER_CERTIFICATE 1
  194. /* Define to 1 if you have the writev function. */
  195. #define HAVE_WRITEV 1
  196. /* cpu-machine-OS */
  197. #define OS "x86_64-micrium"
  198. /* Define to the type of arg 1 for recv. */
  199. #define RECV_TYPE_ARG1 int
  200. /* Define to the type of arg 2 for recv. */
  201. #define RECV_TYPE_ARG2 void *
  202. /* Define to the type of arg 3 for recv. */
  203. #define RECV_TYPE_ARG3 size_t
  204. /* Define to the type of arg 4 for recv. */
  205. #define RECV_TYPE_ARG4 long
  206. /* Define to the function return type for recv. */
  207. #define RECV_TYPE_RETV long
  208. /* Define as the return type of signal handlers (`int' or `void'). */
  209. #define RETSIGTYPE void
  210. /* Define to the type qualifier of arg 5 for select. */
  211. #define SELECT_QUAL_ARG5
  212. /* Define to the type of arg 1 for select. */
  213. #define SELECT_TYPE_ARG1 int
  214. /* Define to the type of args 2, 3 and 4 for select. */
  215. #define SELECT_TYPE_ARG234 fd_set *
  216. /* Define to the type of arg 5 for select. */
  217. #define SELECT_TYPE_ARG5 struct timeval *
  218. /* Define to the function return type for select. */
  219. #define SELECT_TYPE_RETV int
  220. /* Define to the type qualifier of arg 2 for send. */
  221. #define SEND_QUAL_ARG2
  222. /* Define to the type of arg 1 for send. */
  223. #define SEND_TYPE_ARG1 int
  224. /* Define to the type of arg 2 for send. */
  225. #define SEND_TYPE_ARG2 void *
  226. /* Define to the type of arg 3 for send. */
  227. #define SEND_TYPE_ARG3 size_t
  228. /* Define to the type of arg 4 for send. */
  229. #define SEND_TYPE_ARG4 int
  230. /* Define to the function return type for send. */
  231. #define SEND_TYPE_RETV ssize_t
  232. /* The number of bytes in type curl_off_t */
  233. #define SIZEOF_CURL_OFF_T 8
  234. /* The number of bytes in type int */
  235. #define SIZEOF_INT 4
  236. /* The number of bytes in type long */
  237. #define SIZEOF_LONG 4
  238. /* The number of bytes in type long long */
  239. #define SIZEOF_LONG_LONG 8
  240. /* The number of bytes in type off_t */
  241. #define SIZEOF_OFF_T 8
  242. /* The number of bytes in type short */
  243. #define SIZEOF_SHORT 2
  244. /* The number of bytes in type size_t */
  245. #define SIZEOF_SIZE_T 8
  246. /* The number of bytes in type time_t */
  247. #define SIZEOF_TIME_T 8
  248. /* Define to 1 if you have the ANSI C header files. */
  249. #define STDC_HEADERS 1
  250. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  251. #define TIME_WITH_SYS_TIME 1
  252. /* if CyaSSL/WolfSSL is enabled */
  253. #define USE_CYASSL 1
  254. /* Version number of package */
  255. #define VERSION "-"
  256. /* Define to 1 if OS is AIX. */
  257. #ifndef _ALL_SOURCE
  258. /* # undef _ALL_SOURCE */
  259. #endif
  260. /* Work-around to allow building the Windows Micrium simulator */
  261. #define ALLOW_MSVC6_WITHOUT_PSDK 1
  262. /* sys/timeval.h work-arounds */
  263. #define _SUSECONDS_T_DECLARED
  264. #define _TIME_T_DECLARED
  265. #define _TIMEVAL_DEFINED
  266. /* avoid sys/select.h */
  267. #define _SYS_SELECT_H
  268. /* avoid sys/types.h */
  269. #define _SYS_TYPES_H
  270. #if 0
  271. #define _STDIO_H_
  272. typedef void *FILE;
  273. /* these don't actually exist */
  274. #define stdin NULL
  275. #define stdout NULL
  276. #define stderr NULL
  277. #define fwrite NULL
  278. #define fread NULL
  279. #else
  280. typedef long long off_t;
  281. typedef unsigned int clock_t;
  282. #endif
  283. #define USHRT_MAX UINT16_MAX
  284. #define INT_MAX INT32_MAX
  285. #define UINT_MAX UINT32_MAX
  286. #define LONG_MAX INT32_MAX /* ? */
  287. #define LONG_MIN INT32_MIN /* ? */
  288. #define PF_UNSPEC AF_UNSPEC
  289. /* Define to `__inline__' or `__inline' if that's what the C compiler
  290. calls it, or to nothing if 'inline' is not supported under any name. */
  291. #ifndef __cplusplus
  292. /* #undef inline */
  293. #endif
  294. #endif /* CURL_CONFIG_MICRIUM_H */