Import TBBT (NFS trace replay).
[bluesky.git] / TBBT / trace_play / rpc / types.h
1 /*
2  * @(#)types.h     2.1     97/10/23
3  */
4 /* @(#)types.h  2.3 88/08/15 4.0 RPCSRC */
5 /*
6  *   Copyright (c) 1992-1997,2001 by Standard Performance Evaluation Corporation
7  *      All rights reserved.
8  *              Standard Performance Evaluation Corporation (SPEC)
9  *              6585 Merchant Place, Suite 100
10  *              Warrenton, VA 20187
11  *
12  *      This product contains benchmarks acquired from several sources who
13  *      understand and agree with SPEC's goal of creating fair and objective
14  *      benchmarks to measure computer performance.
15  *
16  *      This copyright notice is placed here only to protect SPEC in the
17  *      event the source is misused in any manner that is contrary to the
18  *      spirit, the goals and the intent of SPEC.
19  *
20  *      The source code is provided to the user or company under the license
21  *      agreement for the SPEC Benchmark Suite for this product.
22  */
23 /*
24  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
25  * unrestricted use provided that this legend is included on all tape
26  * media and as a part of the software program in whole or part.  Users
27  * may copy or modify Sun RPC without charge, but are not authorized
28  * to license or distribute it to anyone else except as part of a product or
29  * program developed by the user.
30  * 
31  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
32  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
33  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
34  * 
35  * Sun RPC is provided with no support and without any obligation on the
36  * part of Sun Microsystems, Inc. to assist in its use, correction,
37  * modification or enhancement.
38  * 
39  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
40  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
41  * OR ANY PART THEREOF.
42  * 
43  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
44  * or profits or other special, indirect and consequential damages, even if
45  * Sun has been advised of the possibility of such damages.
46  * 
47  * Sun Microsystems, Inc.
48  * 2550 Garcia Avenue
49  * Mountain View, California  94043
50  */
51 /*      @(#)types.h 1.18 87/07/24 SMI      */
52
53 /*
54  * Rpc additions to <sys/types.h>
55  */
56 #ifndef __TYPES_RPC_HEADER__
57 #define __TYPES_RPC_HEADER__
58
59 #include <sys/types.h>
60 #include <sys/time.h>
61
62 #if defined(__INTTYPES_INCLUDED) || defined(_SYS_INT_TYPES_H)
63 #define HAVE_INTTYPES
64 #endif
65
66 #if defined(USE_INTTYPES)
67 #include <inttypes.h>
68 #else /* USE_INTTYPES */
69 #if !defined(HAVE_INTTYPES)
70 #define HAVE_INTTYPES
71
72 typedef signed char             int8_t;
73 typedef short                   int16_t;
74 typedef int                     int32_t;
75
76 typedef unsigned char           uint8_t;
77 typedef unsigned short          uint16_t;
78 typedef unsigned int            uint32_t;
79
80 #endif /* !HAVE_INTTYPES */
81
82 #endif /* USE_INTTYPES */
83
84 #define bool_t  int32_t
85 #define enum_t  int32_t
86 #ifndef FALSE
87 #define FALSE   (0)
88 #endif
89 #ifndef TRUE
90 #define TRUE    (1)
91 #endif
92 #define __dontcare__    -1
93 #ifndef NULL
94 #define NULL 0
95 #endif
96
97 #define mem_alloc(bsize)        malloc(bsize)
98 #define mem_free(ptr, bsize)    free(ptr)
99
100 #if defined(NO_T_TYPES)
101 typedef unsigned int    uint_t;
102 typedef unsigned char   uchar_t;
103 #endif
104
105 #ifdef notdef
106 #ifndef INADDR_LOOPBACK
107 #define       INADDR_LOOPBACK         (uint32_t)0x7F000001
108 #endif
109 #endif
110
111 #endif /* ndef __TYPES_RPC_HEADER__ */