diff options
author | Sander Striker <striker@apache.org> | 2002-03-19 17:54:00 +0000 |
---|---|---|
committer | Sander Striker <striker@apache.org> | 2002-03-19 17:54:00 +0000 |
commit | bb1aac173c3c44abbcc9cd1daf3a6ee189ef4d95 (patch) | |
tree | c9ea81a0691bf519cd9538f64295fdeb25741497 /threadproc/unix/proc.c | |
parent | 156e757e78a12193ac2257ac415d2bf73c2bb7d7 (diff) | |
download | apr-bb1aac173c3c44abbcc9cd1daf3a6ee189ef4d95.tar.gz apr-bb1aac173c3c44abbcc9cd1daf3a6ee189ef4d95.zip |
Rename all the "cntxt" members of the thread and proc structures to
"pool".
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63158 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/unix/proc.c')
-rw-r--r-- | threadproc/unix/proc.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/threadproc/unix/proc.c b/threadproc/unix/proc.c index aa7c255a5..3c71c4e23 100644 --- a/threadproc/unix/proc.c +++ b/threadproc/unix/proc.c @@ -57,14 +57,14 @@ #include "apr_portable.h" #include "apr_signal.h" -APR_DECLARE(apr_status_t) apr_procattr_create(apr_procattr_t **new, apr_pool_t *cont) +APR_DECLARE(apr_status_t) apr_procattr_create(apr_procattr_t **new, apr_pool_t *pool) { - (*new) = (apr_procattr_t *)apr_pcalloc(cont, sizeof(apr_procattr_t)); + (*new) = (apr_procattr_t *)apr_pcalloc(pool, sizeof(apr_procattr_t)); if ((*new) == NULL) { return APR_ENOMEM; } - (*new)->cntxt = cont; + (*new)->pool = pool; (*new)->cmdtype = APR_PROGRAM; return APR_SUCCESS; } @@ -75,7 +75,7 @@ APR_DECLARE(apr_status_t) apr_procattr_io_set(apr_procattr_t *attr, apr_int32_t apr_status_t status; if (in != 0) { if ((status = apr_file_pipe_create(&attr->child_in, &attr->parent_in, - attr->cntxt)) != APR_SUCCESS) { + attr->pool)) != APR_SUCCESS) { return status; } switch (in) { @@ -94,7 +94,7 @@ APR_DECLARE(apr_status_t) apr_procattr_io_set(apr_procattr_t *attr, apr_int32_t } if (out) { if ((status = apr_file_pipe_create(&attr->parent_out, &attr->child_out, - attr->cntxt)) != APR_SUCCESS) { + attr->pool)) != APR_SUCCESS) { return status; } switch (out) { @@ -113,7 +113,7 @@ APR_DECLARE(apr_status_t) apr_procattr_io_set(apr_procattr_t *attr, apr_int32_t } if (err) { if ((status = apr_file_pipe_create(&attr->parent_err, &attr->child_err, - attr->cntxt)) != APR_SUCCESS) { + attr->pool)) != APR_SUCCESS) { return status; } switch (err) { @@ -138,13 +138,13 @@ APR_DECLARE(apr_status_t) apr_procattr_child_in_set(apr_procattr_t *attr, apr_fi apr_file_t *parent_in) { if (attr->child_in == NULL && attr->parent_in == NULL) - apr_file_pipe_create(&attr->child_in, &attr->parent_in, attr->cntxt); + apr_file_pipe_create(&attr->child_in, &attr->parent_in, attr->pool); if (child_in != NULL) - apr_file_dup2(attr->child_in, child_in, attr->cntxt); + apr_file_dup2(attr->child_in, child_in, attr->pool); if (parent_in != NULL) - apr_file_dup2(attr->parent_in, parent_in, attr->cntxt); + apr_file_dup2(attr->parent_in, parent_in, attr->pool); return APR_SUCCESS; } @@ -154,13 +154,13 @@ APR_DECLARE(apr_status_t) apr_procattr_child_out_set(apr_procattr_t *attr, apr_f apr_file_t *parent_out) { if (attr->child_out == NULL && attr->parent_out == NULL) - apr_file_pipe_create(&attr->child_out, &attr->parent_out, attr->cntxt); + apr_file_pipe_create(&attr->child_out, &attr->parent_out, attr->pool); if (child_out != NULL) - apr_file_dup2(attr->child_out, child_out, attr->cntxt); + apr_file_dup2(attr->child_out, child_out, attr->pool); if (parent_out != NULL) - apr_file_dup2(attr->parent_out, parent_out, attr->cntxt); + apr_file_dup2(attr->parent_out, parent_out, attr->pool); return APR_SUCCESS; } @@ -170,13 +170,13 @@ APR_DECLARE(apr_status_t) apr_procattr_child_err_set(apr_procattr_t *attr, apr_f apr_file_t *parent_err) { if (attr->child_err == NULL && attr->parent_err == NULL) - apr_file_pipe_create(&attr->child_err, &attr->parent_err, attr->cntxt); + apr_file_pipe_create(&attr->child_err, &attr->parent_err, attr->pool); if (child_err != NULL) - apr_file_dup2(attr->child_err, child_err, attr->cntxt); + apr_file_dup2(attr->child_err, child_err, attr->pool); if (parent_err != NULL) - apr_file_dup2(attr->parent_err, parent_err, attr->cntxt); + apr_file_dup2(attr->parent_err, parent_err, attr->pool); return APR_SUCCESS; } @@ -185,7 +185,7 @@ APR_DECLARE(apr_status_t) apr_procattr_child_err_set(apr_procattr_t *attr, apr_f APR_DECLARE(apr_status_t) apr_procattr_dir_set(apr_procattr_t *attr, const char *dir) { - attr->currdir = apr_pstrdup(attr->cntxt, dir); + attr->currdir = apr_pstrdup(attr->pool, dir); if (attr->currdir) { return APR_SUCCESS; } @@ -206,7 +206,7 @@ APR_DECLARE(apr_status_t) apr_procattr_detach_set(apr_procattr_t *attr, return APR_SUCCESS; } -APR_DECLARE(apr_status_t) apr_proc_fork(apr_proc_t *proc, apr_pool_t *cont) +APR_DECLARE(apr_status_t) apr_proc_fork(apr_proc_t *proc, apr_pool_t *pool) { int pid; @@ -275,7 +275,7 @@ static apr_status_t limit_proc(apr_procattr_t *attr) APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *new, const char *progname, const char * const *args, const char * const *env, - apr_procattr_t *attr, apr_pool_t *cont) + apr_procattr_t *attr, apr_pool_t *pool) { int i; const char **newargs; @@ -352,7 +352,7 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *new, const char *progname, i++; } newargs = - (const char **) apr_palloc(cont, sizeof (char *) * (i + 3)); + (const char **) apr_palloc(pool, sizeof (char *) * (i + 3)); newargs[0] = SHELL_PATH; newargs[1] = "-c"; i = 0; |