summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/rcs.h
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-05-25 06:42:42 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-05-25 06:42:42 +0000
commit11526ce555d6cda677a05ff6a5afd5c247b3f691 (patch)
treed3249ef165d967c6cf7f5265eb473075946615b3 /usr.bin/cvs/rcs.h
parent26b8543ac1167cd3b354dbba31d299ba9731c06a (diff)
add the RCS_ERR_ERRNO code to indicate that the actual error code is
in errno, fix cvs_errstr() to return the appropriate string, and sprinkle some error setting where appropriate
Diffstat (limited to 'usr.bin/cvs/rcs.h')
-rw-r--r--usr.bin/cvs/rcs.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/cvs/rcs.h b/usr.bin/cvs/rcs.h
index 2934e3c0bc5..0cf3c0cc668 100644
--- a/usr.bin/cvs/rcs.h
+++ b/usr.bin/cvs/rcs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.h,v 1.23 2005/04/20 23:11:30 jfb Exp $ */
+/* $OpenBSD: rcs.h,v 1.24 2005/05/25 06:42:41 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -101,7 +101,7 @@
#define RCS_ERR_BADNUM 3
#define RCS_ERR_BADSYM 4
#define RCS_ERR_PARSE 5
-
+#define RCS_ERR_ERRNO 255
typedef struct rcs_num {
u_int rn_len;
@@ -207,9 +207,14 @@ const char* rcs_comment_get (RCSFILE *);
int rcs_comment_set (RCSFILE *, const char *);
int rcs_kwexp_set (RCSFILE *, int);
int rcs_kwexp_get (RCSFILE *);
+int rcs_rev_add (RCSFILE *, RCSNUM *, const char *);
+int rcs_rev_remove (RCSFILE *, RCSNUM *);
RCSNUM* rcs_tag_resolve (RCSFILE *, const char *);
const char* rcs_errstr (int);
+
+
+
int rcs_kflag_get (const char *);
void rcs_kflag_usage (void);
int rcs_kw_expand (RCSFILE *, u_char *, size_t, size_t *);