]>
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> |
51a727e9 | 21 | #include <linux/module_compat.h> |
3977f837 | 22 | #include <linux/sysctl_compat.h> |
322640b7 | 23 | |
57d86234 | 24 | #ifndef HAVE_UINTPTR_T |
f1ca4da6 | 25 | typedef unsigned long uintptr_t; |
57d86234 | 26 | #endif |
27 | ||
6a6cafbe | 28 | #ifndef ULLONG_MAX |
29 | #define ULLONG_MAX (~0ULL) | |
30 | #endif | |
31 | ||
32 | #ifndef LLONG_MAX | |
33 | #define LLONG_MAX ((long long)(~0ULL>>1)) | |
34 | #endif | |
35 | ||
57d86234 | 36 | typedef enum { B_FALSE=0, B_TRUE=1 } boolean_t; |
f1ca4da6 | 37 | typedef unsigned long intptr_t; |
38 | typedef unsigned long ulong_t; | |
39 | typedef unsigned int uint_t; | |
40 | typedef unsigned char uchar_t; | |
41 | typedef unsigned long long u_longlong_t; | |
42 | typedef unsigned long long u_offset_t; | |
43 | typedef unsigned long long rlim64_t; | |
44 | typedef long long longlong_t; | |
45 | typedef long long offset_t; | |
3d4ea0ce | 46 | typedef struct task_struct kthread_t; |
f1ca4da6 | 47 | typedef struct vmem { } vmem_t; |
48 | typedef short pri_t; | |
dbb484ec | 49 | typedef struct timespec timestruc_t; /* definition per SVr4 */ |
79b31f36 | 50 | typedef struct timespec timespec_t; |
dbb484ec | 51 | typedef longlong_t hrtime_t; |
a713518f | 52 | typedef unsigned short ushort_t; |
53 | typedef u_longlong_t len_t; | |
54 | typedef longlong_t diskaddr_t; | |
55 | typedef ushort_t o_mode_t; | |
73e540a0 | 56 | typedef uint_t major_t; |
57 | typedef uint_t minor_t; | |
7adbea41 BB |
58 | typedef ulong_t pfn_t; |
59 | typedef ulong_t pgcnt_t; | |
60 | typedef long spgcnt_t; | |
f1ca4da6 | 61 | |
09b414e8 | 62 | #endif /* _SPL_TYPES_H */ |