2008-02-28 00:52:31 +00:00
|
|
|
#ifndef _SPL_TYPES_H
|
|
|
|
#define _SPL_TYPES_H
|
2008-02-26 20:36:04 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2008-03-01 18:30:12 +00:00
|
|
|
#include <linux/types.h>
|
2008-03-04 18:22:31 +00:00
|
|
|
#include <sys/sysmacros.h>
|
2008-03-01 18:30:12 +00:00
|
|
|
|
2008-08-11 19:10:14 +00:00
|
|
|
#include <linux/uaccess_compat.h>
|
|
|
|
#include <linux/file_compat.h>
|
|
|
|
#include <linux/list_compat.h>
|
|
|
|
#include <linux/time_compat.h>
|
|
|
|
#include <linux/bitops_compat.h>
|
2009-02-02 23:12:30 +00:00
|
|
|
#include <linux/smp_compat.h>
|
|
|
|
#include <linux/workqueue_compat.h>
|
2009-02-25 21:20:40 +00:00
|
|
|
#include <linux/kallsyms_compat.h>
|
2009-05-20 17:56:13 +00:00
|
|
|
#include <linux/mutex_compat.h>
|
2009-10-01 23:06:15 +00:00
|
|
|
#include <linux/module_compat.h>
|
2010-03-04 20:14:56 +00:00
|
|
|
#include <linux/sysctl_compat.h>
|
2008-08-11 19:10:14 +00:00
|
|
|
|
2008-06-02 17:28:49 +00:00
|
|
|
#ifndef HAVE_UINTPTR_T
|
2008-02-26 20:36:04 +00:00
|
|
|
typedef unsigned long uintptr_t;
|
2008-06-02 17:28:49 +00:00
|
|
|
#endif
|
|
|
|
|
2008-08-11 17:20:11 +00:00
|
|
|
#ifndef ULLONG_MAX
|
|
|
|
#define ULLONG_MAX (~0ULL)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef LLONG_MAX
|
|
|
|
#define LLONG_MAX ((long long)(~0ULL>>1))
|
|
|
|
#endif
|
|
|
|
|
2008-06-02 17:28:49 +00:00
|
|
|
typedef enum { B_FALSE=0, B_TRUE=1 } boolean_t;
|
2008-02-26 20:36:04 +00:00
|
|
|
typedef unsigned long intptr_t;
|
|
|
|
typedef unsigned long ulong_t;
|
|
|
|
typedef unsigned int uint_t;
|
|
|
|
typedef unsigned char uchar_t;
|
|
|
|
typedef unsigned long long u_longlong_t;
|
|
|
|
typedef unsigned long long u_offset_t;
|
|
|
|
typedef unsigned long long rlim64_t;
|
|
|
|
typedef long long longlong_t;
|
|
|
|
typedef long long offset_t;
|
2008-02-27 00:59:48 +00:00
|
|
|
typedef struct task_struct kthread_t;
|
2008-02-26 20:36:04 +00:00
|
|
|
typedef struct vmem { } vmem_t;
|
|
|
|
typedef short pri_t;
|
2008-03-01 18:30:12 +00:00
|
|
|
typedef struct timespec timestruc_t; /* definition per SVr4 */
|
2008-03-14 19:04:41 +00:00
|
|
|
typedef struct timespec timespec_t;
|
2008-03-01 18:30:12 +00:00
|
|
|
typedef longlong_t hrtime_t;
|
2008-03-05 00:58:54 +00:00
|
|
|
typedef unsigned short ushort_t;
|
|
|
|
typedef u_longlong_t len_t;
|
|
|
|
typedef longlong_t diskaddr_t;
|
|
|
|
typedef ushort_t o_mode_t;
|
2008-03-13 19:49:09 +00:00
|
|
|
typedef uint_t major_t;
|
|
|
|
typedef uint_t minor_t;
|
2009-01-06 00:14:38 +00:00
|
|
|
typedef ulong_t pfn_t;
|
|
|
|
typedef ulong_t pgcnt_t;
|
|
|
|
typedef long spgcnt_t;
|
2008-02-26 20:36:04 +00:00
|
|
|
|
2008-02-28 00:52:31 +00:00
|
|
|
#endif /* _SPL_TYPES_H */
|