Blame modules/md/mod_md_os.h

Packit 90a5c9
/* Licensed to the Apache Software Foundation (ASF) under one or more
Packit 90a5c9
 * contributor license agreements.  See the NOTICE file distributed with
Packit 90a5c9
 * this work for additional information regarding copyright ownership.
Packit 90a5c9
 * The ASF licenses this file to You under the Apache License, Version 2.0
Packit 90a5c9
 * (the "License"); you may not use this file except in compliance with
Packit 90a5c9
 * the License.  You may obtain a copy of the License at
Packit 90a5c9
 *
Packit 90a5c9
 *     http://www.apache.org/licenses/LICENSE-2.0
Packit 90a5c9
 *
Packit 90a5c9
 * Unless required by applicable law or agreed to in writing, software
Packit 90a5c9
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit 90a5c9
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit 90a5c9
 * See the License for the specific language governing permissions and
Packit 90a5c9
 * limitations under the License.
Packit 90a5c9
 */
Packit 90a5c9
Packit 90a5c9
#ifndef mod_md_md_os_h
Packit 90a5c9
#define mod_md_md_os_h
Packit 90a5c9
Packit 90a5c9
/**
Packit 90a5c9
 * Try chown'ing the file/directory. Give id -1 to not change uid/gid.
Packit 90a5c9
 * Will return APR_ENOTIMPL on platforms not supporting this operation.
Packit 90a5c9
 */
Packit 90a5c9
apr_status_t md_try_chown(const char *fname, unsigned int uid, int gid, apr_pool_t *p);
Packit 90a5c9
Packit 90a5c9
/**
Packit 90a5c9
 * Make a file or directory read/write(/searchable) by httpd workers.
Packit 90a5c9
 */
Packit 90a5c9
apr_status_t md_make_worker_accessible(const char *fname, apr_pool_t *p);
Packit 90a5c9
Packit 90a5c9
/**
Packit 90a5c9
 * Trigger a graceful restart of the server. Depending on the architecture, may
Packit 90a5c9
 * return APR_ENOTIMPL.
Packit 90a5c9
 */
Packit 90a5c9
apr_status_t md_server_graceful(apr_pool_t *p, server_rec *s);
Packit 90a5c9
Packit 90a5c9
#endif /* mod_md_md_os_h */