ia64/xen-unstable

view extras/mini-os/include/types.h @ 5688:d231efdaa66d

manual merge
author iap10@freefall.cl.cam.ac.uk
date Wed Jul 06 18:55:16 2005 +0000 (2005-07-06)
parents 189c87adf876 43e8e30cbea7
children 32fb371cc283 707fcf42a5ae
line source
1 /* -*- Mode:C; c-basic-offset:4; tab-width:4 -*-
2 ****************************************************************************
3 * (C) 2003 - Rolf Neugebauer - Intel Research Cambridge
4 ****************************************************************************
5 *
6 * File: types.h
7 * Author: Rolf Neugebauer (neugebar@dcs.gla.ac.uk)
8 * Changes:
9 *
10 * Date: May 2003
11 *
12 * Environment: Xen Minimal OS
13 * Description: a random collection of type definitions
14 *
15 ****************************************************************************
16 * $Id: h-insert.h,v 1.4 2002/11/08 16:03:55 rn Exp $
17 ****************************************************************************
18 */
20 #ifndef _TYPES_H_
21 #define _TYPES_H_
23 typedef signed char s8;
24 typedef unsigned char u8;
25 typedef signed short s16;
26 typedef unsigned short u16;
27 typedef signed int s32;
28 typedef unsigned int u32;
29 #ifdef __i386__
30 typedef signed long long s64;
31 typedef unsigned long long u64;
32 #elif defined(__x86_64__)
33 typedef signed long s64;
34 typedef unsigned long u64;
35 #endif
37 typedef unsigned int size_t;
39 /* FreeBSD compat types */
40 typedef unsigned char u_char;
41 typedef unsigned int u_int;
42 typedef unsigned long u_long;
43 #ifdef __i386__
44 typedef long long quad_t;
45 typedef unsigned long long u_quad_t;
46 typedef unsigned int uintptr_t;
47 #elif defined(__x86_64__)
48 typedef long quad_t;
49 typedef unsigned long u_quad_t;
50 typedef unsigned long uintptr_t;
51 #endif
52 #endif /* _TYPES_H_ */