return NOT_FOUND;
}
- if (ap_open(&f, r->pool, r->filename, APR_READ | APR_BUFFERED,
- APR_OS_DEFAULT) != APR_SUCCESS) {
+ if (ap_open(&f, r->filename, APR_READ | APR_BUFFERED,
+ APR_OS_DEFAULT, r->pool) != APR_SUCCESS) {
ap_log_rerror(APLOG_MARK, APLOG_ERR, r,
"file permissions deny server access: %s", r->filename);
return FORBIDDEN;
* the file's contents, any HTML header it had won't end up
* where it belongs.
*/
- if (ap_open(&f, r->pool, rr->filename, APR_READ | APR_BUFFERED,
- APR_OS_DEFAULT) == APR_SUCCESS) {
+ if (ap_open(&f, rr->filename, APR_READ | APR_BUFFERED,
+ APR_OS_DEFAULT, r->pool) == APR_SUCCESS) {
emit_preamble(r, title);
emit_amble = 0;
do_emit_plain(r, f);
/*
* If we can open the file, suppress the signature.
*/
- if (ap_open(&f, r->pool, rr->filename, APR_READ | APR_BUFFERED,
- APR_OS_DEFAULT) == APR_SUCCESS) {
+ if (ap_open(&f, rr->filename, APR_READ | APR_BUFFERED,
+ APR_OS_DEFAULT, r->pool) == APR_SUCCESS) {
do_emit_plain(r, f);
ap_close(f);
suppress_sig = 1;
"text/html")
|| !strcmp(r->content_type, INCLUDES_MAGIC_TYPE))
&& !r->content_encoding) {
- if (ap_open(&thefile, r->pool, r->filename, APR_READ | APR_BUFFERED,
- APR_OS_DEFAULT) != APR_SUCCESS) {
+ if (ap_open(&thefile, r->filename, APR_READ | APR_BUFFERED,
+ APR_OS_DEFAULT, r->pool) != APR_SUCCESS) {
return NULL;
}
n = sizeof(char) * (MAX_STRING_LEN - 1);
return METHOD_NOT_ALLOWED;
}
- if (ap_open (&fd, r->pool, r->filename, APR_READ | APR_BINARY, 0) != APR_SUCCESS) {
+ if (ap_open (&fd, r->filename, APR_READ | APR_BINARY, 0, r->pool) != APR_SUCCESS) {
ap_log_rerror(APLOG_MARK, APLOG_ERR, r,
"file permissions deny server access: %s", r->filename);
return FORBIDDEN;
}
else {
const char *fname = ap_server_root_relative(p, cls->fname);
- if (ap_open(&cls->log_fd, p, fname, xfer_flags, xfer_mode) != APR_SUCCESS) {
+ if (ap_open(&cls->log_fd, fname, xfer_flags, xfer_mode, p) != APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_ERR, s,
"could not open transfer log file %s.", fname);
exit(1);
/* We are not using multiviews */
neg->count_multiviews_variants = 0;
- if (ap_open(&map, neg->pool, rr->filename, APR_READ | APR_BUFFERED,
- APR_OS_DEFAULT) != APR_SUCCESS) {
+ if (ap_open(&map, rr->filename, APR_READ | APR_BUFFERED,
+ APR_OS_DEFAULT, neg->pool) != APR_SUCCESS) {
ap_log_rerror(APLOG_MARK, APLOG_ERR, r,
"cannot access type map file: %s", rr->filename);
return HTTP_FORBIDDEN;
else {
fname = ap_server_root_relative(p, s->error_fname);
/* Change to AP funcs. */
- if (ap_open(&s->error_log, p, fname, APR_BUFFERED | APR_APPEND |
- APR_READ | APR_WRITE, APR_OS_DEFAULT) != APR_SUCCESS) {
+ if (ap_open(&s->error_log, fname, APR_BUFFERED | APR_APPEND |
+ APR_READ | APR_WRITE, APR_OS_DEFAULT, p) != APR_SUCCESS) {
perror("fopen");
fprintf(stderr, "%s: could not open error log file %s.\n",
ap_server_argv0, fname);
);
}
- if(ap_open(&pid_file, p, fname, APR_WRITE | APR_BUFFERED, APR_OS_DEFAULT) != APR_SUCCESS) {
+ if(ap_open(&pid_file, fname, APR_WRITE | APR_BUFFERED, APR_OS_DEFAULT, p) != APR_SUCCESS) {
perror("fopen");
fprintf(stderr, "%s: could not log pid to file %s\n",
ap_server_argv0, fname);
unlock_it.l_pid = 0; /* pid not actually interesting */
expand_lock_fname(p);
- ap_open(&tempfile, p, ap_lock_fname, APR_CREATE | APR_WRITE | APR_EXCL,
- APR_UREAD | APR_UWRITE | APR_GREAD | APR_WREAD);
+ ap_open(&tempfile, ap_lock_fname, APR_CREATE | APR_WRITE | APR_EXCL,
+ APR_UREAD | APR_UWRITE | APR_GREAD | APR_WREAD, p);
ap_get_os_file(&lock_fd, tempfile);
if (lock_fd == -1) {
perror("open");
{
ap_file_t *tempfile;
- ap_open(&tempfile, p, ap_lock_fname, APR_WRITE, APR_UREAD|APR_UWRITE);
+ ap_open(&tempfile, ap_lock_fname, APR_WRITE, APR_UREAD|APR_UWRITE, p);
if (!tempfile) {
ap_log_error(APLOG_MARK, APLOG_EMERG, server_conf,
"Child cannot open lock file: %s", ap_lock_fname);
expand_lock_fname(p);
unlink(ap_lock_fname);
- ap_open(&tempfile, p, ap_lock_fname, APR_CREATE|APR_WRITE|APR_EXCL,
- APR_UREAD|APR_UWRITE);
+ ap_open(&tempfile, ap_lock_fname, APR_CREATE|APR_WRITE|APR_EXCL,
+ APR_UREAD|APR_UWRITE, p);
if (!tempfile) {
ap_log_error(APLOG_MARK, APLOG_EMERG, server_conf,
"Parent cannot open lock file: %s", ap_lock_fname);
return NULL;
}
- stat = ap_open(&file, p, name, APR_READ | APR_BUFFERED, APR_OS_DEFAULT);
+ stat = ap_open(&file, name, APR_READ | APR_BUFFERED, APR_OS_DEFAULT, p);
#ifdef DEBUG
saved_errno = errno;
ap_log_error(APLOG_MARK, APLOG_DEBUG | APLOG_NOERRNO, NULL,