summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/sys/_types.h1
-rw-r--r--sys/sys/types.h12
2 files changed, 11 insertions, 2 deletions
diff --git a/sys/sys/_types.h b/sys/sys/_types.h
index 074dc5738039..fd1d942471ef 100644
--- a/sys/sys/_types.h
+++ b/sys/sys/_types.h
@@ -39,7 +39,6 @@ typedef __int32_t __clockid_t; /* clock_gettime()... */
typedef __uint32_t __fflags_t; /* file flags */
typedef __uint64_t __fsblkcnt_t;
typedef __uint64_t __fsfilcnt_t;
-typedef __uint32_t __intrmask_t;
typedef __uint32_t __gid_t;
typedef __uint16_t __mode_t; /* permissions */
typedef __int64_t __off_t; /* file offset */
diff --git a/sys/sys/types.h b/sys/sys/types.h
index 45d59533e4b7..7a41c1028c17 100644
--- a/sys/sys/types.h
+++ b/sys/sys/types.h
@@ -134,7 +134,6 @@ typedef __gid_t gid_t; /* group id */
#endif
typedef u_int32_t ino_t; /* inode number */
-typedef __intrmask_t intrmask_t; /* Interrupt mask (spl, xxx_imask...) */
typedef long key_t; /* IPC key (for Sys V IPC) */
#ifndef _MODE_T_DECLARED
@@ -169,6 +168,17 @@ typedef __vm_size_t vm_size_t;
#ifdef _KERNEL
typedef int boolean_t;
typedef __intfptr_t intfptr_t;
+
+/*-
+ * XXX this is fixed width for historical reasons. It should have had type
+ * __int_fast32_t. Fixed-width types should not be used unless binary
+ * compatibility is essential. Least-width types should be used even less
+ * since they provide smaller benefits.
+ * XXX should be MD.
+ * XXX this is bogus in -current, but still used for spl*().
+ */
+typedef __uint32_t intrmask_t; /* Interrupt mask (spl, xxx_imask...) */
+
typedef __uintfptr_t uintfptr_t;
typedef u_int64_t uoff_t;
typedef struct vm_page *vm_page_t;