GME  13
Defines
apr_arch_inherit.h File Reference

Go to the source code of this file.

Defines

#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)

Define Documentation

#define APR_IMPLEMENT_INHERIT_SET (   name,
  flag,
  pool,
  cleanup 
)
Value:
APR_DECLARE(apr_status_t) apr_##name##_inherit_set(apr_##name##_t *the##name) \
{                                                                   \
    int rv;                                                         \
    ULONG state;                                                    \
    if (((rv = DosQueryFHState(attr->parent_err->filedes, &state))  \
            != 0) ||                                                \
        ((rv = DosSetFHState(attr->parent_err->filedes,             \
                            state & ~OPEN_FLAGS_NOINHERIT)) != 0))  \
        return APR_FROM_OS_ERROR(rv);                               \
    return APR_SUCCESS;                                             \
}

Definition at line 24 of file os2/apr_arch_inherit.h.

#define APR_IMPLEMENT_INHERIT_UNSET (   name,
  flag,
  pool,
  cleanup 
)
Value:
APR_DECLARE(apr_status_t) apr_##name##_inherit_unset(apr_##name##_t *the##name)\
{                                                                   \
    int rv;                                                         \
    ULONG state;                                                    \
    if (((rv = DosQueryFHState(attr->parent_err->filedes, &state))  \
            != 0) ||                                                \
        ((rv = DosSetFHState(attr->parent_err->filedes,             \
                            state | OPEN_FLAGS_NOINHERIT)) != 0))   \
        return APR_FROM_OS_ERROR(rv);                               \
    return APR_SUCCESS;                                             \
}

Definition at line 37 of file os2/apr_arch_inherit.h.

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

Definition at line 22 of file os2/apr_arch_inherit.h.