]> granicus.if.org Git - apache/commitdiff
apr-utils rename apr_ansi_time_to_apr_time and
authorIan Holsman <ianh@apache.org>
Wed, 6 Mar 2002 17:55:38 +0000 (17:55 +0000)
committerIan Holsman <ianh@apache.org>
Wed, 6 Mar 2002 17:55:38 +0000 (17:55 +0000)
apr_exploded_time_t.

PR:
Obtained from:
Submitted by: Thom May <thom@planetarytramp.net>
Reviewed by: Ian Holsman

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93733 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
include/util_time.h
modules/dav/fs/repos.c
modules/generators/mod_autoindex.c
modules/loggers/mod_log_config.c
modules/mappers/mod_rewrite.c
modules/metadata/mod_usertrack.c
modules/ssl/ssl_engine_log.c
server/util.c
server/util_time.c
support/rotatelogs.c

diff --git a/CHANGES b/CHANGES
index cdd28bc0589f8172984f4645b2b78fb9b33c7ac3..1f059e7fc97d01534ef2116f66df93d62e6e0dba 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,8 @@
 Changes with Apache 2.0.33-dev
 
+  *) rename apr_exploded_time_t to apr_time_exp_t (as per renames pending)
+     [Thom May <thom@planetarytramp.net>]
+
   *) Change mod_ssl to always do a full startup/teardown on restarts.
      this allows mod_ssl to be added to a server that is already
      running and makes it possible to add/change certs/keys after the
