Add OFF_T_MAX/OFF_T_MIN

This commit is contained in:
Andrey A. Chernov 2001-08-15 19:12:46 +00:00
parent 0a4b345e9f
commit 527b997c3d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81718
4 changed files with 12 additions and 0 deletions

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */