apr_status_t rc;
piped_log *pl;
int rewritelog_flags = ( APR_WRITE | APR_APPEND | APR_CREATE );
- mode_t rewritelog_mode = ( APR_UREAD | APR_UWRITE | APR_GREAD | APR_WREAD );
+ apr_fileperms_t rewritelog_mode = ( APR_UREAD | APR_UWRITE | APR_GREAD | APR_WREAD );
conf = ap_get_module_config(s->module_config, &rewrite_module);
return c;
}
-static void set_cache_string(cache *c, const char *res, int mode, time_t t,
+static void set_cache_string(cache *c, const char *res, int mode, apr_time_t t,
char *key, char *value)
{
cacheentry ce;
}
static char *get_cache_string(cache *c, const char *res, int mode,
- time_t t, char *key)
+ apr_time_t t, char *key)
{
cacheentry *ce;
#include "ap_config.h"
-#ifdef HAVE_TIME_H
-#include <time.h>
-#endif
-
/* Include from the Apache server ... */
#define CORE_PRIVATE
#include "httpd.h"
* a 4-way hash apr_table_t with LRU functionality
*/
typedef struct cacheentry {
- time_t time;
+ apr_time_t time;
char *key;
char *value;
} cacheentry;
/* caching functions */
static cache *init_cache(apr_pool_t *p);
-static char *get_cache_string(cache *c, const char *res, int mode, time_t mtime,
+static char *get_cache_string(cache *c, const char *res, int mode, apr_time_t mtime,
char *key);
-static void set_cache_string(cache *c, const char *res, int mode, time_t mtime,
+static void set_cache_string(cache *c, const char *res, int mode, apr_time_t mtime,
char *key, char *value);
static cacheentry *retrieve_cache_string(cache *c, const char *res, char *key);
static void store_cache_string(cache *c, const char *res, cacheentry *ce);