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 14typedef unsigned char uchar; 15typedef unsigned short ushort; 16typedef unsigned int uint; 17typedef unsigned long ulong; 18typedef unsigned char u_char; 19typedef unsigned short u_short; 20typedef unsigned int u_int; 21typedef unsigned long u_long; 22 23typedef uintptr_t addr_t; 24typedef uintptr_t vaddr_t; 25typedef uintptr_t paddr_t; 26 27typedef 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