summaryrefslogtreecommitdiffstats
path: root/sys/arch/powerpc/include/limits.h
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2013-08-07 15:33:59 +0000
committerkettenis <kettenis@openbsd.org>2013-08-07 15:33:59 +0000
commit8bc47e7225a836e79ddc9dd24aa148f7ee200d1c (patch)
tree8641faba819b37c540814d65cd1a1b6a81c064a6 /sys/arch/powerpc/include/limits.h
parentsimple inaccurate implementation of lrint* functions on vax, just so (diff)
downloadwireguard-openbsd-8bc47e7225a836e79ddc9dd24aa148f7ee200d1c.tar.xz
wireguard-openbsd-8bc47e7225a836e79ddc9dd24aa148f7ee200d1c.zip
We uniformly define size_t to be unsigned long and ssize_t to be long. Make
sure that SIZE_MAX and SSIZE_MAX are defined as constants with a matching type on all are architectures. ok millert@, matthew@
Diffstat (limited to 'sys/arch/powerpc/include/limits.h')
-rw-r--r--sys/arch/powerpc/include/limits.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/powerpc/include/limits.h b/sys/arch/powerpc/include/limits.h
index 4acbab0c5e4..e134f5eab00 100644
--- a/sys/arch/powerpc/include/limits.h
+++ b/sys/arch/powerpc/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.16 2009/11/27 19:54:35 guenther Exp $ */
+/* $OpenBSD: limits.h,v 1.17 2013/08/07 15:34:01 kettenis Exp $ */
/* $NetBSD: limits.h,v 1.1 1996/09/30 16:34:28 ws Exp $ */
/*-
@@ -39,13 +39,13 @@
#if __POSIX_VISIBLE || __XPG_VISIBLE
#ifndef SIZE_MAX
-#define SIZE_MAX UINT_MAX /* max value for a size_t */
+#define SIZE_MAX ULONG_MAX /* max value for a size_t */
#endif
-#define SSIZE_MAX INT_MAX /* max value for a ssize_t */
+#define SSIZE_MAX LONG_MAX /* max value for a ssize_t */
#endif
#if __BSD_VISIBLE
-#define SIZE_T_MAX UINT_MAX /* max value for a size_t (historic) */
+#define SIZE_T_MAX ULONG_MAX /* max value for a size_t (historic) */
#define UQUAD_MAX 0xffffffffffffffffULL /* max unsigned quad */
#define QUAD_MAX 0x7fffffffffffffffLL /* max signed quad */