summaryrefslogtreecommitdiff
path: root/file_io
diff options
context:
space:
mode:
authorrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2000-01-06 19:19:31 +0000
committerrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2000-01-06 19:19:31 +0000
commitc3f770c9020c8ce69a48544dbaaf697067ed12c4 (patch)
tree8aa89107ea9beee714201194db4857488b73e3b7 /file_io
parent40de0d02842272180c1150c04345a2ea30aa7088 (diff)
downloadlibapr-c3f770c9020c8ce69a48544dbaaf697067ed12c4.tar.gz
Next pass at the time functions. This defines an ap_ansi_time_t which has
a specific format (seconds since 0:00:00 Jan 1, 1970). I also renamed the (get|set)_curtime functions to (get|set)ansitime. This should make more sense, and be a bit more intuitive. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59575 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io')
-rw-r--r--file_io/unix/filestat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/file_io/unix/filestat.c b/file_io/unix/filestat.c
index 383622b4a..1a81cad20 100644
--- a/file_io/unix/filestat.c
+++ b/file_io/unix/filestat.c
@@ -75,11 +75,11 @@ ap_status_t ap_getfileinfo(ap_finfo_t *finfo, struct file_t *thefile)
finfo->size = info.st_size;
finfo->inode = info.st_ino;
ap_make_time(&finfo->atime, thefile->cntxt);
- ap_set_curtime(finfo->atime, info.st_atime);
+ ap_set_ansitime(finfo->atime, info.st_atime);
ap_make_time(&finfo->mtime, thefile->cntxt);
- ap_set_curtime(finfo->mtime, info.st_mtime);
+ ap_set_ansitime(finfo->mtime, info.st_mtime);
ap_make_time(&finfo->ctime, thefile->cntxt);
- ap_set_curtime(finfo->ctime, info.st_ctime);
+ ap_set_ansitime(finfo->ctime, info.st_ctime);
return APR_SUCCESS;
}
@@ -108,11 +108,11 @@ ap_status_t ap_stat(ap_finfo_t *finfo, const char *fname, ap_context_t *cont)
finfo->size = info.st_size;
finfo->inode = info.st_ino;
ap_make_time(&finfo->atime, cont);
- ap_set_curtime(finfo->atime, info.st_atime);
+ ap_set_ansitime(finfo->atime, info.st_atime);
ap_make_time(&finfo->mtime, cont);
- ap_set_curtime(finfo->mtime, info.st_mtime);
+ ap_set_ansitime(finfo->mtime, info.st_mtime);
ap_make_time(&finfo->ctime, cont);
- ap_set_curtime(finfo->ctime, info.st_ctime);
+ ap_set_ansitime(finfo->ctime, info.st_ctime);
return APR_SUCCESS;
}
else {