summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-07-25 11:32:21 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-07-25 11:32:21 +0000
commit2f607a7a619756469ae9a60b6d90b3e01706222e (patch)
tree45f0c8cb7af02304be9d949550e0eda6aea7b3bc
parent077e6f41eac8f22c926e7b4878b02722e95ff47b (diff)
forgot these ...
-rw-r--r--usr.bin/cvs/repo.h91
-rw-r--r--usr.bin/cvs/strtab.h20
-rw-r--r--usr.bin/cvs/zlib.h12
3 files changed, 61 insertions, 62 deletions
diff --git a/usr.bin/cvs/repo.h b/usr.bin/cvs/repo.h
index a641097ea6d..112987daf97 100644
--- a/usr.bin/cvs/repo.h
+++ b/usr.bin/cvs/repo.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: repo.h,v 1.1 2005/02/16 15:41:15 jfb Exp $ */
+/* $OpenBSD: repo.h,v 1.2 2005/07/25 11:32:20 xsa Exp $ */
/*
* Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -31,21 +31,21 @@
#include <sys/queue.h>
-#define CVS_MODULE_ISALIAS 0x01
+#define CVS_MODULE_ISALIAS 0x01
typedef struct cvs_module {
- char *cm_name;
- int cm_flags;
- char *cm_path; /* subpath for aliases, NULL otherwise */
+ char *cm_name;
+ int cm_flags;
+ char *cm_path; /* subpath for aliases, NULL otherwise */
- TAILQ_ENTRY(cvs_module) cm_link;
+ TAILQ_ENTRY(cvs_module) cm_link;
} CVSMODULE;
-#define CVS_RPENT_UNKNOWN 0
-#define CVS_RPENT_DIR 1
-#define CVS_RPENT_RCSFILE 2
+#define CVS_RPENT_UNKNOWN 0
+#define CVS_RPENT_DIR 1
+#define CVS_RPENT_RCSFILE 2
typedef struct cvs_repoent CVSRPENT;
@@ -85,72 +85,71 @@ typedef struct cvs_repoent CVSRPENT;
* process to lock those subdirectories as well.
*/
-#define CVS_LOCK_READ 1
-#define CVS_LOCK_WRITE 2
+#define CVS_LOCK_READ 1
+#define CVS_LOCK_WRITE 2
struct cvs_lock {
- pid_t lk_owner;
- int lk_type;
- CVSRPENT *lk_ent; /* backpointer to the entry */
+ pid_t lk_owner;
+ int lk_type;
+ CVSRPENT *lk_ent; /* backpointer to the entry */
- TAILQ_ENTRY(cvs_lock) lk_link;
- TAILQ_ENTRY(cvs_lock) lk_chlink;
+ TAILQ_ENTRY(cvs_lock) lk_link;
+ TAILQ_ENTRY(cvs_lock) lk_chlink;
};
TAILQ_HEAD(cvs_lklist, cvs_lock);
struct cvs_repoent {
- char *cr_name;
- int cr_type;
- CVSRPENT *cr_parent;
+ char *cr_name;
+ int cr_type;
+ CVSRPENT *cr_parent;
union {
- TAILQ_HEAD(, cvs_repoent) files;
+ TAILQ_HEAD(, cvs_repoent) files;
} cr_data;
- struct cvs_lock *cr_wlock; /* write lock, NULL if none */
- struct cvs_lklist cr_rlocks; /* read locks */
- struct cvs_lklist cr_lkreq; /* pending lock requests */
+ struct cvs_lock *cr_wlock; /* write lock, NULL if none */
+ struct cvs_lklist cr_rlocks; /* read locks */
+ struct cvs_lklist cr_lkreq; /* pending lock requests */
- TAILQ_ENTRY(cvs_repoent) cr_link;
+ TAILQ_ENTRY(cvs_repoent) cr_link;
};
-#define cr_files cr_data.files
+#define cr_files cr_data.files
-#define CVS_REPO_LOCKED 0x01
-#define CVS_REPO_READONLY 0x02
-#define CVS_REPO_CHKPERM 0x04
+#define CVS_REPO_LOCKED 0x01
+#define CVS_REPO_READONLY 0x02
+#define CVS_REPO_CHKPERM 0x04
TAILQ_HEAD(cvs_modlist, cvs_module);
typedef struct cvs_repo {
- char *cr_path;
- int cr_flags;
- CVSRPENT *cr_tree;
+ char *cr_path;
+ int cr_flags;
+ CVSRPENT *cr_tree;
- struct cvs_modlist cr_modules;
- TAILQ_ENTRY(cvs_repo) cr_link;
+ struct cvs_modlist cr_modules;
+ TAILQ_ENTRY(cvs_repo) cr_link;
} CVSREPO;
-CVSREPO* cvs_repo_load (const char *, int);
-void cvs_repo_free (CVSREPO *);
-int cvs_repo_alias (CVSREPO *, const char *, const char *);
-int cvs_repo_unalias (CVSREPO *, const char *);
-int cvs_repo_lockdir (CVSREPO *, const char *, int, pid_t);
-int cvs_repo_unlockdir (CVSREPO *, const char *, pid_t);
-int cvs_repo_lockent (CVSRPENT *, int, pid_t);
-int cvs_repo_unlockent (CVSRPENT *, pid_t);
-void cvs_repo_entfree (CVSRPENT *);
-void cvs_repo_modfree (CVSMODULE *);
+CVSREPO *cvs_repo_load(const char *, int);
+void cvs_repo_free(CVSREPO *);
+int cvs_repo_alias(CVSREPO *, const char *, const char *);
+int cvs_repo_unalias(CVSREPO *, const char *);
+int cvs_repo_lockdir(CVSREPO *, const char *, int, pid_t);
+int cvs_repo_unlockdir(CVSREPO *, const char *, pid_t);
+int cvs_repo_lockent(CVSRPENT *, int, pid_t);
+int cvs_repo_unlockent(CVSRPENT *, pid_t);
+void cvs_repo_entfree(CVSRPENT *);
+void cvs_repo_modfreeCVSMODULE *);
-CVSRPENT* cvs_repo_find (CVSREPO *, const char *);
+CVSRPENT *cvs_repo_find(CVSREPO *, const char *);
-
-#endif /* REPO_H */
+#endif /* REPO_H */
diff --git a/usr.bin/cvs/strtab.h b/usr.bin/cvs/strtab.h
index 1a923f6c396..c726c3bcabf 100644
--- a/usr.bin/cvs/strtab.h
+++ b/usr.bin/cvs/strtab.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: strtab.h,v 1.2 2005/03/24 03:11:03 jfb Exp $ */
+/* $OpenBSD: strtab.h,v 1.3 2005/07/25 11:32:20 xsa Exp $ */
/*
* Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -27,14 +27,14 @@
#ifndef STRTAB_H
#define STRTAB_H
-#define CVS_STRTAB_HASHBITS 8
-#define CVS_STRTAB_NBUCKETS (1 << CVS_STRTAB_HASHBITS)
-#define CVS_STRTAB_FNVPRIME 0x01000193
-#define CVS_STRTAB_FNVINIT 0x811c9dc5
+#define CVS_STRTAB_HASHBITS 8
+#define CVS_STRTAB_NBUCKETS (1 << CVS_STRTAB_HASHBITS)
+#define CVS_STRTAB_FNVPRIME 0x01000193
+#define CVS_STRTAB_FNVINIT 0x811c9dc5
-void cvs_strtab_init (void);
-void cvs_strtab_cleanup (void);
-char* cvs_strdup (const char *);
-void cvs_strfree (const char *);
+void cvs_strtab_init(void);
+void cvs_strtab_cleanup(void);
+char *cvs_strdup(const char *);
+void cvs_strfree(const char *);
-#endif /* STRTAB_H */
+#endif /* STRTAB_H */
diff --git a/usr.bin/cvs/zlib.h b/usr.bin/cvs/zlib.h
index b255aad8401..11536f9df40 100644
--- a/usr.bin/cvs/zlib.h
+++ b/usr.bin/cvs/zlib.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: zlib.h,v 1.1 2005/01/13 18:59:03 jfb Exp $ */
+/* $OpenBSD: zlib.h,v 1.2 2005/07/25 11:32:20 xsa Exp $ */
/*
* Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -36,9 +36,9 @@
typedef struct cvs_zlib_ctx CVSZCTX;
-CVSZCTX* cvs_zlib_newctx (int);
-void cvs_zlib_free (CVSZCTX *);
-int cvs_zlib_deflate (CVSZCTX *, BUF *, u_char *, size_t);
-int cvs_zlib_inflate (CVSZCTX *, BUF *, u_char *, size_t);
+CVSZCTX *cvs_zlib_newctx(int);
+void cvs_zlib_free(CVSZCTX *);
+int cvs_zlib_deflate(CVSZCTX *, BUF *, u_char *, size_t);
+int cvs_zlib_inflate(CVSZCTX *, BUF *, u_char *, size_t);
-#endif /* CVSZLIB_H */
+#endif /* CVSZLIB_H */