summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/cvs.h
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-08-13 12:47:55 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-08-13 12:47:55 +0000
commit1005ac4d4afab2b8fea1c137024bafb4a1c5e6f9 (patch)
tree3314abfb2206a31211551256dfca0c5b00ff69a3 /usr.bin/cvs/cvs.h
parentb97b96819946de923c0f3bcc7985696750636ff6 (diff)
Ditch the 'ce_timestamp' field in favor of 'ce_mtime', which keeps
the timestamp in time_t instead of a string
Diffstat (limited to 'usr.bin/cvs/cvs.h')
-rw-r--r--usr.bin/cvs/cvs.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/usr.bin/cvs/cvs.h b/usr.bin/cvs/cvs.h
index f4ea936ccdd..79cf5c0f435 100644
--- a/usr.bin/cvs/cvs.h
+++ b/usr.bin/cvs/cvs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cvs.h,v 1.27 2004/08/13 02:56:37 jfb Exp $ */
+/* $OpenBSD: cvs.h,v 1.28 2004/08/13 12:47:54 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -163,7 +163,8 @@ struct cvsroot {
#define CVS_HIST_TAG 'T'
-#define CVS_ENT_DUMMYTIME "dummy timestamp"
+#define CVS_DATE_DUMMY "dummy timestamp"
+#define CVS_DATE_DMSEC (time_t)-1
#define CVS_ENT_NONE 0
#define CVS_ENT_FILE 1
@@ -180,7 +181,6 @@ struct cvs_ent {
u_int ce_type;
char *ce_name;
RCSNUM *ce_rev;
- char *ce_timestamp;
time_t ce_mtime;
char *ce_opts;
char *ce_tag;
@@ -281,8 +281,12 @@ int cvs_hist_append (CVSHIST *, struct cvs_hent *);
/* from util.c */
+
+#define CVS_DATE_CTIME 0
+#define CVS_DATE_RFC822 1
+
int cvs_readrepo (const char *, char *, size_t);
-time_t cvs_datesec (const char *);
+time_t cvs_datesec (const char *, int, int);
int cvs_modetostr (mode_t, char *, size_t);
int cvs_strtomode (const char *, mode_t *);
int cvs_splitpath (const char *, char *, size_t, char **);