summaryrefslogtreecommitdiffstats
path: root/contrib/cvs/src/hardlink.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/cvs/src/hardlink.h')
-rw-r--r--contrib/cvs/src/hardlink.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/contrib/cvs/src/hardlink.h b/contrib/cvs/src/hardlink.h
new file mode 100644
index 0000000..cce3f33
--- /dev/null
+++ b/contrib/cvs/src/hardlink.h
@@ -0,0 +1,33 @@
+/* This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details. */
+
+/* Data type definitions and declarations for hardlink management. */
+
+/* This file should be #included in CVS source files after cvs.h
+ since it relies on types and macros defined there. */
+
+/* The `checked_out' member of a hardlink_info struct is used only
+ when files are being checked out or updated. It is used only when
+ hardlinked files are being checked out. */
+
+struct hardlink_info
+{
+ Ctype status; /* as returned from Classify_File() */
+ int checked_out; /* has this file been checked out lately? */
+ char *links; /* contents of `hardlinks' RCS field */
+};
+
+extern List *hardlist;
+extern char *working_dir;
+
+int cache_hardlinks_proc PROTO ((Node *, void *));
+Node *lookup_file_by_inode PROTO ((const char *));
+void update_hardlink_info PROTO ((const char *));
+char *list_files_linked_to PROTO ((const char *));
OpenPOWER on IntegriCloud