From e1834435d55e9bfbc006afb0120ef093e201f3f5 Mon Sep 17 00:00:00 2001 From: perry Date: Mon, 26 Dec 2005 20:00:04 +0000 Subject: [PATCH] note the intN_t, uintN_t types. XXX this document is rather musty. It needs a general update. --- share/man/man5/types.5 | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/share/man/man5/types.5 b/share/man/man5/types.5 index 2159d54471ee..ad0b24c0e503 100644 --- a/share/man/man5/types.5 +++ b/share/man/man5/types.5 @@ -1,4 +1,4 @@ -.\" $NetBSD: types.5,v 1.10 2005/12/26 19:48:12 perry Exp $ +.\" $NetBSD: types.5,v 1.11 2005/12/26 20:00:04 perry Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)types.5 8.1 (Berkeley) 6/5/93 .\" -.Dd June 5, 1993 +.Dd December 26, 2005 .Dt TYPES 5 .Os .Sh NAME @@ -42,6 +42,17 @@ The file .Aq Pa sys/types.h contains the defined data types used in the kernel (most are used throughout the system). +.Pp +Note that in +.Nx +code, when an integer of a specific width is needed, the C99 +style +.Vt int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t, uint64_t +should be used. The old +.Bx +style +.Vt u_int8_t, u_int16_t, u_int32_t, u_int64_t +are deprecated. .Bd -literal #ifndef _SYS_TYPES_H_ #define _SYS_TYPES_H_