warnless.h
Go to the documentation of this file.
00001 #ifndef HEADER_CURL_WARNLESS_H
00002 #define HEADER_CURL_WARNLESS_H
00003 /***************************************************************************
00004  *                                  _   _ ____  _
00005  *  Project                     ___| | | |  _ \| |
00006  *                             / __| | | | |_) | |
00007  *                            | (__| |_| |  _ <| |___
00008  *                             \___|\___/|_| \_\_____|
00009  *
00010  * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
00011  *
00012  * This software is licensed as described in the file COPYING, which
00013  * you should have received as part of this distribution. The terms
00014  * are also available at https://curl.haxx.se/docs/copyright.html.
00015  *
00016  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
00017  * copies of the Software, and permit persons to whom the Software is
00018  * furnished to do so, under the terms of the COPYING file.
00019  *
00020  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
00021  * KIND, either express or implied.
00022  *
00023  ***************************************************************************/
00024 
00025 #ifdef USE_WINSOCK
00026 #include <curl/curl.h> /* for curl_socket_t */
00027 #endif
00028 
00029 unsigned short curlx_ultous(unsigned long ulnum);
00030 
00031 unsigned char curlx_ultouc(unsigned long ulnum);
00032 
00033 int curlx_ultosi(unsigned long ulnum);
00034 
00035 int curlx_uztosi(size_t uznum);
00036 
00037 curl_off_t curlx_uztoso(size_t uznum);
00038 
00039 unsigned long curlx_uztoul(size_t uznum);
00040 
00041 unsigned int curlx_uztoui(size_t uznum);
00042 
00043 int curlx_sltosi(long slnum);
00044 
00045 unsigned int curlx_sltoui(long slnum);
00046 
00047 unsigned short curlx_sltous(long slnum);
00048 
00049 ssize_t curlx_uztosz(size_t uznum);
00050 
00051 size_t curlx_sotouz(curl_off_t sonum);
00052 
00053 int curlx_sztosi(ssize_t sznum);
00054 
00055 unsigned short curlx_uitous(unsigned int uinum);
00056 
00057 unsigned char curlx_uitouc(unsigned int uinum);
00058 
00059 int curlx_uitosi(unsigned int uinum);
00060 
00061 size_t curlx_sitouz(int sinum);
00062 
00063 #ifdef USE_WINSOCK
00064 
00065 int curlx_sktosi(curl_socket_t s);
00066 
00067 curl_socket_t curlx_sitosk(int i);
00068 
00069 #endif /* USE_WINSOCK */
00070 
00071 #if defined(WIN32) || defined(_WIN32)
00072 
00073 ssize_t curlx_read(int fd, void *buf, size_t count);
00074 
00075 ssize_t curlx_write(int fd, const void *buf, size_t count);
00076 
00077 #ifndef BUILDING_WARNLESS_C
00078 #  undef  read
00079 #  define read(fd, buf, count)  curlx_read(fd, buf, count)
00080 #  undef  write
00081 #  define write(fd, buf, count) curlx_write(fd, buf, count)
00082 #endif
00083 
00084 #endif /* WIN32 || _WIN32 */
00085 
00086 #if defined(__INTEL_COMPILER) && defined(__unix__)
00087 
00088 int curlx_FD_ISSET(int fd, fd_set *fdset);
00089 
00090 void curlx_FD_SET(int fd, fd_set *fdset);
00091 
00092 void curlx_FD_ZERO(fd_set *fdset);
00093 
00094 unsigned short curlx_htons(unsigned short usnum);
00095 
00096 unsigned short curlx_ntohs(unsigned short usnum);
00097 
00098 #ifndef BUILDING_WARNLESS_C
00099 #  undef  FD_ISSET
00100 #  define FD_ISSET(a,b) curlx_FD_ISSET((a),(b))
00101 #  undef  FD_SET
00102 #  define FD_SET(a,b)   curlx_FD_SET((a),(b))
00103 #  undef  FD_ZERO
00104 #  define FD_ZERO(a)    curlx_FD_ZERO((a))
00105 #  undef  htons
00106 #  define htons(a)      curlx_htons((a))
00107 #  undef  ntohs
00108 #  define ntohs(a)      curlx_ntohs((a))
00109 #endif
00110 
00111 #endif /* __INTEL_COMPILER && __unix__ */
00112 
00113 #endif /* HEADER_CURL_WARNLESS_H */


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:07