summaryrefslogtreecommitdiff
path: root/sys/arch/m68k/include
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-07-30 01:22:01 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-07-30 01:22:01 +0000
commite3ef842646596e163c60e292f288af0cdfa72e81 (patch)
treeee1ba66edc50d4fa1fc0becc4e970e72b451d718 /sys/arch/m68k/include
parentdb2494bd1fc703f7febbe11cad2faa2e292eca62 (diff)
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
Diffstat (limited to 'sys/arch/m68k/include')
-rw-r--r--sys/arch/m68k/include/limits.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/m68k/include/limits.h b/sys/arch/m68k/include/limits.h
index d337cde7917..2a32e7870a7 100644
--- a/sys/arch/m68k/include/limits.h
+++ b/sys/arch/m68k/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.5 2002/04/24 21:53:11 espie Exp $ */
+/* $OpenBSD: limits.h,v 1.6 2002/07/30 01:22:00 millert Exp $ */
/* $NetBSD: limits.h,v 1.9 1994/10/26 07:50:48 cgd Exp $ */
/*
@@ -39,6 +39,7 @@
#define MB_LEN_MAX 1 /* no multibyte characters */
#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) && !defined(_XOPEN_SOURCE)