]> git.proxmox.com Git - mirror_spl-debian.git/blob - include/sys/types.h
* : modules/sys/kmem-slab.c : Re-implemented the slab to no
[mirror_spl-debian.git] / include / sys / types.h
1 #ifndef _SPL_TYPES_H
2 #define _SPL_TYPES_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #include <linux/types.h>
9 #include <sys/sysmacros.h>
10 #include "spl_config.h"
11
12 #ifndef HAVE_UINTPTR_T
13 typedef unsigned long uintptr_t;
14 #endif
15
16 #ifndef HAVE_KMEM_CACHE_T
17 typedef struct kmem_cache kmem_cache_t;
18 #endif
19 #define kmem_cache_t spl_kmem_cache_t
20
21 typedef enum { B_FALSE=0, B_TRUE=1 } boolean_t;
22 typedef unsigned long intptr_t;
23 typedef unsigned long ulong_t;
24 typedef unsigned int uint_t;
25 typedef unsigned char uchar_t;
26 typedef unsigned long long u_longlong_t;
27 typedef unsigned long long u_offset_t;
28 typedef unsigned long long rlim64_t;
29 typedef long long longlong_t;
30 typedef long long offset_t;
31 typedef struct task_struct kthread_t;
32 typedef struct vmem { } vmem_t;
33 typedef short pri_t;
34 typedef struct timespec timestruc_t; /* definition per SVr4 */
35 typedef struct timespec timespec_t;
36 typedef longlong_t hrtime_t;
37 typedef unsigned short ushort_t;
38 typedef u_longlong_t len_t;
39 typedef longlong_t diskaddr_t;
40 typedef ushort_t o_mode_t;
41 typedef uint_t major_t;
42 typedef uint_t minor_t;
43
44 #endif /* _SPL_TYPES_H */