Skip to content

Commit

Permalink
Add APR_OFF_MAX to give the maximum value of apr_off_t.
Browse files Browse the repository at this point in the history
Currently platforms with 32 bit and 64 bit values are supported.


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1917077 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
minfrin committed Apr 17, 2024
1 parent 0b976dc commit 5446c43
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
-*- coding: utf-8 -*-
Changes for APR 2.0.0

*) Add APR_OFF_MAX to give the maximum value of apr_off_t. [Graham
Leggett]

*) Pass details of module loading errors back to the caller through the
apu_err_t structure. [Graham Leggett]

Expand Down
1 change: 1 addition & 0 deletions include/apr.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ typedef apr_int32_t apr_intptr_t;
#endif

#define APR_SIZE_MAX (~((apr_size_t)0))
#define APR_OFF_MAX (sizeof(apr_off_t) == 4 ? APR_INT32_MAX : sizeof(apr_off_t) == 8 ? APR_INT64_MAX :0)


/* Definitions that APR programs need to work properly. */
Expand Down
1 change: 1 addition & 0 deletions include/apr.hnw
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ typedef apr_int32_t apr_intptr_t;
#endif

#define APR_SIZE_MAX (~((apr_size_t)0))
#define APR_OFF_MAX (sizeof(apr_off_t) == 4 ? APR_INT32_MAX : sizeof(apr_off_t) == 8 ? APR_INT64_MAX :0)

/* PROC mutex is a GLOBAL mutex on Netware */
#define APR_PROC_MUTEX_IS_GLOBAL 1
Expand Down
1 change: 1 addition & 0 deletions include/apr.hw
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ typedef apr_int32_t apr_intptr_t;
#endif

#define APR_SIZE_MAX (~((apr_size_t)0))
#define APR_OFF_MAX (sizeof(apr_off_t) == 4 ? APR_INT32_MAX : sizeof(apr_off_t) == 8 ? APR_INT64_MAX :0)

/* Definitions that APR programs need to work properly. */

Expand Down
1 change: 1 addition & 0 deletions include/apr.hwc
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ typedef apr_int32_t apr_intptr_t;
#endif

#define APR_SIZE_MAX (~((apr_size_t)0))
#define APR_OFF_MAX (sizeof(apr_off_t) == 4 ? APR_INT32_MAX : sizeof(apr_off_t) == 8 ? APR_INT64_MAX :0)

/* Definitions that APR programs need to work properly. */

Expand Down

0 comments on commit 5446c43

Please sign in to comment.