summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/types.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-06-14 14:08:21 +0000
committerbde <bde@FreeBSD.org>1998-06-14 14:08:21 +0000
commit4308a30345958dd9e4a4f2f202cf9e9989d93df3 (patch)
tree596a9312ab4759e5ee897951cfa156c9ff101882 /sys/i386/include/types.h
parent313d7e968d94c42a665a3d3bdf2198c01eb1c2a9 (diff)
downloadFreeBSD-src-4308a30345958dd9e4a4f2f202cf9e9989d93df3.zip
FreeBSD-src-4308a30345958dd9e4a4f2f202cf9e9989d93df3.tar.gz
Define 64-bit types in terms of __int64_t and __uint64_t.
Define an unsigned version of off_t (uoff_t) if KERNEL is defined. This is useful for micro-optimizing expressions involving off_t's where you know that the values are non-negative but the compiler doesn't know it. Fixed a gratuitous ANSIism.
Diffstat (limited to 'sys/i386/include/types.h')
-rw-r--r--sys/i386/include/types.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/sys/i386/include/types.h b/sys/i386/include/types.h
index 017c7a2..b906d83 100644
--- a/sys/i386/include/types.h
+++ b/sys/i386/include/types.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)types.h 8.3 (Berkeley) 1/5/94
- * $Id: types.h,v 1.10 1997/02/22 09:35:21 peter Exp $
+ * $Id: types.h,v 1.11 1997/05/31 09:07:36 peter Exp $
*/
#ifndef _MACHINE_TYPES_H_
@@ -48,7 +48,7 @@ typedef struct label_t {
#endif
typedef unsigned int vm_offset_t;
-typedef long long vm_ooffset_t;
+typedef __int64_t vm_ooffset_t;
typedef unsigned int vm_pindex_t;
typedef unsigned int vm_size_t;
@@ -62,17 +62,21 @@ typedef short int16_t;
typedef unsigned short u_int16_t;
typedef int int32_t;
typedef unsigned int u_int32_t;
-typedef long long int64_t;
-typedef unsigned long long u_int64_t;
+typedef __int64_t int64_t;
+typedef __uint64_t u_int64_t;
typedef int32_t register_t;
typedef int32_t ufs_daddr_t;
+#ifdef KERNEL
+typedef __uint64_t uoff_t; /* unsigned file offset */
+#endif
+
/* Interrupt mask (spl, xxx_imask, etc) */
typedef u_int32_t intrmask_t;
/* Interrupt handler function type - arg should be "void *" one day */
-typedef void inthand2_t(int _unit);
+typedef void inthand2_t __P((int _unit));
#endif /* !_MACHINE_TYPES_H_ */
OpenPOWER on IntegriCloud