projects
/
jigit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ed7fa2d
)
Added get_file_mtime()
author
Steve McIntyre
<steve@einval.com>
Thu, 26 May 2005 23:30:59 +0000
(23:30 +0000)
committer
Steve McIntyre
<steve@einval.com>
Thu, 26 May 2005 23:30:59 +0000
(23:30 +0000)
parse_jigdo.c
patch
|
blob
|
history
diff --git
a/parse_jigdo.c
b/parse_jigdo.c
index
10e0d11
..
5f4d416
100644
(file)
--- a/
parse_jigdo.c
+++ b/
parse_jigdo.c
@@
-25,6
+25,18
@@
INT64 get_file_size(char *filename)
return sb.st_size;
}
return sb.st_size;
}
+time_t get_file_mtime(char *filename)
+{
+ struct stat sb;
+ int error = 0;
+
+ error = stat(filename, &sb);
+ if (error)
+ return MISSING;
+ else
+ return sb.st_mtime;
+}
+
md5_list_t *find_file_in_md5_list(unsigned char *base64_md5)
{
md5_list_t *md5_list_entry = G_md5_list_head;
md5_list_t *find_file_in_md5_list(unsigned char *base64_md5)
{
md5_list_t *md5_list_entry = G_md5_list_head;