aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/types.h
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>1998-06-07 17:13:14 +0000
committerDoug Rabson <dfr@FreeBSD.org>1998-06-07 17:13:14 +0000
commitecbb00a2629050fd720dc376a33c45f4ad767cea (patch)
tree1113fd99d363889650b503b7f993603f9423465a /sys/sys/types.h
parent37a8b7dcb8bdd78373c1d4afa4c423c119314e86 (diff)
downloadsrc-ecbb00a2629050fd720dc376a33c45f4ad767cea.tar.gz
src-ecbb00a2629050fd720dc376a33c45f4ad767cea.zip
This commit fixes various 64bit portability problems required for
FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change. The prototype FreeBSD/alpha machdep will follow in a couple of days time.
Notes
Notes: svn path=/head/; revision=36735
Diffstat (limited to 'sys/sys/types.h')
-rw-r--r--sys/sys/types.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/sys/types.h b/sys/sys/types.h
index 12f128a33ab3..085825bee890 100644
--- a/sys/sys/types.h
+++ b/sys/sys/types.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)types.h 8.6 (Berkeley) 2/19/95
- * $Id: types.h,v 1.23 1998/01/08 00:27:34 alex Exp $
+ * $Id: types.h,v 1.24 1998/02/24 02:11:39 bde Exp $
*/
#ifndef _SYS_TYPES_H_
@@ -73,7 +73,11 @@ typedef u_int16_t nlink_t; /* link count */
typedef _BSD_OFF_T_ off_t; /* file offset */
typedef _BSD_PID_T_ pid_t; /* process id */
typedef quad_t rlim_t; /* resource limit */
+#ifdef __alpha__ /* XXX should be in <machine/types.h> */
+typedef int64_t segsz_t; /* segment size */
+#else
typedef int32_t segsz_t; /* segment size */
+#endif
typedef int32_t swblk_t; /* swap offset */
typedef u_int32_t uid_t; /* user id */