diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2001-08-15 19:12:46 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2001-08-15 19:12:46 +0000 |
| commit | 527b997c3dfd3f2b2cf69b43208752711196c4cc (patch) | |
| tree | 1c05fa6c41e4fd16be9b5b99bc3e33eede062f3e | |
| parent | 0a4b345e9f52ef91eea5c2a105fc63c04957b70b (diff) | |
Notes
| -rw-r--r-- | sys/alpha/include/_limits.h | 3 | ||||
| -rw-r--r-- | sys/alpha/include/limits.h | 3 | ||||
| -rw-r--r-- | sys/i386/include/_limits.h | 3 | ||||
| -rw-r--r-- | sys/i386/include/limits.h | 3 |
4 files changed, 12 insertions, 0 deletions
diff --git a/sys/alpha/include/_limits.h b/sys/alpha/include/_limits.h index 4889bb6fcc0b..8f433c3d74f3 100644 --- a/sys/alpha/include/_limits.h +++ b/sys/alpha/include/_limits.h @@ -82,6 +82,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/alpha/include/limits.h b/sys/alpha/include/limits.h index 4889bb6fcc0b..8f433c3d74f3 100644 --- a/sys/alpha/include/limits.h +++ b/sys/alpha/include/limits.h @@ -82,6 +82,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/i386/include/_limits.h b/sys/i386/include/_limits.h index 4e95956e11df..99030bad2927 100644 --- a/sys/i386/include/_limits.h +++ b/sys/i386/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/i386/include/limits.h b/sys/i386/include/limits.h index 4e95956e11df..99030bad2927 100644 --- a/sys/i386/include/limits.h +++ b/sys/i386/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 */ |
