|
Apache HTTPD
|
Modules | |
| Poll options | |
| Pollset Flags | |
Classes | |
| union | apr_descriptor |
| struct | apr_pollfd_t |
Enumerations | |
| enum | apr_pollset_method_e { APR_POLLSET_DEFAULT , APR_POLLSET_SELECT , APR_POLLSET_KQUEUE , APR_POLLSET_PORT , APR_POLLSET_EPOLL , APR_POLLSET_POLL , APR_POLLSET_AIO_MSGQ } |
| enum | apr_datatype_e { APR_NO_DESC , APR_POLL_SOCKET , APR_POLL_FILE , APR_POLL_LASTDESC } |
Functions | |
| APR_DECLARE (apr_status_t) apr_pollset_create(apr_pollset_t **pollset | |
| APR_DECLARE (const char *) apr_pollset_method_name(apr_pollset_t *pollset) | |
| typedef apr_status_t(* apr_pollcb_cb_t) (void *baton, apr_pollfd_t *descriptor) |
Function prototype for pollcb handlers
| baton | Opaque baton passed into apr_pollcb_poll() |
| descriptor | Contains the notification for an active descriptor. The rtnevents member describes which events were triggered for this descriptor. |
Definition at line 401 of file apr_poll.h.
Opaque structure used for pollcb API
Definition at line 317 of file apr_poll.h.
Definition at line 105 of file apr_poll.h.
Opaque structure used for pollset API
Definition at line 123 of file apr_poll.h.
Used in apr_pollfd_t to determine what the apr_descriptor is
| Enumerator | |
|---|---|
| APR_NO_DESC | nothing here |
| APR_POLL_SOCKET | descriptor refers to a socket |
| APR_POLL_FILE | descriptor refers to a file |
| APR_POLL_LASTDESC |
|
Definition at line 91 of file apr_poll.h.
Pollset Methods
Definition at line 80 of file apr_poll.h.
| APR_DECLARE | ( | apr_status_t | ) |
Set up a pollset object
| pollset | The pointer in which to return the newly created object |
| size | The maximum number of descriptors that this pollset can hold |
| p | The pool from which to allocate the pollset |
| flags | Optional flags to modify the operation of the pollset. |
Set up a pollset object
| pollset | The pointer in which to return the newly created object |
| size | The maximum number of descriptors that this pollset can hold |
| p | The pool from which to allocate the pollset |
| flags | Optional flags to modify the operation of the pollset. |
| method | Poll method to use. See apr_pollset_method_e. If this method cannot be used, the default method will be used unless the APR_POLLSET_NODEFAULT flag has been specified. |
Destroy a pollset object
| pollset | The pollset to destroy |
Add a socket or file descriptor to a pollset
| pollset | The pollset to which to add the descriptor |
| descriptor | The descriptor to add |
Remove a descriptor from a pollset
| pollset | The pollset from which to remove the descriptor |
| descriptor | The descriptor to remove |
Block for activity on the descriptor(s) in a pollset
| pollset | The pollset to use |
| timeout | The amount of time in microseconds to wait. This is a maximum, not a minimum. If a descriptor is signalled, the function will return before this time. If timeout is negative, the function will block until a descriptor is signalled or until apr_pollset_wakeup() has been called. |
| num | Number of signalled descriptors (output parameter) |
| descriptors | Array of signalled descriptors (output parameter) |
Interrupt the blocked apr_pollset_poll() call.
| pollset | The pollset to use |
Poll the descriptors in the poll structure
| aprset | The poll structure we will be using. |
| numsock | The number of descriptors we are polling |
| nsds | The number of descriptors signalled (output parameter) |
| timeout | The amount of time in microseconds to wait. This is a maximum, not a minimum. If a descriptor is signalled, the function will return before this time. If timeout is negative, the function will block until a descriptor is signalled or until apr_pollset_wakeup() has been called. |
Set up a pollcb object
| pollcb | The pointer in which to return the newly created object |
| size | The maximum number of descriptors that a single _poll can return. |
| p | The pool from which to allocate the pollcb |
| flags | Optional flags to modify the operation of the pollcb. |
Set up a pollcb object
| pollcb | The pointer in which to return the newly created object |
| size | The maximum number of descriptors that a single _poll can return. |
| p | The pool from which to allocate the pollcb |
| flags | Optional flags to modify the operation of the pollcb. |
| method | Poll method to use. See apr_pollset_method_e. If this method cannot be used, the default method will be used unless the APR_POLLSET_NODEFAULT flag has been specified. |
Add a socket or file descriptor to a pollcb
| pollcb | The pollcb to which to add the descriptor |
| descriptor | The descriptor to add |
Remove a descriptor from a pollcb
| pollcb | The pollcb from which to remove the descriptor |
| descriptor | The descriptor to remove |
Block for activity on the descriptor(s) in a pollcb
| pollcb | The pollcb to use |
| timeout | The amount of time in microseconds to wait. This is a maximum, not a minimum. If a descriptor is signalled, the function will return before this time. If timeout is negative, the function will block until a descriptor is signalled or until apr_pollcb_wakeup() has been called. |
| func | Callback function to call for each active descriptor. |
| baton | Opaque baton passed to the callback function. |
Interrupt the blocked apr_pollcb_poll() call.
| pollcb | The pollcb to use |
< File is read-only
< File is executable
< all protections
< File is read-only
< File is read-only
< Write by user
<
< Write by group
<
< Write by others
<
< Write by user
<
< Write by group
<
< Write by others
<
< File is executable
< File is executable
< Execute by user
<
< Execute by group
<
< Execute by others
<
< Execute by user
<
< Execute by group
<
< Execute by others
<
< Stat the link not the file itself if it is a link
< Stat the link not the file itself if it is a link
< ->name in proper case
< ->name in proper case
< Access Time
< Create the file if not there
< Open the file for reading
< Open the file for writing
< Delete the file after close
< Open should fail if APR_FOPEN_CREATE and file exists.
< Do not register a cleanup when the file is opened. The apr_os_file_t handle in apr_file_t will not be closed when the pool is destroyed.
< Read by user
<
< Write by user
<
< Do not register a cleanup when the file is opened. The apr_os_file_t handle in apr_file_t will not be closed when the pool is destroyed.
< Do not register a cleanup when the file is opened. The apr_os_file_t handle in apr_file_t will not be closed when the pool is destroyed.
< ->name in proper case
< Modification Time
< Access Time
< Creation or inode-changed time
< Type
< Size of the file
< Storage size consumed by the file
< Do not register a cleanup when the file is opened. The apr_os_file_t handle in apr_file_t will not be closed when the pool is destroyed.
< ->name in proper case
< ->name in proper case
< Type
< all protections
< ->name in proper case
< ->name in proper case
< File is read-only
< File is hidden
< File is read-only
< File is read-only
< File is hidden
< File is hidden
< Platform dependent flag to enable * non blocking file io
< Open the file for reading
< Open the file for writing
< Open the file for reading
< Open the file for writing
< Open the file for buffered I/O
< Create the file if not there
< Open should fail if APR_FOPEN_CREATE and file exists.
< Open the file and truncate to 0 length
< Open should fail if APR_FOPEN_CREATE and file exists.
< Create the file if not there
< Open the file and truncate to 0 length
< Append to the end of the file
< Do not register a cleanup when the file is opened. The apr_os_file_t handle in apr_file_t will not be closed when the pool is destroyed.
< Delete the file after close
< Open the file for buffered I/O
< Open the file for writing
< Open the file for writing
< Open the file for reading
< Append to the end of the file
< an atomic unix apr_stat()
< Open the file for writing
< Create the file if not there
< Open the file and truncate to 0 length
< Open the file for writing
< Create the file if not there
< Append to the end of the file
< Do not register a cleanup when the file is opened. The apr_os_file_t handle in apr_file_t will not be closed when the pool is destroyed.
< File is read-only
< File is executable
< all protections
< File is read-only
< File is read-only
< Write by user
<
< Write by group
<
< Write by others
<
< Write by user
<
< Write by group
<
< Write by others
<
< File is executable
< File is executable
< Execute by user
<
< Execute by group
<
< Execute by others
<
< Execute by user
<
< Execute by group
<
< Execute by others
<
< Access Time
< Stat the link not the file itself if it is a link
< Stat the link not the file itself if it is a link
< Stat the link not the file itself if it is a link
< Create the file if not there
< Open the file for reading
< Open the file for writing
< Open should fail if APR_FOPEN_CREATE and file exists.
< Delete the file after close
< Open the file for reading
< Open the file for writing
< Open the file for reading
< Open the file for writing
< Create the file if not there
< Open should fail if APR_FOPEN_CREATE and file exists.
< Open should fail if APR_FOPEN_CREATE and file exists.
< Create the file if not there
< Append to the end of the file
< Open the file and truncate to 0 length
< Platform dependent flag to enable * non blocking file io
< use OS's default permissions
<
< Do not register a cleanup when the file is opened. The apr_os_file_t handle in apr_file_t will not be closed when the pool is destroyed.
< Open the file for buffered I/O
< Do not register a cleanup when the file is opened. The apr_os_file_t handle in apr_file_t will not be closed when the pool is destroyed.
< Do not register a cleanup when the file is opened. The apr_os_file_t handle in apr_file_t will not be closed when the pool is destroyed.
< Open the file for buffered I/O
< Open the file for writing
< Open the file for writing
< Open the file for reading
< Do not register a cleanup when the file is opened. The apr_os_file_t handle in apr_file_t will not be closed when the pool is destroyed.
< Do not register a cleanup when the file is opened. The apr_os_file_t handle in apr_file_t will not be closed when the pool is destroyed.
The problem with trying to output the entire iovec is that we cannot maintain the behaviour that a real writev would have. If we iterate over the iovec one at a time, we lose the atomic properties of writev(). The other option is to combine the entire iovec into one buffer that we could then send in one call to write(). This is not reasonable since we do not know how much data an iovec could contain.
The only reasonable option, that maintains the semantics of a real writev(), is to only write the first iovec. Callers of file_writev() must deal with partial writes as they normally would. If you want to ensure an entire iovec is written, use apr_file_writev_full().
< ->name in proper case
< Do not register a cleanup when the file is opened. The apr_os_file_t handle in apr_file_t will not be closed when the pool is destroyed.
< Size of the file
< Size of the file
< dev and inode
< Number of links
< ->name in proper case
< Type
< Type
< ->name in proper case
< File is read-only
< File is hidden
< File is read-only
< File is read-only
< File is hidden
< File is hidden
< Open the file for reading
< use OS's default permissions
<
< Platform dependent flag to enable * non blocking file io
< Open the file for reading
< Open the file for writing
< Create the file if not there
< Open should fail if APR_FOPEN_CREATE and file exists.
< Open the file and truncate to 0 length
< Open the file and truncate to 0 length
< Open should fail if APR_FOPEN_CREATE and file exists.
< Create the file if not there
< Delete the file after close
< Open the file for reading
< Open the file for writing
< Platform dependent tag to open the file for use across multiple threads
< Append to the end of the file
< Open the file for buffered I/O
< Platform dependent flag to enable * sparse file support, see WARNING below
< Do not register a cleanup when the file is opened. The apr_os_file_t handle in apr_file_t will not be closed when the pool is destroyed.
< Append to the end of the file
< Open the file for buffered I/O
< Open the file for writing
< Open the file for writing
< Open the file for reading
< Platform dependent tag to open the file for use across multiple threads
< Platform dependent tag to open the file for use across multiple threads
< Platform dependent tag to open the file for use across multiple threads
< Platform dependent tag to open the file for use across multiple threads
< Platform dependent tag to open the file for use across multiple threads
< Platform dependent tag to open the file for use across multiple threads
< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".
< Platform dependent tag to open the file for use across multiple threads
< Platform dependent tag to open the file for use across multiple threads
< Platform dependent tag to open the file for use across multiple threads
< Platform dependent tag to open the file for use across multiple threads
< Size of the file
< Platform dependent tag to open the file for use across multiple threads
< Size of the file
Definition at line 74 of file apr_atomic.c.
Return a printable representation of the pollset method.
| pollset | The pollset to use |
Return a printable representation of the default pollset method (APR_POLLSET_DEFAULT).
Return a printable representation of the pollcb method.
| pollcb | The pollcb to use |
Return the name of the lockfile for the mutex, or NULL if the mutex doesn't use a lock file
Get the mechanism's name of the mutex, as it relates to the actual method used for the underlying apr_proc_mutex_t.
| mutex | the mutex to get the mechanism's name from. |
Convert text data to base64, and return the results from a pool.
| p | Pool to allocate from. |
| src | The original string. |
| slen | The length of the original string, or APR_ENCODE_STRING if the actual length should be computed based on NUL termination. |
| flags | If APR_ENCODE_NONE, emit RFC4648 Base 64 Encoding. If APR_ENCODE_NOPADDING, omit the = padding character. If APR_ENCODE_URL, use RFC4648 Base 64 Encoding with URL and Filename Safe Alphabet. If APR_ENCODE_BASE64URL, use RFC7515 base64url Encoding. |
| len | If not NULL, outputs the length of the encoding (excluding the trailing NUL). |
Convert binary data to base64, and return the results from a pool.
| p | Pool to allocate from. |
| src | The original buffer. |
| slen | The length of the original buffer. |
| flags | If APR_ENCODE_NONE, emit RFC4648 Base 64 Encoding. If APR_ENCODE_NOPADDING, omit the = padding character. If APR_ENCODE_URL, use RFC4648 Base 64 Encoding with URL and Filename Safe Alphabet. If APR_ENCODE_BASE64URL, use RFC7515 base64url Encoding. |
| len | If not NULL, outputs the length of the encoding (excluding the trailing NUL). |
Convert base64 or base64url with or without padding to text data, and return the results from a pool.
| p | Pool to allocate from. |
| src | The base64 string to decode. |
| slen | The length of the original string, or APR_ENCODE_STRING if the actual length should be computed based on NUL termination. |
| flags | If APR_ENCODE_NONE, attempt to decode the full original buffer, and return NULL if any bad character is detected. If APR_ENCODE_RELAXED, decode until the first non base64/base64url character. |
| len | If not NULL, outputs the length of the decoding (excluding the trailing NUL). |
Convert text data to base32, and return the results from a pool.
| p | Pool to allocate from. |
| src | The original string. |
| slen | The length of the original string, or APR_ENCODE_STRING if the actual length should be computed based on NUL termination. |
| flags | If APR_ENCODE_NONE, emit RFC4648 Base 32 Encoding. If APR_ENCODE_NOPADDING, omit the = padding character. If APR_ENCODE_BASE32HEX, use RFC4648 base32hex Encoding. |
| len | If not NULL, outputs the length of the encoding (excluding the trailing NUL). |
Convert binary data to base32, and return the results from a pool.
| p | Pool to allocate from. |
| src | The original buffer. |
| slen | The length of the original buffer. |
| flags | If APR_ENCODE_NONE, emit RFC4648 Base 32 Encoding. If APR_ENCODE_NOPADDING, omit the = padding character. If APR_ENCODE_BASE32HEX, use RFC4648 base32hex Encoding. |
| len | If not NULL, outputs the length of the encoding (excluding the trailing NUL). |
Convert base32 or base32hex with or without padding to text data, and return the results from a pool.
| p | Pool to allocate from. |
| src | The base32 string to decode. |
| slen | The length of the original string, or APR_ENCODE_STRING if the actual length should be computed based on NUL termination. |
| flags | If APR_ENCODE_NONE, parse RFC4648 Base 32 Encoding. If APR_ENCODE_BASE32HEX, use RFC4648 base32hex Encoding. |
| len | If not NULL, outputs the length of the encoding (excluding the trailing NUL). |
Convert text data to base16 (hex), and return the results from a pool.
| p | Pool to allocate from. |
| src | The original string. |
| slen | The length of the original string, or APR_ENCODE_STRING if the actual length should be computed based on NUL termination. |
| flags | If APR_ENCODE_NONE, emit RFC4648 Base 16 Encoding. If APR_ENCODE_COLON, separate each token with a colon. |
| len | If not NULL, outputs the length of the encoding (excluding the trailing NUL). |
Convert binary data to base16 (hex), and return the results from a pool.
| p | Pool to allocate from. |
| src | The original buffer. |
| slen | The length of the original buffer. |
| flags | If APR_ENCODE_NONE, emit RFC4648 Base 16 Encoding. If APR_ENCODE_COLON, separate each token with a colon. |
| len | If not NULL, outputs the length of the encoding (excluding the trailing NUL). |
Convert base16 (hex) and return the results from a pool.
| p | Pool to allocate from. |
| src | The base16 string to decode. |
| slen | The length of the original string, or APR_ENCODE_STRING if the actual length should be computed based on NUL termination. |
| flags | If APR_ENCODE_NONE, parse RFC4648 Base 16 Encoding. If APR_ENCODE_COLON, allow tokens to be separated with a colon. |
| len | If not NULL, outputs the length of the encoding (excluding the trailing NUL). |
Perform shell escaping on the provided string, returning the result from the pool.
Shell escaping causes characters to be prefixed with a '\' character.
If no characters were escaped, the original string is returned.
| p | Pool to allocate from |
| str | The original string |
Unescapes a URL, leaving reserved characters intact, returning the result from a pool.
| p | Pool to allocate from |
| url | String to be unescaped in place |
| forbid | Optional list of forbidden characters, in addition to 0x00 |
| reserved | Optional list of reserved characters that will be left unescaped |
| plus | If non zero, '+' is converted to ' ' as per application/x-www-form-urlencoded encoding |
Escape a path segment, as defined in RFC1808, returning the result from a pool.
| p | Pool to allocate from |
| str | String to be escaped |
Converts an OS path to a URL, in an OS dependent way, as defined in RFC1808, returning the result from a pool.
In all cases if a ':' occurs before the first '/' in the URL, the URL should be prefixed with "./" (or the ':' escaped). In the case of Unix, this means leaving '/' alone, but otherwise doing what escape_path_segment() does. For efficiency reasons, we don't use escape_path_segment(), which is provided for reference. Again, RFC 1808 is where this stuff is defined.
If partial is set, os_escape_path() assumes that the path will be appended to something with a '/' in it (and thus does not prefix "./").
| p | Pool to allocate from |
| str | The original string |
| partial | If non zero, suppresses the prepending of "./" |
Urlencode a string, as defined in http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1, returning the result from a pool.
| p | Pool to allocate from |
| str | String to be escaped |
Apply entity encoding to a string, returning the result from a pool. Characters are replaced as follows: '<' becomes '<', '>' becomes '>', '&' becomes '&', the double quote becomes '"" and the single quote becomes '\''. @param p Pool to allocate from @param str The original string @param toasc If non zero, encode non ascii characters @return A string allocated from the pool on success, the original string if no characters are encoded or the string is NULL. Decodes html entities or numeric character references in a string. If the string to be unescaped is syntactically incorrect, then the following fixups will be made: unknown entities will be left undecoded; references to unused numeric characters will be deleted. In particular, � will not be decoded, but will be deleted. @param p Pool to allocate from @param str The original string @return A string allocated from the pool on success, the original string if no characters are encoded or the string is NULL. Escape control characters in a string, as performed by the shell's 'echo' command, and return the results from a pool. Characters are replaced as follows: \\a alert (bell), \\b backspace, \\f form feed, \\n new line, \\r carriage return, \\t horizontal tab, \\v vertical tab, \\ backslash. Any non ascii character will be encoded as '\\xHH', where HH is the hex code of the character. If quote is not zero, the double quote character will also be escaped. @param p Pool to allocate from @param str The original string @param quote If non zero, encode double quotes @return A string allocated from the pool on success, the original string if no characters are encoded or the string is NULL. Convert binary data to a hex encoding, and return the results from a pool. @param p Pool to allocate from @param src The original buffer @param slen The length of the original buffer @param colon If not zero, insert colon characters between hex digits. @return A zero padded buffer allocated from the pool on success, or NULL if src was NULL. Apply LDAP escaping to binary data, and return the results from a pool. Characters from RFC4514 and RFC4515 are escaped with their hex equivalents. @param p Pool to allocate from @param src The original buffer @param slen The length of the original buffer @param flags APR_ESCAPE_LDAP_DN for RFC4514, APR_ESCAPE_LDAP_FILTER for RFC4515, APR_ESCAPE_LDAP_ALL for both @return A zero padded buffer allocated from the pool on success, or NULL if src was NULL. Return the name of the lockfile for the mutex, or NULL if the mutex doesn't use a lock file Get the mechanism's name of the mutex, as it relates to the actual method used for the underlying apr_proc_mutex_t. @param mutex the mutex to get the mechanism's name from. Convert text data to base64, and return the results from a pool. @param p Pool to allocate from. @param src The original string. @param slen The length of the original string, or APR_ENCODE_STRING if the actual length should be computed based on NUL termination. @param flags If APR_ENCODE_NONE, emit RFC4648 Base 64 Encoding. If APR_ENCODE_NOPADDING, omit the = padding character. If APR_ENCODE_URL, use RFC4648 Base 64 Encoding with URL and Filename Safe Alphabet. If APR_ENCODE_BASE64URL, use RFC7515 base64url Encoding. @param len If not NULL, outputs the length of the encoding (excluding the trailing NUL). @return A NUL terminated string allocated from the pool on success, or NULL if src is NULL or allocation failed or the encoding is not possible (see apr_encode_base64 errors). Convert binary data to base64, and return the results from a pool. @param p Pool to allocate from. @param src The original buffer. @param slen The length of the original buffer. @param flags If APR_ENCODE_NONE, emit RFC4648 Base 64 Encoding. If APR_ENCODE_NOPADDING, omit the = padding character. If APR_ENCODE_URL, use RFC4648 Base 64 Encoding with URL and Filename Safe Alphabet. If APR_ENCODE_BASE64URL, use RFC7515 base64url Encoding. @param len If not NULL, outputs the length of the encoding (excluding the trailing NUL). @return A NUL terminated string allocated from the pool on success, or NULL if src is NULL or allocation failed or the encoding is not possible (see apr_encode_base64_binary errors). Convert base64 or base64url with or without padding to text data, and return the results from a pool. @param p Pool to allocate from. @param src The base64 string to decode. @param slen The length of the original string, or APR_ENCODE_STRING if the actual length should be computed based on NUL termination. @param flags If APR_ENCODE_NONE, attempt to decode the full original buffer, and return NULL if any bad character is detected. If APR_ENCODE_RELAXED, decode until the first non base64/base64url character. @param len If not NULL, outputs the length of the decoding (excluding the trailing NUL). @return A NUL terminated string allocated from the pool on success, or NULL if src is NULL or allocation failed or the decoding is not possible (see apr_decode_base64_binary errors). Convert text data to base32, and return the results from a pool. @param p Pool to allocate from. @param src The original string. @param slen The length of the original string, or APR_ENCODE_STRING if the actual length should be computed based on NUL termination. @param flags If APR_ENCODE_NONE, emit RFC4648 Base 32 Encoding. If APR_ENCODE_NOPADDING, omit the = padding character. If APR_ENCODE_BASE32HEX, use RFC4648 base32hex Encoding. @param len If not NULL, outputs the length of the encoding (excluding the trailing NUL). @return A NUL terminated string allocated from the pool on success, or NULL if src is NULL or allocation failed or the encoding is not possible (see apr_encode_base32 errors). Convert binary data to base32, and return the results from a pool. @param p Pool to allocate from. @param src The original buffer. @param slen The length of the original buffer. @param flags If APR_ENCODE_NONE, emit RFC4648 Base 32 Encoding. If APR_ENCODE_NOPADDING, omit the = padding character. If APR_ENCODE_BASE32HEX, use RFC4648 base32hex Encoding. @param len If not NULL, outputs the length of the encoding (excluding the trailing NUL). @return A NUL terminated string allocated from the pool on success, or NULL if src is NULL or allocation failed or the encoding is not possible (see apr_encode_base32_binary errors). Convert base32 or base32hex with or without padding to text data, and return the results from a pool. @param p Pool to allocate from. @param src The base32 string to decode. @param slen The length of the original string, or APR_ENCODE_STRING if the actual length should be computed based on NUL termination. @param flags If APR_ENCODE_NONE, parse RFC4648 Base 32 Encoding. If APR_ENCODE_BASE32HEX, use RFC4648 base32hex Encoding. @param len If not NULL, outputs the length of the encoding (excluding the trailing NUL). @return A NUL terminated string allocated from the pool on success, or NULL if src is NULL or allocation failed or the decoding is not possible (see apr_decode_base32 errors). Convert text data to base16 (hex), and return the results from a pool. @param p Pool to allocate from. @param src The original string. @param slen The length of the original string, or APR_ENCODE_STRING if the actual length should be computed based on NUL termination. @param flags If APR_ENCODE_NONE, emit RFC4648 Base 16 Encoding. If APR_ENCODE_COLON, separate each token with a colon. @param len If not NULL, outputs the length of the encoding (excluding the trailing NUL). @return A NUL terminated string allocated from the pool on success, or NULL if src is NULL or allocation failed or the encoding is not possible (see apr_encode_base16 errors). Convert binary data to base16 (hex), and return the results from a pool. @param p Pool to allocate from. @param src The original buffer. @param slen The length of the original buffer. @param flags If APR_ENCODE_NONE, emit RFC4648 Base 16 Encoding. If APR_ENCODE_COLON, separate each token with a colon. @param len If not NULL, outputs the length of the encoding (excluding the trailing NUL). @return A NUL terminated string allocated from the pool on success, or NULL if src is NULL or allocation failed or the encoding is not possible (see apr_encode_base16_binary errors). Convert base16 (hex) and return the results from a pool. @param p Pool to allocate from. @param src The base16 string to decode. @param slen The length of the original string, or APR_ENCODE_STRING if the actual length should be computed based on NUL termination. @param flags If APR_ENCODE_NONE, parse RFC4648 Base 16 Encoding. If APR_ENCODE_COLON, allow tokens to be separated with a colon. @param len If not NULL, outputs the length of the encoding (excluding the trailing NUL). @return A NUL terminated string allocated from the pool on success, or NULL if src is NULL or allocation failed or the decoding is not possible (see apr_decode_base16 errors). Perform shell escaping on the provided string, returning the result from the pool. Shell escaping causes characters to be prefixed with a '\' character. If no characters were escaped, the original string is returned. @param p Pool to allocate from @param str The original string @return the encoded string, allocated from the pool, or the original string if no escaping took place or the string was NULL. Unescapes a URL, leaving reserved characters intact, returning the result from a pool. @param p Pool to allocate from @param url String to be unescaped in place @param forbid Optional list of forbidden characters, in addition to 0x00 @param reserved Optional list of reserved characters that will be left unescaped @param plus If non zero, '+' is converted to ' ' as per application/x-www-form-urlencoded encoding @return A string allocated from the pool on success, the original string if no characters are decoded, or NULL if a bad escape sequence is found or if a character on the forbid list is found, or if the original string was NULL. Escape a path segment, as defined in RFC1808, returning the result from a pool. @param p Pool to allocate from @param str String to be escaped @return A string allocated from the pool on success, the original string if no characters are encoded or the string is NULL. Converts an OS path to a URL, in an OS dependent way, as defined in RFC1808, returning the result from a pool. In all cases if a ':' occurs before the first '/' in the URL, the URL should be prefixed with "./" (or the ':' escaped). In the case of Unix, this means leaving '/' alone, but otherwise doing what escape_path_segment() does. For efficiency reasons, we don't use escape_path_segment(), which is provided for reference. Again, RFC 1808 is where this stuff is defined. If partial is set, os_escape_path() assumes that the path will be appended to something with a '/' in it (and thus does not prefix "./"). @param p Pool to allocate from @param str The original string @param partial If non zero, suppresses the prepending of "./" @return A string allocated from the pool on success, the original string if no characters are encoded or if the string was NULL. Urlencode a string, as defined in http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1, returning the result from a pool. @param p Pool to allocate from @param str String to be escaped @return A string allocated from the pool on success, the original string if no characters are encoded or if the string was NULL. Apply entity encoding to a string, returning the result from a pool. Characters are replaced as follows: '<' becomes '\<', '>' becomes '\>', '&' becomes '\&', the double quote becomes '\"" and the single quote becomes '''.
| p | Pool to allocate from |
| str | The original string |
| toasc | If non zero, encode non ascii characters |
Decodes html entities or numeric character references in a string. If the string to be unescaped is syntactically incorrect, then the following fixups will be made: unknown entities will be left undecoded; references to unused numeric characters will be deleted. In particular, � will not be decoded, but will be deleted.
| p | Pool to allocate from |
| str | The original string |
Escape control characters in a string, as performed by the shell's 'echo' command, and return the results from a pool. Characters are replaced as follows: \a alert (bell), \b backspace, \f form feed, \n new line, \r carriage return, \t horizontal tab, \v vertical tab, \ backslash.
Any non ascii character will be encoded as '\xHH', where HH is the hex code of the character.
If quote is not zero, the double quote character will also be escaped.
| p | Pool to allocate from |
| str | The original string |
| quote | If non zero, encode double quotes |
Convert binary data to a hex encoding, and return the results from a pool.
| p | Pool to allocate from |
| src | The original buffer |
| slen | The length of the original buffer |
| colon | If not zero, insert colon characters between hex digits. |
Apply LDAP escaping to binary data, and return the results from a pool. Characters from RFC4514 and RFC4515 are escaped with their hex equivalents.
| p | Pool to allocate from |
| src | The original buffer |
| slen | The length of the original buffer |
| flags | APR_ESCAPE_LDAP_DN for RFC4514, APR_ESCAPE_LDAP_FILTER for RFC4515, APR_ESCAPE_LDAP_ALL for both |
| apr_interval_time_t apr_pollcb_cb_t void* baton |
Definition at line 423 of file apr_poll.h.
| apr_pollfd_t * descriptor |
Definition at line 230 of file apr_poll.h.
| apr_interval_time_t apr_int32_t const apr_pollfd_t** descriptors |
Definition at line 274 of file apr_poll.h.
Definition at line 157 of file apr_poll.h.
Definition at line 422 of file apr_poll.h.
Definition at line 195 of file apr_poll.h.
| apr_int32_t apr_int32_t* nsds |
Definition at line 301 of file apr_poll.h.
Definition at line 273 of file apr_poll.h.
| apr_int32_t numsock |
Definition at line 300 of file apr_poll.h.
Definition at line 156 of file apr_poll.h.
| apr_uint32_t size |
Definition at line 155 of file apr_poll.h.
Definition at line 272 of file apr_poll.h.