summaryrefslogtreecommitdiff
path: root/lib/cpio.h
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-08-23 12:39:49 +0000
committerjbj <devnull@localhost>2000-08-23 12:39:49 +0000
commitfca172125bad0b4384499c4bfb80d224ed7bb26e (patch)
tree253e25e344fcb2de0f80f9267e9ee90905cfbe7a /lib/cpio.h
parentd0581d13d46920e263b6dfc30b5035259553ad0d (diff)
downloadrpm-fca172125bad0b4384499c4bfb80d224ed7bb26e.tar.gz
rpm-fca172125bad0b4384499c4bfb80d224ed7bb26e.tar.bz2
rpm-fca172125bad0b4384499c4bfb80d224ed7bb26e.zip
lclint/doxygen additions.
CVS patchset: 4101 CVS date: 2000/08/23 12:39:49
Diffstat (limited to 'lib/cpio.h')
-rw-r--r--lib/cpio.h35
1 files changed, 29 insertions, 6 deletions
diff --git a/lib/cpio.h b/lib/cpio.h
index 2a01b0c28..a10448a53 100644
--- a/lib/cpio.h
+++ b/lib/cpio.h
@@ -93,27 +93,50 @@ typedef void (*cpioCallback) (struct cpioCallbackInfo * filespec, void * data);
* directory unless a mapping is given which specifies an absolute
* directory. The mode mapping is only used for the permission bits, not
* for the file type. The owner/group mappings are ignored for the nonroot
- * user. If *failedFile is non-NULL on return, it should be free()d.
+ * user.
+ *
+ * @param cfd file handle
+ * @param mappings archive info for extraction
+ * @param numMappings number of archive elements
+ * @param cb progress callback
+ * @param cbData progress callback data
+ * @retval failedFile file name (malloc'ed) that caused failure (if any)
+ * @return 0 on success
*/
int cpioInstallArchive(FD_t cfd, const struct cpioFileMapping * mappings,
int numMappings, cpioCallback cb, void * cbData,
- /*@out@*/const char ** failedFile);
+ /*@out@*/const char ** failedFile)
+ /*@modifies fileSystem, cfd, *failedFile @*/;
+
/**
* The RPM internal equivalent of the command line "cpio -o".
+ *
+ * @param cfd file handle
+ * @param mappings archive info for building
+ * @param numMappings number of archive elements
+ * @param cb progress callback
+ * @param cbData progress callback data
+ * @retval failedFile file name (malloc'ed) that caused failure (if any)
+ * @return 0 on success
*/
int cpioBuildArchive(FD_t cfd, const struct cpioFileMapping * mappings,
int numMappings, cpioCallback cb, void * cbData,
- unsigned int * archiveSize, /*@out@*/const char ** failedFile);
+ unsigned int * archiveSize, /*@out@*/const char ** failedFile)
+ /*@modifies fileSystem, cfd, *archiveSize, *failedFile @*/;
/**
- * Compare two cpio file map entries.
+ * Compare two cpio file map entries (qsort/bsearch).
* This is designed to be qsort/bsearch compatible.
+ * @param a 1st map
+ * @param b 2nd map
+ * return result of comparison
*/
-int cpioFileMapCmp(const void * a, const void * b);
+int cpioFileMapCmp(const void * a, const void * b) /*@*/;
/**
+ * Return fornmatted error message on payload handling failure.
*/
-/*@observer@*/ const char *cpioStrerror(int rc);
+/*@observer@*/ const char *cpioStrerror(int rc) /*@*/;
#ifdef __cplusplus
}