1 // Copyright 2016 The Fuchsia Authors
2 // Copyright (c) 2008-2012 Travis Geiselbrecht
3 //
4 // Use of this source code is governed by a MIT-style
5 // license that can be found in the LICENSE file or at
6 // https://opensource.org/licenses/MIT
7 
8 #pragma once
9 
10 #include <limits.h>
11 #include <stdint.h>
12 #include <stddef.h>
13 
14 typedef unsigned char uchar;
15 typedef unsigned short ushort;
16 typedef unsigned int uint;
17 typedef unsigned long ulong;
18 typedef unsigned char u_char;
19 typedef unsigned short u_short;
20 typedef unsigned int u_int;
21 typedef unsigned long u_long;
22 
23 typedef uintptr_t addr_t;
24 typedef uintptr_t vaddr_t;
25 typedef uintptr_t paddr_t;
26 
27 typedef intptr_t ssize_t;
28 #define SSIZE_MAX INTPTR_MAX
29 
30 #define KB (1024UL)
31 #define MB (1024UL * KB)
32 #define GB (1024UL * MB)
33