Add OFF_T_MAX/OFF_T_MIN

This commit is contained in:
ache 2001-08-15 19:12:46 +00:00
parent 58e682ad4c
commit fcd71f8ad5
4 changed files with 12 additions and 0 deletions

View File

@ -82,6 +82,9 @@
#if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE) #if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
#define SIZE_T_MAX ULONG_MAX /* max value for a size_t */ #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. */ /* 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 UQUAD_MAX (ULONG_MAX) /* max value for a uquad_t */
#define QUAD_MAX (LONG_MAX) /* max value for a quad_t */ #define QUAD_MAX (LONG_MAX) /* max value for a quad_t */

View File

@ -82,6 +82,9 @@
#if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE) #if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
#define SIZE_T_MAX ULONG_MAX /* max value for a size_t */ #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. */ /* 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 UQUAD_MAX (ULONG_MAX) /* max value for a uquad_t */
#define QUAD_MAX (LONG_MAX) /* max value for a quad_t */ #define QUAD_MAX (LONG_MAX) /* max value for a quad_t */

View File

@ -93,6 +93,9 @@
#if !defined(_POSIX_SOURCE) #if !defined(_POSIX_SOURCE)
#define SIZE_T_MAX UINT_MAX /* max value for a size_t */ #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. */ /* 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 UQUAD_MAX ULLONG_MAX /* max value for a uquad_t */
#define QUAD_MAX LLONG_MAX /* max value for a quad_t */ #define QUAD_MAX LLONG_MAX /* max value for a quad_t */

View File

@ -93,6 +93,9 @@
#if !defined(_POSIX_SOURCE) #if !defined(_POSIX_SOURCE)
#define SIZE_T_MAX UINT_MAX /* max value for a size_t */ #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. */ /* 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 UQUAD_MAX ULLONG_MAX /* max value for a uquad_t */
#define QUAD_MAX LLONG_MAX /* max value for a quad_t */ #define QUAD_MAX LLONG_MAX /* max value for a quad_t */