]>
git.ipfire.org Git - thirdparty/squid.git/blob - compat/types.h
2 * * * * * * * * Legal stuff * * * * * * *
4 * (C) 2000 Francesco Chemolli <kinkie@kame.usr.dsi.unimi.it>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * SQUID Web Proxy Cache http://www.squid-cache.org/
19 * ----------------------------------------------------------
21 * Squid is the result of efforts by numerous individuals from
22 * the Internet community; see the CONTRIBUTORS file for full
23 * details. Many organizations have provided support for Squid's
24 * development; see the SPONSORS file for full details. Squid is
25 * Copyrighted (C) 2001 by the Regents of the University of
26 * California; see the COPYRIGHT file for full details. Squid
27 * incorporates software developed and/or copyrighted by other
28 * sources; see the CREDITS file for full details.
30 * This program is free software; you can redistribute it and/or modify
31 * it under the terms of the GNU General Public License as published by
32 * the Free Software Foundation; either version 2 of the License, or
33 * (at your option) any later version.
35 * This program is distributed in the hope that it will be useful,
36 * but WITHOUT ANY WARRANTY; without even the implied warranty of
37 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38 * GNU General Public License for more details.
40 * You should have received a copy of the GNU General Public License
41 * along with this program; if not, write to the Free Software
42 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
44 * * * * * * * * Declaration of intents * * * * * * *
46 * Here are defined several known-width types, obtained via autoconf
47 * from system locations or various attempts. This is just a convenience
48 * header to include which takes care of proper preprocessor stuff
50 * This file is only intended to be included via compat/compat.h, do
51 * not include directly.
57 /* This should be in synch with what we have in acinclude.m4 */
59 #include <sys/types.h>
61 #if HAVE_LINUX_TYPES_H
62 #include <linux/types.h>
73 #if HAVE_SYS_BITYPES_H
74 #include <sys/bitypes.h>
77 #include <sys/select.h>
79 #if HAVE_NETINET_IN_SYSTM_H
80 /* Several OS require types declared by in_systm.h without including it themselves. */
81 #include <netinet/in_systm.h>
85 /******************************************************/
86 /* Typedefs for missing entries on a system */
87 /******************************************************/
91 * ISO C99 Standard printf() macros for 64 bit integers
92 * On some 64 bit platform, HP Tru64 is one, for printf must be used
93 * "%lx" instead of "%llx"
96 #if _SQUID_MSWIN_ /* Windows native port using MSVCRT */
98 #elif SIZEOF_INT64_T > SIZEOF_LONG
106 #if _SQUID_MSWIN_ /* Windows native port using MSVCRT */
107 #define PRIu64 "I64u"
108 #elif SIZEOF_INT64_T > SIZEOF_LONG
116 #if _SQUID_MSWIN_ /* Windows native port using MSVCRT */
117 #define PRIX64 "I64X"
118 #elif SIZEOF_INT64_T > SIZEOF_LONG
126 typedef unsigned short mode_t
;
130 typedef unsigned long fd_mask
;
133 #ifndef HAVE_SOCKLEN_T
134 typedef int socklen_t
;
141 #endif /* SQUID_TYPES_H */