note the intN_t, uintN_t types.

XXX this document is rather musty. It needs a general update.
This commit is contained in:
perry 2005-12-26 20:00:04 +00:00
parent fd18408b9a
commit e1834435d5

View File

@ -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_