Go to the documentation of this file.00001 #ifndef HEADER_CURL_WARNLESS_H
00002 #define HEADER_CURL_WARNLESS_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifdef USE_WINSOCK
00026 #include <curl/curl.h>
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
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
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
00112
00113 #endif