util_mutex.c revision f8aafb8bd93472f7da5a7c158958ee09e4176c8e
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* util_mutex.c: Useful functions for determining allowable
* mutexes and mutex settings
*/
#include "apr.h"
#include "apr_strings.h"
#include "apr_lib.h"
#define APR_WANT_STRFUNC
#include "apr_want.h"
#include "ap_config.h"
#include "httpd.h"
#include "http_main.h"
#include "http_config.h"
#include "util_mutex.h"
const char **mutexfile)
{
/* Split arg into meth and file */
if (file) {
*(file++) = '\0';
if (!*file) {
}
}
return APR_ENOLOCK;
}
/* APR determines temporary filename unless overridden below,
* we presume file indicates an mutexfile is a file path
* unless the method sets mutexfile=file and NULLs file
*/
/* NOTE: previously, 'yes' implied 'sem' */
}
}
#endif
}
#endif
* if provided and fall back on APR's default if not. Today, APR
* will ignore it, but once supported it has an absurdly short limit.
*/
if (file) {
}
}
#endif
}
#endif
}
#endif
else {
return APR_ENOTIMPL;
}
/* Unless the method above assumed responsibility for setting up
* mutexfile and NULLing out file, presume it is a file we
* are looking to use
*/
if (file) {
if (!*mutexfile) {
return APR_BADARG;
}
}
return APR_SUCCESS;
}