|
Apache HTTPD
|
Functions | |
| APR_DECLARE_NONSTD (apr_status_t) apr_pool_cleanup_null(void *data) | |
Variables | |
| const void * | data |
| const void apr_status_t(* | plain_cleanup )(void *) |
| const void apr_status_t(*) apr_status_t(* | child_cleanup )(void *)) __attribute__((nonnull(3 |
| const void apr_status_t(*) apr_status_t(* | APR_DECLARE )(void) apr_pool_pre_cleanup_register(apr_pool_t *p |
Cleanups are performed in the reverse order they were registered. That is: Last In, First Out. A cleanup function can safely allocate memory from the pool that is being cleaned up. It can also safely register additional cleanups which will be run LIFO, directly after the current cleanup terminates. Cleanups have to take caution in calling functions that create subpools. Subpools, created during cleanup will NOT automatically be cleaned up. In other words, cleanups are to clean up after themselves.
| APR_DECLARE_NONSTD | ( | int | ) |
An empty cleanup function.
Passed to apr_pool_cleanup_register() when no cleanup is required.
| data | The data to cleanup, will not be used by this function. |
Write a string to a file using a printf format.
| fptr | The file to write to. |
| format | The format string |
| ... | The values to substitute in the format string |
snprintf routine based on apr_vformatter. This means it understands the same extensions.
| buf | The buffer to write to |
| len | The size of the buffer |
| format | The format string |
| ... | The arguments to use to fill out the format string. |
Iterate over a table running the provided function once for every element in the table. The varargs array must be a list of zero or more (char *) keys followed by a NULL pointer. If zero keys are given, the comp function will be invoked for every element in the table. Otherwise, the function is invoked only for those elements matching the keys specified.
If an invocation of the comp function returns zero, iteration will continue using the next specified key, if any.
| comp | The function to run |
| rec | The data to pass as the first argument to the function |
| t | The table to iterate over |
| ... | A varargs array of zero or more (char *) keys followed by NULL |
Definition at line 353 of file readwrite.c.
| APR_DECLARE | ( | void | ) |
Register a function to be called when a pool is cleared or destroyed.
Unlike apr_pool_cleanup_register which registers a cleanup that is called AFTER all subpools are destroyed, this function registers a function that will be called before any of the subpools are destroyed.
| p | The pool to register the cleanup with |
| data | The data to pass to the cleanup function. |
| plain_cleanup | The function to call when the pool is cleared or destroyed |
Run the specified cleanup function immediately and unregister it.
The cleanup most recently registered with p having the same values of data and cleanup will be removed and cleanup will be called with data as the argument.
| p | The pool to remove the cleanup from |
| data | The data to remove from cleanup |
| cleanup | The function to remove from cleanup |
Tear down all of the internal structures required to use pools
Clear all memory in the pool and run all the cleanups. This also destroys all subpools.
| p | The pool to clear |
Debug version of apr_pool_clear.
| p | See: apr_pool_clear. |
| file_line | Where the function is called from. This is usually APR_POOL__FILE_LINE__. |
Destroy the pool. This takes similar action as apr_pool_clear() and then frees all the memory.
| p | The pool to destroy |
Debug version of apr_pool_destroy.
| p | See: apr_pool_destroy. |
| file_line | Where the function is called from. This is usually APR_POOL__FILE_LINE__. |
Set the function to be called when an allocation failure occurs.
Tag a pool (give it a name)
| pool | The pool to tag |
| tag | The tag |
Register a function to be called when a pool is cleared or destroyed
| p | The pool to register the cleanup with |
| data | The data to pass to the cleanup function. |
| plain_cleanup | The function to call when the pool is cleared or destroyed |
| child_cleanup | The function to call when a child process is about to exec - this function is called in the child, obviously! |
Remove a previously registered cleanup function.
The cleanup most recently registered with p having the same values of data and cleanup will be removed.
| p | The pool to remove the cleanup from |
| data | The data of the registered cleanup |
| cleanup | The function to remove from cleanup |
Replace the child cleanup function of a previously registered cleanup.
The cleanup most recently registered with p having the same values of data and plain_cleanup will have the registered child cleanup function replaced with child_cleanup.
| p | The pool of the registered cleanup |
| data | The data of the registered cleanup |
| plain_cleanup | The plain cleanup function of the registered cleanup |
| child_cleanup | The function to register as the child cleanup |
Run all registered child cleanups, in preparation for an exec() call in a forked child – close files, etc., but don't flush I/O buffers, don't wait for subprocesses, and don't free any memory.
An APR internal function for fast ucs-2 wide Unicode format conversion to the utf-8 octet-encoded Unicode. This function is used for filename and other resource conversions for platforms providing native Unicode support.
@tip Only the errors APR_EINVAL and APR_INCOMPLETE may occur, the former when the character code is invalid (in or out of context) and the later when more words were expected, but insufficient words remain.
< 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
<
Definition at line 646 of file apr_pools.h.
| const void apr_status_t(*) apr_status_t(* child_cleanup) (void *)) __attribute__((nonnull(3 | ( | void * | ) |
Definition at line 631 of file apr_pools.h.
| const void * data |
Definition at line 629 of file apr_pools.h.
| const void apr_status_t(* plain_cleanup)(void *) | ( | void * | ) |
Definition at line 630 of file apr_pools.h.