index 704d0e02d556a3a153c286a97ae5615fb2717afb..7117ee6e8b320ae463bc9613ab70598382b3fc8c 100644 (file)
@@ -83,9 +83,8 @@ extern "C" {
  *       that need to explode the current time multiple times per second,
  *       like loggers.
  * @return APR_SUCCESS iff successful
- * @deffunc apr_status_t ap_explode_recent_localtime(apr_exploded_time_t *tm, apr_time_t t);
  */
-AP_DECLARE(apr_status_t) ap_explode_recent_localtime(apr_exploded_time_t *tm,
+AP_DECLARE(apr_status_t) ap_explode_recent_localtime(apr_time_exp_t *tm,
                                                      apr_time_t t);
 
 /**
@@ -98,9 +97,8 @@ AP_DECLARE(apr_status_t) ap_explode_recent_localtime(apr_exploded_time_t *tm,
  *       that need to explode the current time multiple times per second,
  *       like loggers.
  * @return APR_SUCCESS iff successful
- * @deffunc apr_status_t ap_explode_recent_gmt(apr_exploded_time_t *tm, apr_time_t t);
  */
-AP_DECLARE(apr_status_t) ap_explode_recent_gmt(apr_exploded_time_t *tm,
+AP_DECLARE(apr_status_t) ap_explode_recent_gmt(apr_time_exp_t *tm,
                                                apr_time_t t);
 
 
index 190a0481387ece480701d34b43d8b7106a9726a0..9a880de7374492e6e2e8605b01d5e7919b501432 100644 (file)
@@ -303,7 +303,7 @@ dav_error * dav_fs_dir_file_name(
 /* NOTE: buf must be at least DAV_TIMEBUF_SIZE chars in size */
 static void dav_format_time(int style, apr_time_t sec, char *buf)
 {
-    apr_exploded_time_t tms;
+    apr_time_exp_t tms;
     
     /* ### what to do if fails? */
     (void) apr_explode_gmt(&tms, sec);
index 70962b5fa5448a7d457cbb629c50317e31f3577a..3a841509bd9ac0c309908eb0bd5ca38c20a2e679 100644 (file)
@@ -1657,7 +1657,7 @@ static void output_directories(struct ent **ar, int n,
             if (!(autoindex_opts & SUPPRESS_LAST_MOD)) {
                 if (ar[x]->lm != -1) {
                     char time_str[MAX_STRING_LEN];
-                    apr_exploded_time_t ts;
+                    apr_time_exp_t ts;
                     apr_explode_localtime(&ts, ar[x]->lm);
                     apr_strftime(time_str, &rv, MAX_STRING_LEN, 
                                  "</td><td align=\"right\">%d-%b-%Y %H:%M  ", &ts);
@@ -1740,7 +1740,7 @@ static void output_directories(struct ent **ar, int n,
             if (!(autoindex_opts & SUPPRESS_LAST_MOD)) {
                 if (ar[x]->lm != -1) {
                     char time_str[MAX_STRING_LEN];
-                    apr_exploded_time_t ts;
+                    apr_time_exp_t ts;
                     apr_explode_localtime(&ts, ar[x]->lm);
                     apr_strftime(time_str, &rv, MAX_STRING_LEN, 
                                 "%d-%b-%Y %H:%M  ", &ts);
index 71ba616ec887d99fde1e96dc69a61446e07df8a0..6981232901d5cb2d0e605404660289ad9375332f 100644 (file)
@@ -447,7 +447,7 @@ static const char *log_cookie(request_rec *r, char *a)
 }
 
 static const char *log_request_time_custom(request_rec *r, char *a,
-                                           apr_exploded_time_t *xt)
+                                           apr_time_exp_t *xt)
 {
     apr_size_t retcode;
     char tstr[MAX_STRING_LEN];
@@ -457,7 +457,7 @@ static const char *log_request_time_custom(request_rec *r, char *a,
 
 static const char *log_request_time(request_rec *r, char *a)
 {
-    apr_exploded_time_t xt;
+    apr_time_exp_t xt;
 
     /*
        hi.  i think getting the time again at the end of the request
index 8c776c50880942647372618d7e1c0abe3940e46b..281d1404749547b2c57bd2c14f27f977b0ee2e5f 100644 (file)
@@ -3229,7 +3229,7 @@ static void rewritelog(request_rec *r, int level, const char *text, ...)
 
 static char *current_logtime(request_rec *r)
 {
-    apr_exploded_time_t t;
+    apr_time_exp_t t;
     char tstr[80];
     apr_size_t len;
 
@@ -3413,7 +3413,7 @@ static char *lookup_variable(request_rec *r, char *var)
 {
     const char *result;
     char resultbuf[LONG_STRING_LEN];
-    apr_exploded_time_t tm;
+    apr_time_exp_t tm;
     request_rec *rsub;
 
     result = NULL;
index a5aa13ab50eb71816808e2b0e86ac92197050253..56946eb868da35984509c420eac6d0db995961a7 100644 (file)
@@ -155,7 +155,7 @@ static void make_cookie(request_rec *r)
                                   dcfg->cookie_name, cookiebuf);
 
         if ((dcfg->style == CT_UNSET) || (dcfg->style == CT_NETSCAPE)) {
-           apr_exploded_time_t tms;
+           apr_time_exp_t tms;
             apr_explode_gmt(&tms, r->request_time 
                                 + cls->expires * APR_USEC_PER_SEC);
             new_cookie = apr_psprintf(r->pool,
index f367ccb6959b51847e983e668710b403e7881e51..223671782ff9969f931557b33419ca5d9447738f 100644 (file)
@@ -170,7 +170,7 @@ void ssl_log(server_rec *s, int level, const char *msg, ...)
     char str[1024];
     char *nstr;
     apr_size_t len;
-    apr_exploded_time_t t;
+    apr_time_exp_t t;
     va_list ap;
     int add;
     int i;
index 2fe95d1fe727fd3f3ab733f21c901a1faab0b83d..8814d54a071f2fb52e6851fdb01d459b9400ca23 100644 (file)
@@ -142,7 +142,7 @@ AP_DECLARE(char *) ap_ht_time(apr_pool_t *p, apr_time_t t, const char *fmt, int
     apr_size_t retcode;
     char ts[MAX_STRING_LEN];
     char tf[MAX_STRING_LEN];
-    apr_exploded_time_t xt;
+    apr_time_exp_t xt;
 
     if (gmt) {
        const char *f;
index f13b6f2ce8a41e8b2f86070606c8a2c4ad5aeabd..67072c4d86d09b056a27ab52e5af9aec1dd2f575 100644 (file)
@@ -60,7 +60,7 @@
 
 struct exploded_time_cache_element {
     apr_int64_t t;
-    apr_exploded_time_t xt;
+    apr_time_exp_t xt;
     apr_int64_t t_validate; /* please see comments in cached_explode() */
 };
 
@@ -71,7 +71,7 @@ static struct exploded_time_cache_element exploded_cache_localtime[TIME_CACHE_SI
 static struct exploded_time_cache_element exploded_cache_gmt[TIME_CACHE_SIZE];
 
 
-static apr_status_t cached_explode(apr_exploded_time_t *xt, apr_time_t t,
+static apr_status_t cached_explode(apr_time_exp_t *xt, apr_time_t t,
                                    struct exploded_time_cache_element *cache,
                                    int use_gmt)
 {
@@ -86,7 +86,7 @@ static apr_status_t cached_explode(apr_exploded_time_t *xt, apr_time_t t,
      * exploded time for the current second (vs the time
      * 'now - AP_TIME_RECENT_THRESHOLD' seconds ago).  If the
      * cached value is for the current time, we use it.  Otherwise,
-     * we compute the apr_exploded_time_t and store it in this
+     * we compute the apr_time_exp_t and store it in this
      * cache element. Note that the timestamp in the cache
      * element is updated only after the exploded time.  Thus
      * if two threads hit this cache element simultaneously
@@ -139,7 +139,7 @@ static apr_status_t cached_explode(apr_exploded_time_t *xt, apr_time_t t,
         else {
             /* Valid snapshot */
             memcpy(xt, &(cache_element_snapshot.xt),
-                   sizeof(apr_exploded_time_t));
+                   sizeof(apr_time_exp_t));
         }
     }
     else {
@@ -154,7 +154,7 @@ static apr_status_t cached_explode(apr_exploded_time_t *xt, apr_time_t t,
             return r;
         }
         cache_element->t = seconds;
-        memcpy(&(cache_element->xt), xt, sizeof(apr_exploded_time_t));
+        memcpy(&(cache_element->xt), xt, sizeof(apr_time_exp_t));
         cache_element->t_validate = seconds;
     }
     xt->tm_usec = (int)(t % APR_USEC_PER_SEC);
@@ -162,13 +162,13 @@ static apr_status_t cached_explode(apr_exploded_time_t *xt, apr_time_t t,
 }
 
 
-AP_DECLARE(apr_status_t) ap_explode_recent_localtime(apr_exploded_time_t * tm,
+AP_DECLARE(apr_status_t) ap_explode_recent_localtime(apr_time_exp_t * tm,
                                                      apr_time_t t)
 {
     return cached_explode(tm, t, exploded_cache_localtime, 0);
 }
 
-AP_DECLARE(apr_status_t) ap_explode_recent_gmt(apr_exploded_time_t * tm,
+AP_DECLARE(apr_status_t) ap_explode_recent_gmt(apr_time_exp_t * tm,
                                                apr_time_t t)
 {
     return cached_explode(tm, t, exploded_cache_gmt, 1);
index 5c407c301330129033048f73d4ce07494ed9fc67..0fc0026d3fd677b4d71e74c39b4f4f67a468eaa9 100644 (file)
@@ -161,7 +161,7 @@ int main (int argc, char *argv[])
             int tLogStart = (now / tRotation) * tRotation;
             if (use_strftime) {
                apr_time_t tNow = tLogStart * APR_USEC_PER_SEC;
-                apr_exploded_time_t e;
+                apr_time_exp_t e;
                 apr_size_t rs;
 
                 apr_explode_gmt(&e, tNow);