59#define APR_ASCII_BLANK '\040'
61#define APR_ASCII_CR '\015'
63#define APR_ASCII_LF '\012'
65#define APR_ASCII_TAB '\011'
71typedef enum { APR_WAIT_READ, APR_WAIT_WRITE } apr_wait_type_t;
82#if defined(CRAY) || (defined(__arm) && !(defined(LINUX) || defined(__FreeBSD__)))
84#define APR_OFFSET(p_type,field) _Offsetof(p_type,field)
87#define APR_OFFSET(p_type,field) \
88 (sizeof(int)*((unsigned int)&(((p_type)NULL)->field)))
92#define APR_OFFSET(p_type,field) ((unsigned int)&(((p_type)NULL)->field))
98#define APR_OFFSET(p_type,field) \
99 ((long) (((char *) (&(((p_type)NULL)->field))) - ((char *) NULL)))
109#if defined(__has_builtin)
110#if __has_builtin(__builtin_offsetof)
111#define APR_OFFSETOF(s_type,field) __builtin_offsetof(s_type,field)
115#if defined(offsetof) && !defined(__cplusplus)
116#define APR_OFFSETOF(s_type,field) offsetof(s_type,field)
118#define APR_OFFSETOF(s_type,field) APR_OFFSET(s_type*,field)
127#if (!APR_HAVE_STRCASECMP) && (APR_HAVE_STRICMP)
128#define strcasecmp(s1, s2) stricmp(s1, s2)
129#elif (!APR_HAVE_STRCASECMP)
130int strcasecmp(
const char *a,
const char *b);
133#if (!APR_HAVE_STRNCASECMP) && (APR_HAVE_STRNICMP)
134#define strncasecmp(s1, s2, n) strnicmp(s1, s2, n)
135#elif (!APR_HAVE_STRNCASECMP)
136int strncasecmp(
const char *a,
const char *b,
size_t n);
146#define APR_ALIGN(size, boundary) \
147 (((size) + ((boundary) - 1)) & ~((boundary) - 1))
150#define APR_ALIGN_DEFAULT(size) APR_ALIGN(size, 8)
160#define APR_STRINGIFY(n) APR_STRINGIFY_HELPER(n)
162#define APR_STRINGIFY_HELPER(n) #n
165#if (!APR_HAVE_MEMMOVE)
166#define memmove(a,b,c) bcopy(b,a,c)
169#if (!APR_HAVE_MEMCHR)
170void *memchr(
const void *s,
int c,
size_t n);
177#define APR_TYPEDEF_STRUCT(type, incompletion) \
212 char const *
const * *argv,
213 char const *
const * *env);
246#if APR_HAS_RANDOM || defined(DOXYGEN)
APR Platform Definitions.
int apr_status_t
Definition apr_errno.h:44
int apr_signum_t
Definition apr_general.h:68
void apr_terminate2(void)
apr_status_t apr_initialize(void)
apr_status_t apr_app_initialize(int *argc, char const *const **argv, char const *const **env)
apr_status_t apr_generate_random_bytes(unsigned char *buf, apr_size_t length)