From 75b98b396bf18603b1d4a7e7da859782a685b46d Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 19 Dec 2008 10:09:35 -0800 Subject: [PATCH] Add missing VM types --- lib/libspl/include/sys/types.h | 38 +++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/lib/libspl/include/sys/types.h b/lib/libspl/include/sys/types.h index b166812925..5fb49118ef 100644 --- a/lib/libspl/include/sys/types.h +++ b/lib/libspl/include/sys/types.h @@ -39,27 +39,34 @@ typedef enum boolean { B_FALSE, B_TRUE } boolean_t; -typedef unsigned char uchar_t; -typedef unsigned short ushort_t; -typedef unsigned int uint_t; -typedef unsigned long ulong_t; +typedef unsigned char uchar_t; +typedef unsigned short ushort_t; +typedef unsigned int uint_t; +typedef unsigned long ulong_t; -typedef long long longlong_t; +typedef long long longlong_t; typedef unsigned long long u_longlong_t; #endif /* HAVE_INTTYPES */ -typedef longlong_t offset_t; -typedef u_longlong_t u_offset_t; -typedef u_longlong_t len_t; -typedef longlong_t diskaddr_t; +typedef longlong_t offset_t; +typedef u_longlong_t u_offset_t; +typedef u_longlong_t len_t; +typedef longlong_t diskaddr_t; -typedef short pri_t; +typedef ulong_t pfn_t; /* page frame number */ +typedef ulong_t pgcnt_t; /* number of pages */ +typedef long spgcnt_t; /* signed number of pages */ -typedef int zoneid_t; -typedef int projid_t; +typedef longlong_t hrtime_t; +typedef struct timespec timestruc_t; -typedef int major_t; -typedef int minor_t; +typedef short pri_t; + +typedef int zoneid_t; +typedef int projid_t; + +typedef int major_t; +typedef int minor_t; typedef ushort_t o_mode_t; /* old file attribute type */ @@ -88,7 +95,4 @@ typedef union { } lloff_t; #endif -typedef longlong_t hrtime_t; -typedef struct timespec timestruc_t; - #endif