]> git.proxmox.com Git - mirror_spl.git/blame - include/sys/types.h
Linux 2.6.32 compat, proc_handler() API change
[mirror_spl.git] / include / sys / types.h
CommitLineData
09b414e8 1#ifndef _SPL_TYPES_H
2#define _SPL_TYPES_H
f1ca4da6 3
4#ifdef __cplusplus
5extern "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 25typedef 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 36typedef enum { B_FALSE=0, B_TRUE=1 } boolean_t;
f1ca4da6 37typedef unsigned long intptr_t;
38typedef unsigned long ulong_t;
39typedef unsigned int uint_t;
40typedef unsigned char uchar_t;
41typedef unsigned long long u_longlong_t;
42typedef unsigned long long u_offset_t;
43typedef unsigned long long rlim64_t;
44typedef long long longlong_t;
45typedef long long offset_t;
3d4ea0ce 46typedef struct task_struct kthread_t;
f1ca4da6 47typedef struct vmem { } vmem_t;
48typedef short pri_t;
dbb484ec 49typedef struct timespec timestruc_t; /* definition per SVr4 */
79b31f36 50typedef struct timespec timespec_t;
dbb484ec 51typedef longlong_t hrtime_t;
a713518f 52typedef unsigned short ushort_t;
53typedef u_longlong_t len_t;
54typedef longlong_t diskaddr_t;
55typedef ushort_t o_mode_t;
73e540a0 56typedef uint_t major_t;
57typedef uint_t minor_t;
7adbea41
BB
58typedef ulong_t pfn_t;
59typedef ulong_t pgcnt_t;
60typedef long spgcnt_t;
f1ca4da6 61
09b414e8 62#endif /* _SPL_TYPES_H */