aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/ia64/include/_limits.h3
-rw-r--r--sys/ia64/include/limits.h3
-rw-r--r--sys/powerpc/include/_limits.h3
-rw-r--r--sys/powerpc/include/limits.h3
-rw-r--r--sys/sparc64/include/_limits.h3
-rw-r--r--sys/sparc64/include/limits.h3
6 files changed, 18 insertions, 0 deletions
diff --git a/sys/ia64/include/_limits.h b/sys/ia64/include/_limits.h
index 97aa61b96e2f..aa5b7e9aa6f6 100644
--- a/sys/ia64/include/_limits.h
+++ b/sys/ia64/include/_limits.h
@@ -80,6 +80,9 @@
#if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
#define SIZE_T_MAX ULONG_MAX /* max value for a size_t */
+#define OFF_T_MAX LONG_MAX /* max value for a off_t */
+#define OFF_T_MIN LONG_MIN /* min value for a off_t */
+
/* Quads and longs are the same. Ensure they stay in sync. */
#define UQUAD_MAX (ULONG_MAX) /* max value for a uquad_t */
#define QUAD_MAX (LONG_MAX) /* max value for a quad_t */
diff --git a/sys/ia64/include/limits.h b/sys/ia64/include/limits.h
index 97aa61b96e2f..aa5b7e9aa6f6 100644
--- a/sys/ia64/include/limits.h
+++ b/sys/ia64/include/limits.h
@@ -80,6 +80,9 @@
#if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
#define SIZE_T_MAX ULONG_MAX /* max value for a size_t */
+#define OFF_T_MAX LONG_MAX /* max value for a off_t */
+#define OFF_T_MIN LONG_MIN /* min value for a off_t */
+
/* Quads and longs are the same. Ensure they stay in sync. */
#define UQUAD_MAX (ULONG_MAX) /* max value for a uquad_t */
#define QUAD_MAX (LONG_MAX) /* max value for a quad_t */
diff --git a/sys/powerpc/include/_limits.h b/sys/powerpc/include/_limits.h
index 4e95956e11df..887be718693d 100644
--- a/sys/powerpc/include/_limits.h
+++ b/sys/powerpc/include/_limits.h
@@ -93,6 +93,9 @@
#if !defined(_POSIX_SOURCE)
#define SIZE_T_MAX UINT_MAX /* max value for a size_t */
+#define OFF_T_MAX LLONG_MAX /* max value for a off_t */
+#define OFF_T_MIN LLONG_MIN /* min value for a off_t */
+
/* Quads and long longs are the same size. Ensure they stay in sync. */
#define UQUAD_MAX ULLONG_MAX /* max value for a uquad_t */
#define QUAD_MAX LLONG_MAX /* max value for a quad_t */
diff --git a/sys/powerpc/include/limits.h b/sys/powerpc/include/limits.h
index 4e95956e11df..887be718693d 100644
--- a/sys/powerpc/include/limits.h
+++ b/sys/powerpc/include/limits.h
@@ -93,6 +93,9 @@
#if !defined(_POSIX_SOURCE)
#define SIZE_T_MAX UINT_MAX /* max value for a size_t */
+#define OFF_T_MAX LLONG_MAX /* max value for a off_t */
+#define OFF_T_MIN LLONG_MIN /* min value for a off_t */
+
/* Quads and long longs are the same size. Ensure they stay in sync. */
#define UQUAD_MAX ULLONG_MAX /* max value for a uquad_t */
#define QUAD_MAX LLONG_MAX /* max value for a quad_t */
diff --git a/sys/sparc64/include/_limits.h b/sys/sparc64/include/_limits.h
index 4196887b2ecb..3f53b25384bc 100644
--- a/sys/sparc64/include/_limits.h
+++ b/sys/sparc64/include/_limits.h
@@ -74,6 +74,9 @@
#if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
#define SIZE_T_MAX ULONG_MAX /* max value for a size_t */
+#define OFF_T_MAX LONG_MAX /* max value for a off_t */
+#define OFF_T_MIN LONG_MIN /* min value for a off_t */
+
/* Quads and longs are the same on the alpha. Ensure they stay in sync. */
#define UQUAD_MAX (ULONG_MAX) /* max value for a uquad_t */
#define QUAD_MAX (LONG_MAX) /* max value for a quad_t */
diff --git a/sys/sparc64/include/limits.h b/sys/sparc64/include/limits.h
index 4196887b2ecb..3f53b25384bc 100644
--- a/sys/sparc64/include/limits.h
+++ b/sys/sparc64/include/limits.h
@@ -74,6 +74,9 @@
#if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
#define SIZE_T_MAX ULONG_MAX /* max value for a size_t */
+#define OFF_T_MAX LONG_MAX /* max value for a off_t */
+#define OFF_T_MIN LONG_MIN /* min value for a off_t */
+
/* Quads and longs are the same on the alpha. Ensure they stay in sync. */
#define UQUAD_MAX (ULONG_MAX) /* max value for a uquad_t */
#define QUAD_MAX (LONG_MAX) /* max value for a quad_t */