]>
Commit | Line | Data |
---|---|---|
09b414e8 | 1 | #ifndef _SPL_TYPES_H |
2 | #define _SPL_TYPES_H | |
f1ca4da6 | 3 | |
4 | #ifdef __cplusplus | |
5 | extern "C" { | |
6 | #endif | |
7 | ||
dbb484ec | 8 | #include <linux/types.h> |
14c5326c | 9 | #include <sys/sysmacros.h> |
0cbaeb11 | 10 | #include <spl_config.h> |
dbb484ec | 11 | |
322640b7 | 12 | #include <linux/uaccess_compat.h> |
13 | #include <linux/file_compat.h> | |
14 | #include <linux/list_compat.h> | |
15 | #include <linux/time_compat.h> | |
16 | #include <linux/bitops_compat.h> | |
31a033ec BB |
17 | #include <linux/smp_compat.h> |
18 | #include <linux/workqueue_compat.h> | |
d1ff2312 | 19 | #include <linux/kallsyms_compat.h> |
6c9433c1 | 20 | #include <linux/mutex_compat.h> |
322640b7 | 21 | |
57d86234 | 22 | #ifndef HAVE_UINTPTR_T |
f1ca4da6 | 23 | typedef unsigned long uintptr_t; |
57d86234 | 24 | #endif |
25 | ||
6a6cafbe | 26 | #ifndef ULLONG_MAX |
27 | #define ULLONG_MAX (~0ULL) | |
28 | #endif | |
29 | ||
30 | #ifndef LLONG_MAX | |
31 | #define LLONG_MAX ((long long)(~0ULL>>1)) | |
32 | #endif | |
33 | ||
57d86234 | 34 | typedef enum { B_FALSE=0, B_TRUE=1 } boolean_t; |
f1ca4da6 | 35 | typedef unsigned long intptr_t; |
36 | typedef unsigned long ulong_t; | |
37 | typedef unsigned int uint_t; | |
38 | typedef unsigned char uchar_t; | |
39 | typedef unsigned long long u_longlong_t; | |
40 | typedef unsigned long long u_offset_t; | |
41 | typedef unsigned long long rlim64_t; | |
42 | typedef long long longlong_t; | |
43 | typedef long long offset_t; | |
3d4ea0ce | 44 | typedef struct task_struct kthread_t; |
f1ca4da6 | 45 | typedef struct vmem { } vmem_t; |
46 | typedef short pri_t; | |
dbb484ec | 47 | typedef struct timespec timestruc_t; /* definition per SVr4 */ |
79b31f36 | 48 | typedef struct timespec timespec_t; |
dbb484ec | 49 | typedef longlong_t hrtime_t; |
a713518f | 50 | typedef unsigned short ushort_t; |
51 | typedef u_longlong_t len_t; | |
52 | typedef longlong_t diskaddr_t; | |
53 | typedef ushort_t o_mode_t; | |
73e540a0 | 54 | typedef uint_t major_t; |
55 | typedef uint_t minor_t; | |
7adbea41 BB |
56 | typedef ulong_t pfn_t; |
57 | typedef ulong_t pgcnt_t; | |
58 | typedef long spgcnt_t; | |
f1ca4da6 | 59 | |
09b414e8 | 60 | #endif /* _SPL_TYPES_H */ |