blob: 9b76d663259adff3edb9cbf1cbde1a93076a1655 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#ifndef HEADER_CARES_NOWARN_H
2#define HEADER_CARES_NOWARN_H
3
4
5/* Copyright (C) 2010-2012 by Daniel Stenberg
6 *
7 * Permission to use, copy, modify, and distribute this
8 * software and its documentation for any purpose and without
9 * fee is hereby granted, provided that the above copyright
10 * notice appear in all copies and that both that copyright
11 * notice and this permission notice appear in supporting
12 * documentation, and that the name of M.I.T. not be used in
13 * advertising or publicity pertaining to distribution of the
14 * software without specific, written prior permission.
15 * M.I.T. makes no representations about the suitability of
16 * this software for any purpose. It is provided "as is"
17 * without express or implied warranty.
18 */
19
20long aresx_uztosl(size_t uznum);
21int aresx_uztosi(size_t uznum);
22short aresx_uztoss(size_t uznum);
23
24short aresx_sitoss(int sinum);
25
26int aresx_sltosi(long slnum);
27
28int aresx_sztosi(ssize_t sznum);
29
30unsigned int aresx_sztoui(ssize_t sznum);
31
32unsigned short aresx_sitous(int sinum);
33
34#if defined(__INTEL_COMPILER) && defined(__unix__)
35
36int aresx_FD_ISSET(int fd, fd_set *fdset);
37
38void aresx_FD_SET(int fd, fd_set *fdset);
39
40void aresx_FD_ZERO(fd_set *fdset);
41
42unsigned short aresx_htons(unsigned short usnum);
43
44unsigned short aresx_ntohs(unsigned short usnum);
45
46#ifndef BUILDING_ARES_NOWARN_C
47# undef FD_ISSET
48# define FD_ISSET(a,b) aresx_FD_ISSET((a),(b))
49# undef FD_SET
50# define FD_SET(a,b) aresx_FD_SET((a),(b))
51# undef FD_ZERO
52# define FD_ZERO(a) aresx_FD_ZERO((a))
53# undef htons
54# define htons(a) aresx_htons((a))
55# undef ntohs
56# define ntohs(a) aresx_ntohs((a))
57#endif
58
59#endif /* __INTEL_COMPILER && __unix__ */
60
61#endif /* HEADER_CARES_NOWARN_H */