From e3ef842646596e163c60e292f288af0cdfa72e81 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 30 Jul 2002 01:22:01 +0000 Subject: Add SIZE_MAX define. This is the same as SIZE_T_MAX but more portable. The only OSes I've seen that use SIZE_T_MAX are 4.4BSD-derived whereas SYSV things seem to use SIZE_MAX. It is also consistent with SSIZE_MAX (which we already have). deraadt@ OK --- sys/arch/mvme88k/include/limits.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/arch/mvme88k') diff --git a/sys/arch/mvme88k/include/limits.h b/sys/arch/mvme88k/include/limits.h index b7a1be8da87..7cb7cbe44f9 100644 --- a/sys/arch/mvme88k/include/limits.h +++ b/sys/arch/mvme88k/include/limits.h @@ -1,4 +1,4 @@ -/* $OpenBSD: limits.h,v 1.9 2002/04/24 21:53:11 espie Exp $ */ +/* $OpenBSD: limits.h,v 1.10 2002/07/30 01:22:00 millert Exp $ */ /* * Copyright (c) 1988, 1993 * The Regents of the University of California. All rights reserved. @@ -32,7 +32,7 @@ * SUCH DAMAGE. * * from: @(#)limits.h 8.3 (Berkeley) 1/4/94 - * $Id: limits.h,v 1.9 2002/04/24 21:53:11 espie Exp $ + * $Id: limits.h,v 1.10 2002/07/30 01:22:00 millert Exp $ */ #ifndef _MACHINE_LIMITS_H_ @@ -41,6 +41,7 @@ #define MB_LEN_MAX 6 /* Allow 31 bit UTF2 */ #if !defined(_ANSI_SOURCE) +#define SIZE_MAX UINT_MAX /* max value for a size_t */ #define SSIZE_MAX INT_MAX /* max value for a ssize_t */ #if !defined(_POSIX_SOURCE) -- cgit v1.2.3