1968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold#ifndef HEADER_CARES_NOWARN_H 2968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold#define HEADER_CARES_NOWARN_H 3968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold 4968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold 5968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold/* Copyright (C) 2010-2011 by Daniel Stenberg 6968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold * 7968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold * Permission to use, copy, modify, and distribute this 8968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold * software and its documentation for any purpose and without 9968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold * fee is hereby granted, provided that the above copyright 10968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold * notice appear in all copies and that both that copyright 11968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold * notice and this permission notice appear in supporting 12968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold * documentation, and that the name of M.I.T. not be used in 13968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold * advertising or publicity pertaining to distribution of the 14968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold * software without specific, written prior permission. 15968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold * M.I.T. makes no representations about the suitability of 16968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold * this software for any purpose. It is provided "as is" 17968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold * without express or implied warranty. 18968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold */ 19968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold 20968bf19396ad404e89420f5d67900fce13f4186cGilad Arnoldint aresx_uztosi(size_t uznum); 21968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold 22968bf19396ad404e89420f5d67900fce13f4186cGilad Arnoldint aresx_sltosi(long slnum); 23968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold 24968bf19396ad404e89420f5d67900fce13f4186cGilad Arnoldint aresx_sztosi(ssize_t sznum); 25968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold 26968bf19396ad404e89420f5d67900fce13f4186cGilad Arnoldunsigned int aresx_sztoui(ssize_t sznum); 27968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold 28968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold#if defined(__INTEL_COMPILER) && defined(__unix__) 29968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold 30968bf19396ad404e89420f5d67900fce13f4186cGilad Arnoldint aresx_FD_ISSET(int fd, fd_set *fdset); 31968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold 32968bf19396ad404e89420f5d67900fce13f4186cGilad Arnoldvoid aresx_FD_SET(int fd, fd_set *fdset); 33968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold 34968bf19396ad404e89420f5d67900fce13f4186cGilad Arnoldvoid aresx_FD_ZERO(fd_set *fdset); 35968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold 36968bf19396ad404e89420f5d67900fce13f4186cGilad Arnoldunsigned short aresx_htons(unsigned short usnum); 37968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold 38968bf19396ad404e89420f5d67900fce13f4186cGilad Arnoldunsigned short aresx_ntohs(unsigned short usnum); 39968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold 40968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold#ifndef BUILDING_ARES_NOWARN_C 41968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold# undef FD_ISSET 42968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold# define FD_ISSET(a,b) aresx_FD_ISSET((a),(b)) 43968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold# undef FD_SET 44968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold# define FD_SET(a,b) aresx_FD_SET((a),(b)) 45968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold# undef FD_ZERO 46968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold# define FD_ZERO(a) aresx_FD_ZERO((a)) 47968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold# undef htons 48968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold# define htons(a) aresx_htons((a)) 49968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold# undef ntohs 50968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold# define ntohs(a) aresx_ntohs((a)) 51968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold#endif 52968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold 53968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold#endif /* __INTEL_COMPILER && __unix__ */ 54968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold 55968bf19396ad404e89420f5d67900fce13f4186cGilad Arnold#endif /* HEADER_CARES_NOWARN_H */ 56