Apache HTTPD
Classes | Macros | Typedefs | Enumerations | Functions | Variables
apr_thread_proc.h File Reference

APR Thread and Process Library. More...

#include "apr.h"
#include "apr_file_io.h"
#include "apr_pools.h"
#include "apr_errno.h"
#include "apr_perms_set.h"

Go to the source code of this file.

Classes

struct  apr_proc_t
 

Macros

#define APR_PROC_CHECK_EXIT(x)   (x & APR_PROC_EXIT)
 
#define APR_PROC_CHECK_SIGNALED(x)   (x & APR_PROC_SIGNAL)
 
#define APR_PROC_CHECK_CORE_DUMP(x)   (x & APR_PROC_SIGNAL_CORE)
 
#define APR_NO_PIPE   0
 
#define APR_FULL_BLOCK   1
 
#define APR_FULL_NONBLOCK   2
 
#define APR_PARENT_BLOCK   3
 
#define APR_CHILD_BLOCK   4
 
#define APR_NO_FILE   8
 
#define APR_READ_BLOCK   3
 
#define APR_WRITE_BLOCK   4
 
#define APR_NO_FILE   8
 
#define APR_LIMIT_CPU   0
 
#define APR_LIMIT_MEM   1
 
#define APR_LIMIT_NPROC   2
 
#define APR_LIMIT_NOFILE   3
 
#define APR_OC_REASON_DEATH   0
 
#define APR_OC_REASON_UNWRITABLE   1
 
#define APR_OC_REASON_RESTART   2
 
#define APR_OC_REASON_UNREGISTER   3
 
#define APR_OC_REASON_LOST   4
 
#define APR_OC_REASON_RUNNING   5
 
#define APR_PROC_DETACH_FOREGROUND   0
 
#define APR_PROC_DETACH_DAEMONIZE   1
 

Typedefs

typedef struct apr_proc_t apr_proc_t
 
typedef void() apr_child_errfn_t(apr_pool_t *proc, apr_status_t err, const char *description)
 
typedef struct apr_thread_t apr_thread_t
 
typedef struct apr_threadattr_t apr_threadattr_t
 
typedef struct apr_procattr_t apr_procattr_t
 
typedef struct apr_thread_once_t apr_thread_once_t
 
typedef struct apr_threadkey_t apr_threadkey_t
 
typedef struct apr_other_child_rec_t apr_other_child_rec_t
 
typedef void *(APR_THREAD_FUNCapr_thread_start_t) (apr_thread_t *, void *)
 

Enumerations

enum  apr_cmdtype_e {
  APR_SHELLCMD , APR_PROGRAM , APR_PROGRAM_ENV , APR_PROGRAM_PATH ,
  APR_SHELLCMD_ENV
}
 
enum  apr_wait_how_e { APR_WAIT , APR_NOWAIT }
 
enum  apr_exit_why_e { APR_PROC_EXIT = 1 , APR_PROC_SIGNAL = 2 , APR_PROC_SIGNAL_CORE = 4 }
 
enum  apr_kill_conditions_e {
  APR_KILL_NEVER , APR_KILL_ALWAYS , APR_KILL_AFTER_TIMEOUT , APR_JUST_WAIT ,
  APR_KILL_ONLY_ONCE
}
 

Functions

 APR_DECLARE (apr_status_t) apr_procattr_create(apr_procattr_t **new_attr
 
 APR_DECLARE (void) apr_proc_other_child_register(apr_proc_t *proc
 

Variables

apr_pool_tcont
 
apr_int32_t in
 
apr_int32_t apr_int32_t out
 
apr_int32_t apr_int32_t apr_int32_t err
 
apr_file_tchild_in
 
apr_file_t apr_file_tparent_in
 
apr_file_tchild_out
 
apr_file_t apr_file_tparent_out
 
apr_file_tchild_err
 
apr_file_t apr_file_tparent_err
 
const chardir
 
apr_cmdtype_e cmd
 
apr_int32_t detach
 
apr_child_errfn_terrfn
 
apr_int32_t chk
 
apr_int32_t addrspace
 
const charusername
 
const char const charpassword
 
const chargroupname
 
apr_perms_setfn_tperms_set_fn
 
apr_perms_setfn_t void * data
 
apr_perms_setfn_t void apr_fileperms_t perms
 
const charprogname
 
const char const char *constargs
 
const char const char *const const char *constenv
 
const char const char *const const char *const apr_procattr_tattr
 
const char const char *const const char *const apr_procattr_t apr_pool_tpool
 
intexitcode
 
int apr_exit_why_eexitwhy
 
int apr_exit_why_e apr_wait_how_e waithow
 
int apr_exit_why_e apr_wait_how_e apr_pool_tp
 
void(* maintenance )(int reason, void *, int status)
 
void(*) void apr_file_t write_fd )
 
int reason
 
int int status
 
int sig
 
apr_proc_tproc
 
apr_proc_t apr_kill_conditions_e how
 

Detailed Description

APR Thread and Process Library.

Definition in file apr_thread_proc.h.