mirror of
https://github.com/opnsense/src.git
synced 2026-03-13 22:25:45 -04:00
at a time as I audit it. This chunk finishes moving the SPL entirely off the linux slab on to the SPL implementation. It differs slightly from the proposed version in that the spl continues to export to all the Solaris types and functions. These do conflict with the Linux slab so a module usings these interfaces must not include the SPL slab if they also intend to use the linux slab. Or they must explcitly #undef the macros which remap the functioin to their spl_* equivilants. A nice side of effect of dropping the entire linux slab is we don't need to autoconf checks anymore. They kept messing with the slab API endlessly! git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@148 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
39 lines
1 KiB
C
39 lines
1 KiB
C
#ifndef _SPL_TYPES_H
|
|
#define _SPL_TYPES_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <linux/types.h>
|
|
#include <sys/sysmacros.h>
|
|
#include "spl_config.h"
|
|
|
|
#ifndef HAVE_UINTPTR_T
|
|
typedef unsigned long uintptr_t;
|
|
#endif
|
|
|
|
typedef enum { B_FALSE=0, B_TRUE=1 } boolean_t;
|
|
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;
|
|
typedef struct task_struct kthread_t;
|
|
typedef struct vmem { } vmem_t;
|
|
typedef short pri_t;
|
|
typedef struct timespec timestruc_t; /* definition per SVr4 */
|
|
typedef struct timespec timespec_t;
|
|
typedef longlong_t hrtime_t;
|
|
typedef unsigned short ushort_t;
|
|
typedef u_longlong_t len_t;
|
|
typedef longlong_t diskaddr_t;
|
|
typedef ushort_t o_mode_t;
|
|
typedef uint_t major_t;
|
|
typedef uint_t minor_t;
|
|
|
|
#endif /* _SPL_TYPES_H */
|