summaryrefslogtreecommitdiff
path: root/lib/cpio.h
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-08-28 01:50:45 +0000
committerjbj <devnull@localhost>2000-08-28 01:50:45 +0000
commitc0424122dd154d712a01a0126762252519283fb6 (patch)
treeb0c2efbf0dd83e0e0ee09f989d9ca5a719a3c3fe /lib/cpio.h
parent8c10883fdd434363e6cc48125337b5f305cc5534 (diff)
downloadrpm-c0424122dd154d712a01a0126762252519283fb6.tar.gz
rpm-c0424122dd154d712a01a0126762252519283fb6.tar.bz2
rpm-c0424122dd154d712a01a0126762252519283fb6.zip
- rip out rpm{get,put}text, use getpo.sh and specspo instead.
CVS patchset: 4139 CVS date: 2000/08/28 01:50:45
Diffstat (limited to 'lib/cpio.h')
-rw-r--r--lib/cpio.h48
1 files changed, 26 insertions, 22 deletions
diff --git a/lib/cpio.h b/lib/cpio.h
index 5e6f7b3d4..4ee42163f 100644
--- a/lib/cpio.h
+++ b/lib/cpio.h
@@ -23,28 +23,32 @@
*/
#define CPIOERR_CHECK_ERRNO 0x00008000
-#define CPIOERR_BAD_MAGIC (2 )
-#define CPIOERR_BAD_HEADER (3 )
-#define CPIOERR_OPEN_FAILED (4 | CPIOERR_CHECK_ERRNO)
-#define CPIOERR_CHMOD_FAILED (5 | CPIOERR_CHECK_ERRNO)
-#define CPIOERR_CHOWN_FAILED (6 | CPIOERR_CHECK_ERRNO)
-#define CPIOERR_WRITE_FAILED (7 | CPIOERR_CHECK_ERRNO)
-#define CPIOERR_UTIME_FAILED (8 | CPIOERR_CHECK_ERRNO)
-#define CPIOERR_UNLINK_FAILED (9 | CPIOERR_CHECK_ERRNO)
-
-#define CPIOERR_SYMLINK_FAILED (11 | CPIOERR_CHECK_ERRNO)
-#define CPIOERR_STAT_FAILED (12 | CPIOERR_CHECK_ERRNO)
-#define CPIOERR_MKDIR_FAILED (13 | CPIOERR_CHECK_ERRNO)
-#define CPIOERR_MKNOD_FAILED (14 | CPIOERR_CHECK_ERRNO)
-#define CPIOERR_MKFIFO_FAILED (15 | CPIOERR_CHECK_ERRNO)
-#define CPIOERR_LINK_FAILED (16 | CPIOERR_CHECK_ERRNO)
-#define CPIOERR_READLINK_FAILED (17 | CPIOERR_CHECK_ERRNO)
-#define CPIOERR_READ_FAILED (18 | CPIOERR_CHECK_ERRNO)
-#define CPIOERR_COPY_FAILED (19 | CPIOERR_CHECK_ERRNO)
-#define CPIOERR_HDR_SIZE (20 )
-#define CPIOERR_UNKNOWN_FILETYPE (21 )
-#define CPIOERR_MISSING_HARDLINK (22 )
-#define CPIOERR_INTERNAL (23 )
+/** \ingroup payload
+ */
+enum cpioErrorReturns {
+ CPIOERR_BAD_MAGIC = (2 ),
+ CPIOERR_BAD_HEADER = (3 ),
+ CPIOERR_OPEN_FAILED = (4 | CPIOERR_CHECK_ERRNO),
+ CPIOERR_CHMOD_FAILED = (5 | CPIOERR_CHECK_ERRNO),
+ CPIOERR_CHOWN_FAILED = (6 | CPIOERR_CHECK_ERRNO),
+ CPIOERR_WRITE_FAILED = (7 | CPIOERR_CHECK_ERRNO),
+ CPIOERR_UTIME_FAILED = (8 | CPIOERR_CHECK_ERRNO),
+ CPIOERR_UNLINK_FAILED = (9 | CPIOERR_CHECK_ERRNO),
+
+ CPIOERR_SYMLINK_FAILED = (11 | CPIOERR_CHECK_ERRNO),
+ CPIOERR_STAT_FAILED = (12 | CPIOERR_CHECK_ERRNO),
+ CPIOERR_MKDIR_FAILED = (13 | CPIOERR_CHECK_ERRNO),
+ CPIOERR_MKNOD_FAILED = (14 | CPIOERR_CHECK_ERRNO),
+ CPIOERR_MKFIFO_FAILED = (15 | CPIOERR_CHECK_ERRNO),
+ CPIOERR_LINK_FAILED = (16 | CPIOERR_CHECK_ERRNO),
+ CPIOERR_READLINK_FAILED = (17 | CPIOERR_CHECK_ERRNO),
+ CPIOERR_READ_FAILED = (18 | CPIOERR_CHECK_ERRNO),
+ CPIOERR_COPY_FAILED = (19 | CPIOERR_CHECK_ERRNO),
+ CPIOERR_HDR_SIZE = (20 ),
+ CPIOERR_UNKNOWN_FILETYPE = (21 ),
+ CPIOERR_MISSING_HARDLINK = (22 ),
+ CPIOERR_INTERNAL = (23 )
+};
#define CPIO_MAP_PATH (1 << 0)
#define CPIO_MAP_MODE (1 << 1)