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