opnsense-src/contrib/cvs/src/hardlink.h
1998-03-10 13:40:57 +00:00

33 lines
1.3 KiB
C

/* 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 *));