ia64/xen-unstable

view extras/mini-os/include/types.h @ 19836:d9890e67d2b7

tools: add SHAREDIR to buildmakevars2file

c/s 19818 dropped SHAREDIR from xen/util/path.py, which broke the "xm
new" command. This patch adds SHAREDIR back to the new
buildmakevars2file-closure function.

Signed-off-by: Ryan O'Connor <rjo@cs.ubc.ca>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 25 13:05:10 2009 +0100 (2009-06-25)
parents b7598d2e4791
children
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_
22 #include <stddef.h>
24 typedef signed char s8;
25 typedef unsigned char u8;
26 typedef signed short s16;
27 typedef unsigned short u16;
28 typedef signed int s32;
29 typedef unsigned int u32;
30 #ifdef __i386__
31 typedef signed long long s64;
32 typedef unsigned long long u64;
33 #elif defined(__x86_64__) || defined(__ia64__)
34 typedef signed long s64;
35 typedef unsigned long u64;
36 #endif
38 /* FreeBSD compat types */
39 #ifndef HAVE_LIBC
40 typedef unsigned char u_char;
41 typedef unsigned int u_int;
42 typedef unsigned long u_long;
43 #endif
44 #ifdef __i386__
45 typedef long long quad_t;
46 typedef unsigned long long u_quad_t;
48 typedef struct { unsigned long pte_low, pte_high; } pte_t;
50 #elif defined(__x86_64__) || defined(__ia64__)
51 typedef long quad_t;
52 typedef unsigned long u_quad_t;
54 typedef struct { unsigned long pte; } pte_t;
55 #endif /* __i386__ || __x86_64__ */
57 #ifdef __x86_64__
58 #define __pte(x) ((pte_t) { (x) } )
59 #else
60 #define __pte(x) ({ unsigned long long _x = (x); \
61 ((pte_t) {(unsigned long)(_x), (unsigned long)(_x>>32)}); })
62 #endif
64 #ifdef HAVE_LIBC
65 #include <limits.h>
66 #include <stdint.h>
67 #else
68 #ifdef __i386__
69 typedef unsigned int uintptr_t;
70 typedef int intptr_t;
71 #elif defined(__x86_64__) || defined(__ia64__)
72 typedef unsigned long uintptr_t;
73 typedef long intptr_t;
74 #endif /* __i386__ || __x86_64__ */
75 typedef u8 uint8_t;
76 typedef s8 int8_t;
77 typedef u16 uint16_t;
78 typedef s16 int16_t;
79 typedef u32 uint32_t;
80 typedef s32 int32_t;
81 typedef u64 uint64_t, uintmax_t;
82 typedef s64 int64_t, intmax_t;
83 typedef u64 off_t;
84 #endif
86 typedef intptr_t ptrdiff_t;
89 #ifndef HAVE_LIBC
90 typedef long ssize_t;
91 #endif
93 #endif /* _TYPES_H_ */