3 * Redistribution and use in source and binary forms, with or without
4 * modification, are permitted provided that the following conditions
6 * 1. Redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer.
8 * 2. Redistributions in binary form must reproduce the above copyright
9 * notice, this list of conditions and the following disclaimer in the
10 * documentation and/or other materials provided with the distribution.
11 * 3. All advertising materials mentioning features or use of this software
12 * must display the following acknowledgement:
13 * This product includes software developed by the University of
14 * California, Berkeley and its contributors.
15 * 4. Neither the name of the University nor the names of its contributors
16 * may be used to endorse or promote products derived from this software
17 * without specific prior written permission.
19 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 #include <sys/cdefs.h>
37 #include <sys/inttypes.h>
39 /* Machine type dependent parameters. */
41 typedef unsigned char u_char;
42 typedef unsigned short u_short;
43 typedef unsigned int u_int;
44 typedef unsigned long u_long;
45 typedef unsigned short ushort; /* Sys V compatibility */
46 typedef unsigned int uint; /* Sys V compatibility */
48 typedef uint8_t u_int8_t;
49 typedef uint16_t u_int16_t;
50 typedef uint32_t u_int32_t;
51 typedef uint64_t u_int64_t;
53 typedef u_int64_t u_quad_t; /* quads */
54 typedef int64_t quad_t;
55 typedef quad_t * qaddr_t;
57 typedef char * caddr_t; /* core address */
58 typedef __const char * c_caddr_t; /* core address, pointer to const */
59 typedef __volatile char *v_caddr_t; /* core address, pointer to volatile */
60 typedef u_int32_t fixpt_t; /* fixed point number */
61 typedef u_int32_t gid_t; /* group id */
62 typedef u_int32_t in_addr_t; /* base type for internet address */
63 typedef u_int16_t in_port_t;
64 typedef u_int32_t ino_t; /* inode number */
65 typedef long key_t; /* IPC key (for Sys V IPC) */
66 typedef u_int16_t mode_t; /* permissions */
67 typedef u_int16_t nlink_t; /* link count */
68 typedef quad_t rlim_t; /* resource limit */
69 typedef int32_t segsz_t; /* segment size */
70 typedef int32_t swblk_t; /* swap offset */
71 typedef int32_t ufs_daddr_t;
72 typedef int32_t ufs_time_t;
73 typedef u_int32_t uid_t; /* user id */
75 #endif /* !_SYS_TYPES_H_ */