Apache2
apr_arch_inherit.h File Reference
#include "apr_inherit.h"
Include dependency graph for apr_arch_inherit.h:

Go to the source code of this file.

Macros

#define APR_INHERIT   (1 << 24) /* Must not conflict with other bits */
 
#define APR_IMPLEMENT_INHERIT_SET(name, flag, pool, cleanup)
 
#define APR_IMPLEMENT_INHERIT_UNSET(name, flag, pool, cleanup)
 

Macro Definition Documentation

◆ APR_IMPLEMENT_INHERIT_SET

#define APR_IMPLEMENT_INHERIT_SET (   name,
  flag,
  pool,
  cleanup 
)
Value:
APR_DECLARE(apr_status_t) apr_##name##_inherit_set(apr_##name##_t *the##name) \
{ \
if (!SetHandleInformation(the##name->filehand, \
HANDLE_FLAG_INHERIT, \
HANDLE_FLAG_INHERIT)) \
return apr_get_os_error(); \
return APR_SUCCESS; \
}
const char * name
Definition: mod_dav.h:805
#define APR_SUCCESS
Definition: apr_errno.h:225
#define apr_get_os_error()
Definition: apr_errno.h:1231
int apr_status_t
Definition: apr_errno.h:44
#define APR_DECLARE(x)
Definition: macros.h:6

◆ APR_IMPLEMENT_INHERIT_UNSET

#define APR_IMPLEMENT_INHERIT_UNSET (   name,
  flag,
  pool,
  cleanup 
)
Value:
APR_DECLARE(apr_status_t) apr_##name##_inherit_unset(apr_##name##_t *the##name)\
{ \
if (!SetHandleInformation(the##name->filehand, \
HANDLE_FLAG_INHERIT, 0)) \
return apr_get_os_error(); \
return APR_SUCCESS; \
}

◆ APR_INHERIT

#define APR_INHERIT   (1 << 24) /* Must not conflict with other bits */