From: Ryan Bloom Date: Sun, 17 Dec 2000 03:35:39 +0000 (+0000) Subject: Rename the apr_opendir symbol to apr_dir_open. This makes more sense, X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b1be11c2de35155dc19e880b530540b5a9996daa;p=apache Rename the apr_opendir symbol to apr_dir_open. This makes more sense, and the rename was proposed a while ago inside of APR. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87385 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/dav/fs/repos.c b/modules/dav/fs/repos.c index 6030ca5b44..d3f89e7041 100644 --- a/modules/dav/fs/repos.c +++ b/modules/dav/fs/repos.c @@ -1352,7 +1352,7 @@ static dav_error * dav_fs_walker(dav_fs_walker_context *fsctx, int depth) fsctx->res2.collection = 0; /* open and scan the directory */ - if ((apr_opendir(&dirp, fsctx->path1.buf, pool)) != APR_SUCCESS) { + if ((apr_dir_open(&dirp, fsctx->path1.buf, pool)) != APR_SUCCESS) { /* ### need a better error */ return dav_new_error(pool, HTTP_NOT_FOUND, 0, NULL); } diff --git a/modules/generators/mod_autoindex.c b/modules/generators/mod_autoindex.c index e0afbc4f8f..fc53e47ffe 100644 --- a/modules/generators/mod_autoindex.c +++ b/modules/generators/mod_autoindex.c @@ -1551,7 +1551,7 @@ static int index_directory(request_rec *r, char keyid; char direction; - if ((status = apr_opendir(&d, name, r->pool)) != APR_SUCCESS) { + if ((status = apr_dir_open(&d, name, r->pool)) != APR_SUCCESS) { ap_log_rerror(APLOG_MARK, APLOG_ERR, status, r, "Can't open directory for index: %s", r->filename); return HTTP_FORBIDDEN; diff --git a/modules/mappers/mod_negotiation.c b/modules/mappers/mod_negotiation.c index 160fdf0e3e..99525020c5 100644 --- a/modules/mappers/mod_negotiation.c +++ b/modules/mappers/mod_negotiation.c @@ -930,7 +930,7 @@ static int read_types_multi(negotiation_state *neg) ++filp; prefix_len = strlen(filp); - if ((status = apr_opendir(&dirp, neg->dir_name, neg->pool)) != APR_SUCCESS) { + if ((status = apr_dir_open(&dirp, neg->dir_name, neg->pool)) != APR_SUCCESS) { ap_log_rerror(APLOG_MARK, APLOG_ERR, status, r, "cannot read directory for multi: %s", neg->dir_name); return HTTP_FORBIDDEN; diff --git a/modules/mappers/mod_speling.c b/modules/mappers/mod_speling.c index c3468038f5..81f4cee242 100644 --- a/modules/mappers/mod_speling.c +++ b/modules/mappers/mod_speling.c @@ -297,7 +297,7 @@ static int check_speling(request_rec *r) url = apr_pstrndup(r->pool, r->uri, (urlen - pglen)); /* Now open the directory and do ourselves a check... */ - if (apr_opendir(&dir, good, r->pool) != APR_SUCCESS) { + if (apr_dir_open(&dir, good, r->pool) != APR_SUCCESS) { /* Oops, not a directory... */ return DECLINED; } diff --git a/modules/test/mod_autoindex.c b/modules/test/mod_autoindex.c index 793fa19de4..1be1080d81 100644 --- a/modules/test/mod_autoindex.c +++ b/modules/test/mod_autoindex.c @@ -1551,7 +1551,7 @@ static int index_directory(request_rec *r, char keyid; char direction; - if ((status = apr_opendir(&d, name, r->pool)) != APR_SUCCESS) { + if ((status = apr_dir_open(&d, name, r->pool)) != APR_SUCCESS) { ap_log_rerror(APLOG_MARK, APLOG_ERR, status, r, "Can't open directory for index: %s", r->filename); return HTTP_FORBIDDEN; diff --git a/server/config.c b/server/config.c index 2b75b29744..2e3eba3926 100644 --- a/server/config.c +++ b/server/config.c @@ -1381,7 +1381,7 @@ void ap_process_resource_config(server_rec *s, const char *fname, * for this. */ fprintf(stderr, "Processing config directory: %s\n", fname); - if (apr_opendir(&dirp, fname, p) != APR_SUCCESS) { + if (apr_dir_open(&dirp, fname, p) != APR_SUCCESS) { perror("fopen"); fprintf(stderr, "%s: could not open config directory %s\n", ap_server_argv0, fname);