]> git.proxmox.com Git - mirror_spl.git/blame - include/sys/types.h
Update rwlocks to track owner to ensure correct semantics
[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>
322640b7 21
57d86234 22#ifndef HAVE_UINTPTR_T
f1ca4da6 23typedef 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 34typedef enum { B_FALSE=0, B_TRUE=1 } boolean_t;
f1ca4da6 35typedef unsigned long intptr_t;
36typedef unsigned long ulong_t;
37typedef unsigned int uint_t;
38typedef unsigned char uchar_t;
39typedef unsigned long long u_longlong_t;
40typedef unsigned long long u_offset_t;
41typedef unsigned long long rlim64_t;
42typedef long long longlong_t;
43typedef long long offset_t;
3d4ea0ce 44typedef struct task_struct kthread_t;
f1ca4da6 45typedef struct vmem { } vmem_t;
46typedef short pri_t;
dbb484ec 47typedef struct timespec timestruc_t; /* definition per SVr4 */
79b31f36 48typedef struct timespec timespec_t;
dbb484ec 49typedef longlong_t hrtime_t;
a713518f 50typedef unsigned short ushort_t;
51typedef u_longlong_t len_t;
52typedef longlong_t diskaddr_t;
53typedef ushort_t o_mode_t;
73e540a0 54typedef uint_t major_t;
55typedef uint_t minor_t;
7adbea41
BB
56typedef ulong_t pfn_t;
57typedef ulong_t pgcnt_t;
58typedef long spgcnt_t;
f1ca4da6 59
09b414e8 60#endif /* _SPL_TYPES_H */