summaryrefslogtreecommitdiff
path: root/misc/unix/start.c
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2000-04-14 15:58:54 +0000
committerRyan Bloom <rbb@apache.org>2000-04-14 15:58:54 +0000
commitf6be29db115b28bf436f84e67e1ba49e92ab9538 (patch)
treec07dfce5f37b9ffae3b9b7b8b0b435fb98cdc74b /misc/unix/start.c
parent9baccbbbd719982aee0888ca35a3f7b98cc3792a (diff)
downloadapr-f6be29db115b28bf436f84e67e1ba49e92ab9538.tar.gz
Change ap_context_t to ap_pool_t. This compiles, runs, and serves pages
on Linux, but probably breaks somewhere. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59856 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'misc/unix/start.c')
-rw-r--r--misc/unix/start.c22
1 files changed, 9 insertions, 13 deletions
diff --git a/misc/unix/start.c b/misc/unix/start.c
index 18cf26d60..b5c20050e 100644
--- a/misc/unix/start.c
+++ b/misc/unix/start.c
@@ -59,25 +59,21 @@
#include "../../locks/beos/locks.h"
#endif
-ap_status_t ap_create_context(ap_context_t **newcont, ap_context_t *cont)
+ap_status_t ap_create_pool(ap_pool_t **newcont, ap_pool_t *cont)
{
- ap_context_t *new;
- ap_pool_t *pool;
+ ap_pool_t *new;
if (cont) {
- pool = ap_make_sub_pool(cont->pool, cont->apr_abort);
+ new = ap_make_sub_pool(cont, cont->apr_abort);
}
else {
- pool = ap_make_sub_pool(NULL, NULL);
+ new = ap_make_sub_pool(NULL, NULL);
}
- if (pool == NULL) {
+ if (new == NULL) {
return APR_ENOPOOL;
}
- new = (ap_context_t *)ap_palloc(cont, sizeof(ap_context_t));
-
- new->pool = pool;
new->prog_data = NULL;
new->apr_abort = NULL;
@@ -85,7 +81,7 @@ ap_status_t ap_create_context(ap_context_t **newcont, ap_context_t *cont)
return APR_SUCCESS;
}
-ap_status_t ap_destroy_context(ap_context_t *cont)
+ap_status_t ap_destroy_context(ap_pool_t *cont)
{
ap_destroy_pool(cont);
return APR_SUCCESS;
@@ -93,7 +89,7 @@ ap_status_t ap_destroy_context(ap_context_t *cont)
ap_status_t ap_set_userdata(void *data, char *key,
ap_status_t (*cleanup) (void *),
- ap_context_t *cont)
+ ap_pool_t *cont)
{
datastruct *dptr = NULL, *dptr2 = NULL;
if (cont) {
@@ -123,7 +119,7 @@ ap_status_t ap_set_userdata(void *data, char *key,
return APR_ENOCONT;
}
-ap_status_t ap_get_userdata(void **data, char *key, ap_context_t *cont)
+ap_status_t ap_get_userdata(void **data, char *key, ap_pool_t *cont)
{
datastruct *dptr = NULL;
if (cont) {
@@ -160,7 +156,7 @@ void ap_terminate(void)
ap_term_alloc();
}
-ap_status_t ap_set_abort(int (*apr_abort)(int retcode), ap_context_t *cont)
+ap_status_t ap_set_abort(int (*apr_abort)(int retcode), ap_pool_t *cont)
{
if (cont == NULL) {
return APR_ENOCONT;