summaryrefslogtreecommitdiffstats
path: root/contrib/cvs/src/fileattr.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-01-26 03:09:57 +0000
committerpeter <peter@FreeBSD.org>1998-01-26 03:09:57 +0000
commite6e45661e44f15cb8c5c6f063080509bd910b98d (patch)
treea9812ba7ade0fde6f62c1626b45d522ba104c314 /contrib/cvs/src/fileattr.h
parent571cfa0005d94d99d1341bf8ab02be04d4df5f9f (diff)
downloadFreeBSD-src-e6e45661e44f15cb8c5c6f063080509bd910b98d.zip
FreeBSD-src-e6e45661e44f15cb8c5c6f063080509bd910b98d.tar.gz
Import cvs-1.9.23 as at 19980123. There are a number of really nice
things fixed in here, including the '-ko' vs. -A problem with remote cvs which caused all files with -ko to be resent each time (which is damn painful over a modem, I can tell you). It also found a heap of stray empty directories that should have been pruned with the -P flag to cvs update but were not for some reason. It also has the fully integrated rcs and diff, so no more fork/exec overheads for rcs,ci,patch,diff,etc. This means that it parses the control data in the rcs files only once rather than twice or more. If the 'cvs diff' vs. Index thing is going to be fixed for future patch compatability, this is the place to do it.
Diffstat (limited to 'contrib/cvs/src/fileattr.h')
-rw-r--r--contrib/cvs/src/fileattr.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/cvs/src/fileattr.h b/contrib/cvs/src/fileattr.h
index c6362af..7e02b3a 100644
--- a/contrib/cvs/src/fileattr.h
+++ b/contrib/cvs/src/fileattr.h
@@ -115,6 +115,17 @@ extern char *fileattr_modify PROTO ((char *list, const char *attrname,
extern void fileattr_set PROTO ((const char *filename, const char *attrname,
const char *attrval));
+/* Get all the attributes for file FILENAME. They are returned as malloc'd
+ data in an unspecified format which is guaranteed only to be good for
+ passing to fileattr_setall, or NULL if no attributes. If FILENAME is
+ NULL, get default attributes. */
+extern char *fileattr_getall PROTO ((const char *filename));
+
+/* Set the attributes for file FILENAME to ATTRS, overwriting all previous
+ attributes for that file. ATTRS was obtained from a previous call to
+ fileattr_getall (malloc'd data or NULL). */
+extern void fileattr_setall PROTO ((const char *filename, const char *attrs));
+
/* Set the attributes for file FILENAME in whatever manner is appropriate
for a newly created file. */
extern void fileattr_newfile PROTO ((const char *filename));
OpenPOWER on IntegriCloud