httpd.h revision efd83d1dd1a25688a3093c5a542ae16bacef62dd
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/* Licensed to the Apache Software Foundation (ASF) under one or more
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * contributor license agreements. See the NOTICE file distributed with
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * this work for additional information regarding copyright ownership.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * The ASF licenses this file to You under the Apache License, Version 2.0
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * (the "License"); you may not use this file except in compliance with
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * the License. You may obtain a copy of the License at
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * Unless required by applicable law or agreed to in writing, software
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * distributed under the License is distributed on an "AS IS" BASIS,
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * See the License for the specific language governing permissions and
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * limitations under the License.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * @brief HTTP Daemon routines
9472e4d3c410be3b3f1addbf3b1db1769f64e765nd * @defgroup APACHE Apache
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * Top level group of which all other groups are a member
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * @defgroup APACHE_MODS Apache Modules
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * Top level group for Apache Modules
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * @defgroup APACHE_OS Operating System Specific
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * @defgroup APACHE_CORE Apache Core
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * @defgroup APACHE_CORE_DAEMON HTTP Daemon Routine
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/* XXX - We need to push more stuff to other .h files, or even .c files, to
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * make this file smaller
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/* Headers in which EVERYONE has an interest... */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/* Note: apr_uri.h is also included, see below */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndextern "C" {
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/* ----------------------------- config dir ------------------------------ */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** Define this to be the default server home dir. Most things later in this
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * file with a relative pathname will have this added.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** Set default for OS/2 file system */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** Set default for Windows file system */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** Set the default for NetWare */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** Set for all other OSs */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#endif /* HTTPD_ROOT */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * --------- You shouldn't have to edit anything below this line ----------
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * Any modifications to any defaults not defined above should be done in the
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * respective configuration file.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * Default location of documents. Can be overridden by the DocumentRoot
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * directive.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/* Set default for OS/2 file system */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/* Set default for non OS/2 file system */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#endif /* DOCUMENT_LOCATION */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** Maximum number of dynamically loaded modules */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** Default administrator's address */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** The name of the log files */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#endif /* DEFAULT_ERRORLOG */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** Define this to be what your per-directory security files are called */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/* Set default for OS/2 file system */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#endif /* DEFAULT_ACCESS_FNAME */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** The name of the server config file */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** The default path for CGI scripts if none is currently set */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#define DEFAULT_PATH "/bin:/usr/bin:/usr/ucb:/usr/bsd:/usr/local/bin"
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** The path to the suExec wrapper, can be overridden in Configuration */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** The timeout for waiting for messages */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** The timeout for waiting for keepalive timeout until next request */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** The number of requests to entertain per connection */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * Limits on the size of various request items. These limits primarily
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * exist to prevent simple denial-of-service attacks on a server based
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * on misuse of the protocol. The recommended values will depend on the
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * nature of the server resources -- CGI scripts and database backends
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * might require large values, but most servers could get by with much
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * smaller limits than we use below. The request message body size can
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * be limited by the per-dir config directive LimitRequestBody.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * Internal buffer sizes are two bytes more than the DEFAULT_LIMIT_REQUEST_LINE
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * and DEFAULT_LIMIT_REQUEST_FIELDSIZE below, which explains the 8190.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * These two limits can be lowered or raised by the server config
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * directives LimitRequestLine and LimitRequestFieldsize, respectively.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * DEFAULT_LIMIT_REQUEST_FIELDS can be modified or disabled (set = 0) by
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * the server config directive LimitRequestFields.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** default limit on bytes in Request-Line (Method+URI+HTTP-version) */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** default limit on bytes in any one header field */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** default limit on number of request header fields */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * The default default character set name to add if AddDefaultCharset is
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * enabled. Overridden with AddDefaultCharsetName.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** default HTTP Server protocol */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/* ------------------ stuff that modules are allowed to look at ----------- */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** Define this to be what your HTML directory content files are called */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** The name of the MIME types file */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * Define the HTML doctype strings centrally.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** HTML 2.0 Doctype */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#define DOCTYPE_HTML_2_0 "<!DOCTYPE HTML PUBLIC \"-//IETF//" \
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd "DTD HTML 2.0//EN\">\n"
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** HTML 3.2 Doctype */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#define DOCTYPE_HTML_3_2 "<!DOCTYPE HTML PUBLIC \"-//W3C//" \
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd "DTD HTML 3.2 Final//EN\">\n"
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** HTML 4.0 Strict Doctype */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#define DOCTYPE_HTML_4_0S "<!DOCTYPE HTML PUBLIC \"-//W3C//" \
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd "DTD HTML 4.0//EN\"\n" \
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** HTML 4.0 Transitional Doctype */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#define DOCTYPE_HTML_4_0T "<!DOCTYPE HTML PUBLIC \"-//W3C//" \
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd "DTD HTML 4.0 Transitional//EN\"\n" \
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** HTML 4.0 Frameset Doctype */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#define DOCTYPE_HTML_4_0F "<!DOCTYPE HTML PUBLIC \"-//W3C//" \
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd "DTD HTML 4.0 Frameset//EN\"\n" \
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** XHTML 1.0 Strict Doctype */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#define DOCTYPE_XHTML_1_0S "<!DOCTYPE html PUBLIC \"-//W3C//" \
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd "DTD XHTML 1.0 Strict//EN\"\n" \
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd "xhtml1-strict.dtd\">\n"
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** XHTML 1.0 Transitional Doctype */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#define DOCTYPE_XHTML_1_0T "<!DOCTYPE html PUBLIC \"-//W3C//" \
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd "DTD XHTML 1.0 Transitional//EN\"\n" \
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd "xhtml1-transitional.dtd\">\n"
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** XHTML 1.0 Frameset Doctype */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#define DOCTYPE_XHTML_1_0F "<!DOCTYPE html PUBLIC \"-//W3C//" \
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd "DTD XHTML 1.0 Frameset//EN\"\n" \
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd "xhtml1-frameset.dtd\">"
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** Internal representation for a HTTP protocol number, e.g., HTTP/1.1 */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** Major part of HTTP protocol */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** Minor part of HTTP protocol */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/* -------------- Port number for server running standalone --------------- */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** default HTTP Port */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** default HTTPS Port */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * Check whether @a port is the default port for the request @a r.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * @param port The port number
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * @param r The request
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * @see #ap_default_port
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd#define ap_is_default_port(port,r) ((port) == ap_default_port(r))
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * Get the default port for a request (which depends on the scheme).
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * @param r The request
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * Get the scheme for a request.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * @param r The request
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** The default string length */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** The length of a Huge string */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** The size of the server's internal read-write buffers */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** The max number of regex captures that can be expanded by ap_pregsub */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * APR_HAS_LARGE_FILES introduces the problem of spliting sendfile into
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * mutiple buckets, no greater than MAX(apr_size_t), and more granular
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * than that in case the brigade code/filters attempt to read it directly.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * ### 16mb is an invention, no idea if it is reasonable.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * Special Apache error codes. These are basically used
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * in http_main.c so we can keep track of various errors.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** a normal exit */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** A fatal error arising during the server's init sequence */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd/** The child died during its init sequence */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * The child exited due to a resource shortage.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * The parent should limit the rate of forking until
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * the situation is resolved.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * A fatal error, resulting in the whole server aborting.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * If a child exits with this error, the parent process
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * considers this a server-wide fatal error and aborts.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * Stuff marked #AP_DECLARE is part of the API, and intended for use
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * by modules. Its purpose is to allow us to add attributes that
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * particular platforms or compilers require to every exported function.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * Stuff marked #AP_DECLARE_NONSTD is part of the API, and intended for
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * use by modules. The difference between #AP_DECLARE and
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * #AP_DECLARE_NONSTD is that the latter is required for any functions
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * which use varargs or are used via indirect function call. This
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * is to accomodate the two calling conventions in windows dlls.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * @internal
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * modules should not use functions marked AP_CORE_DECLARE
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * @internal
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * modules should not use functions marked AP_CORE_DECLARE_NONSTD
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * @brief The numeric version information is broken out into fields within this
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * structure.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndtypedef struct {
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd const char *add_string; /**< additional string like "-dev" */
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * Return httpd's version information in a numeric form.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * @param version Pointer to a version structure for returning the version
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * information.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34ndAP_DECLARE(void) ap_get_server_revision(ap_version_t *version);
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * Get the server banner in a form suitable for sending over the
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * network, with the level of information controlled by the
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * ServerTokens directive.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * @return The server banner
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * Get the server description in a form suitable for local displays,
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * status reports, or logging. This includes the detailed server
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * version and information about some modules. It is not affected
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * by the ServerTokens directive.
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * @return The server description
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * Add a component to the server description and banner strings
9472e4d3c410be3b3f1addbf3b1db1769f64e765nd * @param pconf The pool to allocate the component from
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * @param component The string to add
cd7c928b185ceb2b481d1149dd90f0fc40f83da1ndAP_DECLARE(void) ap_add_version_component(apr_pool_t *pconf, const char *component);
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * Get the date a time that the server was built
97a3ecc40b65d5f8e865bbe0b1c9325d8c016e34nd * @return The server build time string
* The size of the static array in http_protocol.c for storing
#define ap_status_drops_connection(x) \
(((x) == HTTP_BAD_REQUEST) || \
((x) == HTTP_REQUEST_TIME_OUT) || \
((x) == HTTP_LENGTH_REQUIRED) || \
((x) == HTTP_REQUEST_ENTITY_TOO_LARGE) || \
((x) == HTTP_REQUEST_URI_TOO_LARGE) || \
((x) == HTTP_INTERNAL_SERVER_ERROR) || \
((x) == HTTP_SERVICE_UNAVAILABLE) || \
((x) == HTTP_NOT_IMPLEMENTED))
* This list must be tracked by the list in http_protocol.c in routine
struct ap_method_list_t {
#if !APR_CHARSET_EBCDIC
#define REQUEST_NO_BODY 0
#define AP_REQ_ACCEPT_PATH_INFO 0
struct htaccess_result {
const char *dir;
int override;
int override_opts;
/* ### would be nice to not include this from httpd.h ... */
#include "apr_uri.h"
struct process_rec {
int argc;
const char * const *argv;
const char *short_name;
struct request_rec {
* (see http_request.h) */
* protocol.c should ever touch...
char *the_request;
int assbackwards;
/** A proxy request (calculated during post_read_request/translate_name)
int proxyreq;
int header_only;
char *protocol;
int proto_num;
const char *hostname;
const char *status_line;
int status;
/* Request method, two ways; also, protocol, etc.. Outside of protocol.c,
const char *method;
int method_number;
int chunked;
const char *range;
int read_body;
int read_chunked;
unsigned expecting_100;
const char *content_encoding;
char *vlist_validator;
char *user;
char *ap_auth_type;
int no_cache;
int no_local_copy;
char *unparsed_uri;
char *uri;
char *filename;
char *canonical_filename;
char *path_info;
char *args;
int used_path_info;
int eos_sent;
struct conn_rec {
/** used by http_vhost.c */
void *vhost_lookup_data;
char *remote_ip;
char *remote_host;
char *remote_logname;
int keepalives;
char *local_ip;
char *local_host;
long id;
void *sbh;
#if APR_HAS_THREADS
} conn_state_e;
struct conn_state_t {
conn_rec *c;
apr_pool_t *p;
struct server_addr_rec {
char *virthost;
struct ap_logconf {
int *module_levels;
int level;
struct server_rec {
const char *defn_name;
unsigned defn_line_number;
char *server_admin;
char *server_hostname;
char *error_fname;
int is_virtual;
int keep_alive_max;
int keep_alive;
const char *path;
int pathlen;
int limit_req_line;
int limit_req_fieldsize;
int limit_req_fields;
const char *server_scheme;
void *context;
typedef struct core_output_filter_ctx {
typedef struct core_filter_ctx {
} core_ctx_t;
typedef struct core_net_rec {
conn_rec *c;
} core_net_rec;
* Examine a field value (such as a media-/content-type) string and return
char stop);
const char *prefix);
int cflags);
* a macro, to avoid unistd.h dependency
const char *delim);
const char *timeout_parameter,
const char *default_time_unit);
* Given the name of an object in the file system determine if it is a directory - this version is symlink aware
#ifdef _OSD_POSIX
#ifdef AP_DEBUG
#ifdef DEBUG_SIGSTOP
extern int raise_sigstop_flags;
#define RAISE_SIGSTOP(x) do { \
#define RAISE_SIGSTOP(x)
#ifdef strtoul
Note that on some platforms (e.g., AIX with gcc, Solaris with gcc), string.h needs
#include <string.h>
#ifdef AP_DEBUG
#ifdef __cplusplus