Add OFF_T_MAX/OFF_T_MIN
This commit is contained in:
parent
58e682ad4c
commit
fcd71f8ad5
@ -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 */
|
||||||
|
@ -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 */
|
||||||
|
@ -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 */
|
||||||
|
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user