1 #ifndef _TYPES_H
2 #define _TYPES_H
3 
4 /* I'm architecture independed :-) */
5 
6 /*
7  * It's architecture depended headers for common integer types
8  */
9 #include "stdint.h"
10 
11 /*
12  * Here are some RPC types define from linux /usr/include/rpc/types.h
13  */
14 typedef int bool_t;
15 typedef int enum_t;
16 typedef uint32_t rpcprog_t;
17 typedef uint32_t rpcvers_t;
18 typedef uint32_t rpcproc_t;
19 typedef uint32_t rpcprot_t;
20 typedef uint32_t rpcport_t;
21 
22 /* For bool_t */
23 /* typedef enum { */
24 /*  	FALSE = 0, */
25 /*  	TRUE = 1 */
26 /* } boolean_t; */
27 
28 
29 
30 /* Some BSD or RPC style types */
31 typedef unsigned char u_char;
32 typedef unsigned short u_short;
33 typedef unsigned int u_int;
34 typedef unsigned long u_long;
35 typedef long long quad_t;
36 typedef unsigned long long u_quad_t;
37 typedef struct {
38 	int __val[2];
39 }fsid_t;			/* Type of file system IDs, from bits/types.h */
40 
41 typedef int daddr_t;		/* The type of a disk address, from bits/types.h */
42 typedef char * caddr_t;
43 
44 #endif /* _TYPES_H */
45