2
0

config-micrium.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  1. #ifndef CURL_CONFIG_MICRIUM_H
  2. #define CURL_CONFIG_MICRIUM_H
  3. /***************************************************************************
  4. * _ _ ____ _
  5. * Project ___| | | | _ \| |
  6. * / __| | | | |_) | |
  7. * | (__| |_| | _ <| |___
  8. * \___|\___/|_| \_\_____|
  9. *
  10. * Copyright (C) 2020, 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. ***************************************************************************/
  26. #define CURL_DISABLE_SOCKETPAIR 1
  27. /* to disable cookies support */
  28. #define CURL_DISABLE_COOKIES 1
  29. /* disable HTTP authentication */
  30. #define CURL_DISABLE_HTTP_AUTH 1
  31. /* disable DoH */
  32. #define CURL_DISABLE_DOH 1
  33. /* disable mime API */
  34. #define CURL_DISABLE_MIME 1
  35. /* disable date parsing */
  36. #define CURL_DISABLE_PARSEDATE 1
  37. /* disable netrc parsing */
  38. #define CURL_DISABLE_NETRC 1
  39. /* disable DNS shuffling */
  40. #define CURL_DISABLE_SHUFFLE_DNS 1
  41. /* disable progress-meter */
  42. #define CURL_DISABLE_PROGRESS_METER 1
  43. /* to disable cryptographic authentication */
  44. #define CURL_DISABLE_CRYPTO_AUTH 1
  45. /* to disable DICT */
  46. #define CURL_DISABLE_DICT 1
  47. /* to disable FILE */
  48. #define CURL_DISABLE_FILE 1
  49. /* to disable FTP */
  50. #define CURL_DISABLE_FTP 1
  51. /* to disable Gopher */
  52. #define CURL_DISABLE_GOPHER 1
  53. /* to disable IMAP */
  54. #define CURL_DISABLE_IMAP 1
  55. /* to disable LDAP */
  56. #define CURL_DISABLE_LDAP 1
  57. /* to disable LDAPS */
  58. #define CURL_DISABLE_LDAPS 1
  59. /* to disable POP3 */
  60. #define CURL_DISABLE_POP3 1
  61. /* to disable proxies */
  62. #define CURL_DISABLE_PROXY 1
  63. /* to disable RTSP */
  64. #define CURL_DISABLE_RTSP 1
  65. /* to disable SMB/CIFS */
  66. #define CURL_DISABLE_SMB 1
  67. /* to disable SMTP */
  68. #define CURL_DISABLE_SMTP 1
  69. /* to disable TELNET */
  70. #define CURL_DISABLE_TELNET 1
  71. /* to disable TFTP */
  72. #define CURL_DISABLE_TFTP 1
  73. /* to disable verbose strings */
  74. #define CURL_DISABLE_VERBOSE_STRINGS 1
  75. /* Definition to make a library symbol externally visible. */
  76. #define CURL_EXTERN_SYMBOL __attribute__ ((__visibility__ ("default")))
  77. /* IP address type in sockaddr */
  78. #define CURL_SA_FAMILY_T uint8_t
  79. /* lack of non-blocking support */
  80. #define USE_BLOCKING_SOCKETS 1
  81. /* Define to the type of arg 2 for gethostname. */
  82. #define GETHOSTNAME_TYPE_ARG2 size_t
  83. /* Specifies the number of arguments to getservbyport_r */
  84. #define GETSERVBYPORT_R_ARGS 6
  85. /* Specifies the size of the buffer to pass to getservbyport_r */
  86. #define GETSERVBYPORT_R_BUFSIZE 4096
  87. /* Define to 1 if you have the <alloca.h> header file. */
  88. #define HAVE_ALLOCA_H 1
  89. /* Define to 1 if you have the <arpa/inet.h> header file. */
  90. /* Define to 1 if you have the <arpa/tftp.h> header file. */
  91. /* Define to 1 if you have the <assert.h> header file. */
  92. #define HAVE_ASSERT_H 1
  93. /* Define to 1 if you have the basename function. */
  94. #define HAVE_BASENAME 1
  95. /* Define to 1 if bool is an available type. */
  96. #define HAVE_BOOL_T 1
  97. /* Define to 1 if you have the connect function. */
  98. #define HAVE_CONNECT 1
  99. /* Define to 1 if you have the <cyassl/error-ssl.h> header file. */
  100. #define HAVE_CYASSL_ERROR_SSL_H 1
  101. /* Define to 1 if you have the <cyassl/options.h> header file. */
  102. #define HAVE_CYASSL_OPTIONS_H 1
  103. /* Define to 1 if you have the declaration of `getpwuid_r', and to 0 if you
  104. don't. */
  105. #define HAVE_DECL_GETPWUID_R 1
  106. /* Define to 1 if you have the <errno.h> header file. */
  107. #define HAVE_ERRNO_H 1
  108. /* Define to 1 if you have the gethostbyname function. */
  109. //#define HAVE_GETHOSTBYNAME 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 <setjmp.h> header file. */
  135. //#define HAVE_SETJMP_H 1
  136. /* Define to 1 if you have the setsockopt function. */
  137. #define HAVE_SETSOCKOPT 1
  138. /* Define to 1 if you have the socket function. */
  139. #define HAVE_SOCKET 1
  140. /* Define to 1 if you have the <stdbool.h> header file. */
  141. #define HAVE_STDBOOL_H 1
  142. /* Define to 1 if you have the <stdint.h> header file. */
  143. #define HAVE_STDINT_H 1
  144. /* Define to 1 if you have the <stdio.h> header file. */
  145. #define HAVE_STDIO_H 1
  146. /* Define to 1 if you have the <stdlib.h> header file. */
  147. #define HAVE_STDLIB_H 1
  148. /* Define to 1 if you have the strcasecmp function. */
  149. #define HAVE_STRCASECMP 1
  150. /* Define to 1 if you have the strdup function. */
  151. #define HAVE_STRDUP 1
  152. /* Define to 1 if you have the <strings.h> header file. */
  153. #define HAVE_STRINGS_H 1
  154. /* Define to 1 if you have the <string.h> header file. */
  155. #define HAVE_STRING_H 1
  156. /* Define to 1 if you have the strncasecmp function. */
  157. #define HAVE_STRNCASECMP 1
  158. /* Define to 1 if you have the <stropts.h> header file. */
  159. /* Define to 1 if you have the strstr function. */
  160. #define HAVE_STRSTR 1
  161. /* Define to 1 if you have the strtok_r function. */
  162. #define HAVE_STRTOK_R 1
  163. /* Define to 1 if you have the strtoll function. */
  164. #define HAVE_STRTOLL 1
  165. /* if struct sockaddr_storage is defined */
  166. //#define HAVE_STRUCT_SOCKADDR_STORAGE 1
  167. /* Define to 1 if you have the timeval struct. */
  168. #define HAVE_STRUCT_TIMEVAL 1
  169. /* Define to 1 if you have the <sys/resource.h> header file. */
  170. #define HAVE_SYS_RESOURCE_H 1
  171. /* Define to 1 if you have the <sys/stat.h> header file. */
  172. //#define HAVE_SYS_STAT_H 1
  173. /* Define to 1 if you have the <sys/types.h> header file. */
  174. //#define HAVE_SYS_TYPES_H 1
  175. /* Define to 1 if you have the <sys/uio.h> header file. */
  176. #define HAVE_SYS_UIO_H 1
  177. /* Define to 1 if you have the <sys/un.h> header file. */
  178. /* Define to 1 if you have the <sys/wait.h> header file. */
  179. #define HAVE_SYS_WAIT_H 1
  180. /* Define to 1 if you have the <sys/xattr.h> header file. */
  181. #define HAVE_SYS_XATTR_H 1
  182. /* Define to 1 if you have the <termios.h> header file. */
  183. #define HAVE_TERMIOS_H 1
  184. /* Define to 1 if you have the <termio.h> header file. */
  185. #define HAVE_TERMIO_H 1
  186. /* Define to 1 if you have the <time.h> header file. */
  187. #define HAVE_TIME_H 1
  188. /* Define to 1 if you have the `utime' function. */
  189. #define HAVE_UTIME 1
  190. /* Define to 1 if you have the `utimes' function. */
  191. #define HAVE_UTIMES 1
  192. /* Define to 1 if you have the <utime.h> header file. */
  193. #define HAVE_UTIME_H 1
  194. /* Define to 1 if compiler supports C99 variadic macro style. */
  195. #define HAVE_VARIADIC_MACROS_C99 1
  196. /* Define to 1 if compiler supports old gcc variadic macro style. */
  197. #define HAVE_VARIADIC_MACROS_GCC 1
  198. /* Define to 1 if you have the `wolfSSL_CTX_UseSupportedCurve' function. */
  199. #define HAVE_WOLFSSL_CTX_USESUPPORTEDCURVE 1
  200. /* Define to 1 if you have the `wolfSSL_get_peer_certificate' function. */
  201. #define HAVE_WOLFSSL_GET_PEER_CERTIFICATE 1
  202. /* Define to 1 if you have the writev function. */
  203. #define HAVE_WRITEV 1
  204. /* cpu-machine-OS */
  205. #define OS "x86_64-micrium"
  206. /* Define to the type of arg 1 for recv. */
  207. #define RECV_TYPE_ARG1 int
  208. /* Define to the type of arg 2 for recv. */
  209. #define RECV_TYPE_ARG2 void *
  210. /* Define to the type of arg 3 for recv. */
  211. #define RECV_TYPE_ARG3 size_t
  212. /* Define to the type of arg 4 for recv. */
  213. #define RECV_TYPE_ARG4 long
  214. /* Define to the function return type for recv. */
  215. #define RECV_TYPE_RETV long
  216. /* Define as the return type of signal handlers (`int' or `void'). */
  217. #define RETSIGTYPE void
  218. /* Define to the type qualifier of arg 5 for select. */
  219. #define SELECT_QUAL_ARG5
  220. /* Define to the type of arg 1 for select. */
  221. #define SELECT_TYPE_ARG1 int
  222. /* Define to the type of args 2, 3 and 4 for select. */
  223. #define SELECT_TYPE_ARG234 fd_set *
  224. /* Define to the type of arg 5 for select. */
  225. #define SELECT_TYPE_ARG5 struct timeval *
  226. /* Define to the function return type for select. */
  227. #define SELECT_TYPE_RETV int
  228. /* Define to the type qualifier of arg 2 for send. */
  229. #define SEND_QUAL_ARG2
  230. /* Define to the type of arg 1 for send. */
  231. #define SEND_TYPE_ARG1 int
  232. /* Define to the type of arg 2 for send. */
  233. #define SEND_TYPE_ARG2 void *
  234. /* Define to the type of arg 3 for send. */
  235. #define SEND_TYPE_ARG3 size_t
  236. /* Define to the type of arg 4 for send. */
  237. #define SEND_TYPE_ARG4 int
  238. /* Define to the function return type for send. */
  239. #define SEND_TYPE_RETV ssize_t
  240. //#define ssize_t int
  241. /* The number of bytes in type curl_off_t */
  242. #define SIZEOF_CURL_OFF_T 8
  243. /* The number of bytes in type int */
  244. #define SIZEOF_INT 4
  245. /* The number of bytes in type long */
  246. #define SIZEOF_LONG 4
  247. /* The number of bytes in type long long */
  248. #define SIZEOF_LONG_LONG 8
  249. /* The number of bytes in type off_t */
  250. #define SIZEOF_OFF_T 8
  251. /* The number of bytes in type short */
  252. #define SIZEOF_SHORT 2
  253. /* The number of bytes in type size_t */
  254. #define SIZEOF_SIZE_T 8
  255. /* The number of bytes in type time_t */
  256. #define SIZEOF_TIME_T 8
  257. /* Define to 1 if you have the ANSI C header files. */
  258. #define STDC_HEADERS 1
  259. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  260. #define TIME_WITH_SYS_TIME 1
  261. /* if CyaSSL/WolfSSL is enabled */
  262. #define USE_CYASSL 1
  263. /* Version number of package */
  264. #define VERSION "-"
  265. /* Define to 1 if OS is AIX. */
  266. #ifndef _ALL_SOURCE
  267. /* # undef _ALL_SOURCE */
  268. #endif
  269. /* Work-around to allow building the Windows Micrium simulator */
  270. #define ALLOW_MSVC6_WITHOUT_PSDK 1
  271. /* sys/timeval.h work-arounds */
  272. #define _SUSECONDS_T_DECLARED
  273. #define _TIME_T_DECLARED
  274. #define _TIMEVAL_DEFINED
  275. /* avoid sys/select.h */
  276. #define _SYS_SELECT_H
  277. /* avoid sys/types.h */
  278. #define _SYS_TYPES_H
  279. #if 0
  280. #define _STDIO_H_
  281. typedef void * FILE;
  282. /* these don't actually exist */
  283. #define stdin NULL
  284. #define stdout NULL
  285. #define stderr NULL
  286. #define fwrite NULL
  287. #define fread NULL
  288. #else
  289. typedef long long off_t;
  290. typedef unsigned int clock_t;
  291. #endif
  292. #define USHRT_MAX UINT16_MAX
  293. #define INT_MAX INT32_MAX
  294. #define UINT_MAX UINT32_MAX
  295. #define LONG_MAX INT32_MAX /* ? */
  296. #define LONG_MIN INT32_MIN /* ? */
  297. #define PF_UNSPEC AF_UNSPEC
  298. /* Define to `__inline__' or `__inline' if that's what the C compiler
  299. calls it, or to nothing if 'inline' is not supported under any name. */
  300. #ifndef __cplusplus
  301. /* #undef inline */
  302. #endif
  303. #endif /* CURL_CONFIG_MICRIUM_H */