summaryrefslogtreecommitdiffstats
path: root/sys
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
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')
-rw-r--r--sys/arch/arm/include/limits.h8
-rw-r--r--sys/arch/hppa/include/limits.h8
-rw-r--r--sys/arch/hppa64/include/limits.h8
-rw-r--r--sys/arch/i386/include/limits.h8
-rw-r--r--sys/arch/m68k/include/limits.h8
-rw-r--r--sys/arch/m88k/include/limits.h8
-rw-r--r--sys/arch/powerpc/include/limits.h8
-rw-r--r--sys/arch/sh/include/limits.h8
-rw-r--r--sys/arch/sparc/include/limits.h8
-rw-r--r--sys/arch/vax/include/limits.h8
10 files changed, 40 insertions, 40 deletions
diff --git a/sys/arch/arm/include/limits.h b/sys/arch/arm/include/limits.h
index 75084da58ca..1ef1441afad 100644
--- a/sys/arch/arm/include/limits.h
+++ b/sys/arch/arm/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.5 2011/03/23 16:54:34 pirofti Exp $ */
+/* $OpenBSD: limits.h,v 1.6 2013/08/07 15:33:59 kettenis Exp $ */
/* $NetBSD: limits.h,v 1.4 2003/04/28 23:16:18 bjh21 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 */
diff --git a/sys/arch/hppa/include/limits.h b/sys/arch/hppa/include/limits.h
index 2addf98b443..6cb0ea0c7cf 100644
--- a/sys/arch/hppa/include/limits.h
+++ b/sys/arch/hppa/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.12 2009/11/27 19:54:35 guenther Exp $ */
+/* $OpenBSD: limits.h,v 1.13 2013/08/07 15:34:00 kettenis Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -38,13 +38,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) */
/* GCC requires that quad constants be written as expressions. */
#define UQUAD_MAX ((u_quad_t)0-1) /* max value for a uquad_t */
diff --git a/sys/arch/hppa64/include/limits.h b/sys/arch/hppa64/include/limits.h
index 2ebfe59521f..02cfa0d4be3 100644
--- a/sys/arch/hppa64/include/limits.h
+++ b/sys/arch/hppa64/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.4 2009/11/27 19:54:35 guenther Exp $ */
+/* $OpenBSD: limits.h,v 1.5 2013/08/07 15:34:00 kettenis Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -38,13 +38,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) */
/* GCC requires that quad constants be written as expressions. */
#define UQUAD_MAX ((u_quad_t)0-1) /* max value for a uquad_t */
diff --git a/sys/arch/i386/include/limits.h b/sys/arch/i386/include/limits.h
index 4000751a458..c43a3a5d05c 100644
--- a/sys/arch/i386/include/limits.h
+++ b/sys/arch/i386/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.12 2009/11/27 19:54:35 guenther Exp $ */
+/* $OpenBSD: limits.h,v 1.13 2013/08/07 15:34:00 kettenis Exp $ */
/* $NetBSD: limits.h,v 1.11 1995/12/21 01:08:59 mycroft 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 */
diff --git a/sys/arch/m68k/include/limits.h b/sys/arch/m68k/include/limits.h
index f32b00ee420..4552b2cb637 100644
--- a/sys/arch/m68k/include/limits.h
+++ b/sys/arch/m68k/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.10 2009/11/27 19:54:35 guenther Exp $ */
+/* $OpenBSD: limits.h,v 1.11 2013/08/07 15:34:01 kettenis Exp $ */
/* $NetBSD: limits.h,v 1.9 1994/10/26 07:50:48 cgd Exp $ */
/*
@@ -36,13 +36,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 */
diff --git a/sys/arch/m88k/include/limits.h b/sys/arch/m88k/include/limits.h
index 89735c1dbea..449e8a2afd7 100644
--- a/sys/arch/m88k/include/limits.h
+++ b/sys/arch/m88k/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.5 2011/03/23 16:54:35 pirofti Exp $ */
+/* $OpenBSD: limits.h,v 1.6 2013/08/07 15:34:01 kettenis Exp $ */
/*
* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.
@@ -37,13 +37,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) */
/* GCC requires that quad constants be written as expressions. */
#define UQUAD_MAX ((u_quad_t)0-1) /* max value for a uquad_t */
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 */
diff --git a/sys/arch/sh/include/limits.h b/sys/arch/sh/include/limits.h
index 618bb24f828..1078ec4a640 100644
--- a/sys/arch/sh/include/limits.h
+++ b/sys/arch/sh/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.2 2009/11/27 19:54:35 guenther Exp $ */
+/* $OpenBSD: limits.h,v 1.3 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 */
diff --git a/sys/arch/sparc/include/limits.h b/sys/arch/sparc/include/limits.h
index ea9cf0b2de6..ca45199afb7 100644
--- a/sys/arch/sparc/include/limits.h
+++ b/sys/arch/sparc/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.12 2009/11/27 19:54:35 guenther Exp $ */
+/* $OpenBSD: limits.h,v 1.13 2013/08/07 15:34:02 kettenis Exp $ */
/* $NetBSD: limits.h,v 1.7 1996/01/05 18:10:57 pk Exp $ */
/*
@@ -36,13 +36,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) */
/* GCC requires that quad constants be written as expressions. */
#define UQUAD_MAX ((u_quad_t)0-1) /* max value for a uquad_t */
diff --git a/sys/arch/vax/include/limits.h b/sys/arch/vax/include/limits.h
index 49d84a43cb4..f6fa08fbf81 100644
--- a/sys/arch/vax/include/limits.h
+++ b/sys/arch/vax/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.14 2009/11/27 19:54:35 guenther Exp $ */
+/* $OpenBSD: limits.h,v 1.15 2013/08/07 15:34:02 kettenis Exp $ */
/* $NetBSD: limits.h,v 1.9 2000/03/07 19:33:01 kleink 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 */