]> git.proxmox.com Git - mirror_spl.git/blob - include/sys/types.h
SLES10 Fixes (part 3):
[mirror_spl.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 #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>
17 #include <linux/smp_compat.h>
18 #include <linux/workqueue_compat.h>
19 #include <linux/kallsyms_compat.h>
20 #include <linux/mutex_compat.h>
21
22 #ifndef HAVE_UINTPTR_T
23 typedef unsigned long uintptr_t;
24 #endif
25
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
34 typedef enum { B_FALSE=0, B_TRUE=1 } boolean_t;
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;
44 typedef struct task_struct kthread_t;
45 typedef struct vmem { } vmem_t;
46 typedef short pri_t;
47 typedef struct timespec timestruc_t; /* definition per SVr4 */
48 typedef struct timespec timespec_t;
49 typedef longlong_t hrtime_t;
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;
54 typedef uint_t major_t;
55 typedef uint_t minor_t;
56 typedef ulong_t pfn_t;
57 typedef ulong_t pgcnt_t;
58 typedef long spgcnt_t;
59
60 #endif /* _SPL_TYPES_H */