Apache HTTPD
Functions
mod_md_os.c File Reference
#include <assert.h>
#include <apr_strings.h>
#include <mpm_common.h>
#include <httpd.h>
#include <http_log.h>
#include <ap_mpm.h>
#include "md_util.h"
#include "mod_md_os.h"

Go to the source code of this file.

Functions

apr_status_t md_try_chown (const char *fname, unsigned int uid, int gid, apr_pool_t *p)
 
apr_status_t md_make_worker_accessible (const char *fname, apr_pool_t *p)
 
apr_status_t md_server_graceful (apr_pool_t *p, server_rec *s)
 

Function Documentation

◆ md_make_worker_accessible()

apr_status_t md_make_worker_accessible ( const char fname,
apr_pool_t p 
)

Make a file or directory read/write(/searchable) by httpd workers.

Definition at line 58 of file mod_md_os.c.

◆ md_server_graceful()

apr_status_t md_server_graceful ( apr_pool_t p,
server_rec s 
)

Trigger a graceful restart of the server. Depending on the architecture, may return APR_ENOTIMPL.

Definition at line 76 of file mod_md_os.c.

◆ md_try_chown()

apr_status_t md_try_chown ( const char fname,
unsigned int  uid,
int  gid,
apr_pool_t p 
)

Try chown'ing the file/directory. Give id -1 to not change uid/gid. Will return APR_ENOTIMPL on platforms not supporting this operation.

Definition at line 35 of file mod_md_os.c.