diff options
author | mike <mike@FreeBSD.org> | 2002-08-25 19:26:31 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-08-25 19:26:31 +0000 |
commit | e125a71225752bb49bc856c385254b897d802224 (patch) | |
tree | 48a2fc734f6155f396cfc9860073bdf3a29d594c /sys | |
parent | da1dc4af11bcfd019d9e0059aebef41fa1a7a631 (diff) | |
download | FreeBSD-src-e125a71225752bb49bc856c385254b897d802224.zip FreeBSD-src-e125a71225752bb49bc856c385254b897d802224.tar.gz |
Move intrmask_t to the kernel-only section of <sys/types.h>. Add some
comments submitted by bde.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/_types.h | 1 | ||||
-rw-r--r-- | sys/sys/types.h | 12 |
2 files changed, 11 insertions, 2 deletions
diff --git a/sys/sys/_types.h b/sys/sys/_types.h index 074dc57..fd1d942 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 45d5953..7a41c10 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; |