CMS 3D CMS Logo

lat::CPIOConstants Struct Reference

Constants related to CPIO archives. More...

#include <Iguana/Utilities/classlib/zip/CPIOConstants.h>

Inheritance diagram for lat::CPIOConstants:

lat::ZipUtils lat::CPIOInputStream lat::CPIOMember lat::CPIOOutputStream

List of all members.

Public Types

enum  { ODC_MAGIC = 070707, SVR4_MAGIC = 070701, SVR4C_MAGIC = 070702 }
enum  {
  MAGIC_LEN = 6, TRAILER_LEN = 11, ODC_MAGIC_OFFSET = 0, ODC_MAGIC_LENGTH = 6,
  ODC_DEV_OFFSET = 6, ODC_DEV_LENGTH = 6, ODC_INO_OFFSET = 12, ODC_INO_LENGTH = 6,
  ODC_MODE_OFFSET = 18, ODC_MODE_LENGTH = 6, ODC_UID_OFFSET = 24, ODC_UID_LENGTH = 6,
  ODC_GID_OFFSET = 30, ODC_GID_LENGTH = 6, ODC_NLINK_OFFSET = 36, ODC_NLINK_LENGTH = 6,
  ODC_RDEV_OFFSET = 42, ODC_RDEV_LENGTH = 6, ODC_MTIME_OFFSET = 48, ODC_MTIME_LENGTH = 11,
  ODC_NAMELEN_OFFSET = 59, ODC_NAMELEN_LENGTH = 6, ODC_SIZE_OFFSET = 65, ODC_SIZE_LENGTH = 11,
  ODC_HEADER_LEN = 76, SVR_MAGIC_OFFSET = 0, SVR_MAGIC_LENGTH = 6, SVR_INO_OFFSET = 6,
  SVR_INO_LENGTH = 8, SVR_MODE_OFFSET = 14, SVR_MODE_LENGTH = 8, SVR_UID_OFFSET = 22,
  SVR_UID_LENGTH = 8, SVR_GID_OFFSET = 30, SVR_GID_LENGTH = 8, SVR_NLINK_OFFSET = 38,
  SVR_NLINK_LENGTH = 8, SVR_MTIME_OFFSET = 46, SVR_MTIME_LENGTH = 8, SVR_SIZE_OFFSET = 54,
  SVR_SIZE_LENGTH = 8, SVR_DEVMAJOR_OFFSET = 62, SVR_DEVMAJOR_LENGTH = 8, SVR_DEVMINOR_OFFSET = 70,
  SVR_DEVMINOR_LENGTH = 8, SVR_RDEVMAJOR_OFFSET = 78, SVR_RDEVMAJOR_LENGTH = 8, SVR_RDEVMINOR_OFFSET = 86,
  SVR_RDEVMINOR_LENGTH = 8, SVR_NAMELEN_OFFSET = 94, SVR_NAMELEN_LENGTH = 8, SVR_CHECKSUM_OFFSET = 102,
  SVR_CHECKSUM_LENGTH = 8, SVR_HEADER_LEN = 110, SVR_TRAILER_PAD = 3, BIN_MAGIC_OFFSET = 0,
  BIN_MAGIC_LENGTH = 2, BIN_DEV_OFFSET = 2, BIN_DEV_LENGTH = 2, BIN_INO_OFFSET = 4,
  BIN_INO_LENGTH = 2, BIN_MODE_OFFSET = 6, BIN_MODE_LENGTH = 2, BIN_UID_OFFSET = 8,
  BIN_UID_LENGTH = 2, BIN_GID_OFFSET = 10, BIN_GID_LENGTH = 2, BIN_NLINK_OFFSET = 12,
  BIN_NLINK_LENGTH = 2, BIN_RDEV_OFFSET = 14, BIN_RDEV_LENGTH = 2, BIN_MTIME_OFFSET = 16,
  BIN_MTIME_LENGTH = 4, BIN_NAMELEN_OFFSET = 20, BIN_NAMELEN_LENGTH = 2, BIN_FILELEN_OFFSET = 22,
  BIN_FILELEN_LENGTH = 4, BIN_HEADER_LEN = 26, SMALL_MAX = 0777777, LARGE_MAX = 07777777777,
  SVR_NAMELEN_MAX = 1024
}
enum  Mode {
  SUID = 04000, SGID = 02000, SVTX = 01000, UREAD = 00400,
  UWRITE = 00200, UEXEC = 00100, GREAD = 00040, GWRITE = 00020,
  GEXEC = 00010, OREAD = 00004, OWRITE = 00002, OEXEC = 00001
}

Static Public Attributes

static const char * TRAILER


Detailed Description

Constants related to CPIO archives.

Definition at line 17 of file CPIOConstants.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
ODC_MAGIC 
SVR4_MAGIC 
SVR4C_MAGIC 

Definition at line 26 of file CPIOConstants.h.

00026          {
00027         ODC_MAGIC       = 070707,       //< POSIX.1 archive
00028         SVR4_MAGIC      = 070701,       //< SVR4 archive
00029         SVR4C_MAGIC     = 070702        //< SVR4 archive with checksum
00030     };

anonymous enum

Enumerator:
MAGIC_LEN 
TRAILER_LEN 
ODC_MAGIC_OFFSET 
ODC_MAGIC_LENGTH 
ODC_DEV_OFFSET 
ODC_DEV_LENGTH 
ODC_INO_OFFSET 
ODC_INO_LENGTH 
ODC_MODE_OFFSET 
ODC_MODE_LENGTH 
ODC_UID_OFFSET 
ODC_UID_LENGTH 
ODC_GID_OFFSET 
ODC_GID_LENGTH 
ODC_NLINK_OFFSET 
ODC_NLINK_LENGTH 
ODC_RDEV_OFFSET 
ODC_RDEV_LENGTH 
ODC_MTIME_OFFSET 
ODC_MTIME_LENGTH 
ODC_NAMELEN_OFFSET 
ODC_NAMELEN_LENGTH 
ODC_SIZE_OFFSET 
ODC_SIZE_LENGTH 
ODC_HEADER_LEN 
SVR_MAGIC_OFFSET 
SVR_MAGIC_LENGTH 
SVR_INO_OFFSET 
SVR_INO_LENGTH 
SVR_MODE_OFFSET 
SVR_MODE_LENGTH 
SVR_UID_OFFSET 
SVR_UID_LENGTH 
SVR_GID_OFFSET 
SVR_GID_LENGTH 
SVR_NLINK_OFFSET 
SVR_NLINK_LENGTH 
SVR_MTIME_OFFSET 
SVR_MTIME_LENGTH 
SVR_SIZE_OFFSET 
SVR_SIZE_LENGTH 
SVR_DEVMAJOR_OFFSET 
SVR_DEVMAJOR_LENGTH 
SVR_DEVMINOR_OFFSET 
SVR_DEVMINOR_LENGTH 
SVR_RDEVMAJOR_OFFSET 
SVR_RDEVMAJOR_LENGTH 
SVR_RDEVMINOR_OFFSET 
SVR_RDEVMINOR_LENGTH 
SVR_NAMELEN_OFFSET 
SVR_NAMELEN_LENGTH 
SVR_CHECKSUM_OFFSET 
SVR_CHECKSUM_LENGTH 
SVR_HEADER_LEN 
SVR_TRAILER_PAD 
BIN_MAGIC_OFFSET 
BIN_MAGIC_LENGTH 
BIN_DEV_OFFSET 
BIN_DEV_LENGTH 
BIN_INO_OFFSET 
BIN_INO_LENGTH 
BIN_MODE_OFFSET 
BIN_MODE_LENGTH 
BIN_UID_OFFSET 
BIN_UID_LENGTH 
BIN_GID_OFFSET 
BIN_GID_LENGTH 
BIN_NLINK_OFFSET 
BIN_NLINK_LENGTH 
BIN_RDEV_OFFSET 
BIN_RDEV_LENGTH 
BIN_MTIME_OFFSET 
BIN_MTIME_LENGTH 
BIN_NAMELEN_OFFSET 
BIN_NAMELEN_LENGTH 
BIN_FILELEN_OFFSET 
BIN_FILELEN_LENGTH 
BIN_HEADER_LEN 
SMALL_MAX 
LARGE_MAX 
SVR_NAMELEN_MAX 

Definition at line 49 of file CPIOConstants.h.

00049          {
00050         MAGIC_LEN               = 6,
00051         TRAILER_LEN             = 11,
00052 
00053         ODC_MAGIC_OFFSET        = 0,    ODC_MAGIC_LENGTH        = 6,
00054         ODC_DEV_OFFSET          = 6,    ODC_DEV_LENGTH          = 6,
00055         ODC_INO_OFFSET          = 12,   ODC_INO_LENGTH          = 6,
00056         ODC_MODE_OFFSET         = 18,   ODC_MODE_LENGTH         = 6,
00057         ODC_UID_OFFSET          = 24,   ODC_UID_LENGTH          = 6,
00058         ODC_GID_OFFSET          = 30,   ODC_GID_LENGTH          = 6,
00059         ODC_NLINK_OFFSET        = 36,   ODC_NLINK_LENGTH        = 6,
00060         ODC_RDEV_OFFSET         = 42,   ODC_RDEV_LENGTH         = 6,
00061         ODC_MTIME_OFFSET        = 48,   ODC_MTIME_LENGTH        = 11,
00062         ODC_NAMELEN_OFFSET      = 59,   ODC_NAMELEN_LENGTH      = 6,
00063         ODC_SIZE_OFFSET         = 65,   ODC_SIZE_LENGTH         = 11,
00064         ODC_HEADER_LEN          = 76,
00065 
00066         SVR_MAGIC_OFFSET        = 0,    SVR_MAGIC_LENGTH        = 6,
00067         SVR_INO_OFFSET          = 6,    SVR_INO_LENGTH          = 8,
00068         SVR_MODE_OFFSET         = 14,   SVR_MODE_LENGTH         = 8,
00069         SVR_UID_OFFSET          = 22,   SVR_UID_LENGTH          = 8,
00070         SVR_GID_OFFSET          = 30,   SVR_GID_LENGTH          = 8,
00071         SVR_NLINK_OFFSET        = 38,   SVR_NLINK_LENGTH        = 8,
00072         SVR_MTIME_OFFSET        = 46,   SVR_MTIME_LENGTH        = 8,
00073         SVR_SIZE_OFFSET         = 54,   SVR_SIZE_LENGTH         = 8,
00074         SVR_DEVMAJOR_OFFSET     = 62,   SVR_DEVMAJOR_LENGTH     = 8,
00075         SVR_DEVMINOR_OFFSET     = 70,   SVR_DEVMINOR_LENGTH     = 8,
00076         SVR_RDEVMAJOR_OFFSET    = 78,   SVR_RDEVMAJOR_LENGTH    = 8,
00077         SVR_RDEVMINOR_OFFSET    = 86,   SVR_RDEVMINOR_LENGTH    = 8,
00078         SVR_NAMELEN_OFFSET      = 94,   SVR_NAMELEN_LENGTH      = 8,
00079         SVR_CHECKSUM_OFFSET     = 102,  SVR_CHECKSUM_LENGTH     = 8,
00080         SVR_HEADER_LEN          = 110,
00081         SVR_TRAILER_PAD         = 3,
00082 
00083         BIN_MAGIC_OFFSET        = 0,    BIN_MAGIC_LENGTH        = 2,  // short
00084         BIN_DEV_OFFSET          = 2,    BIN_DEV_LENGTH          = 2,  // short
00085         BIN_INO_OFFSET          = 4,    BIN_INO_LENGTH          = 2,  // ushort
00086         BIN_MODE_OFFSET         = 6,    BIN_MODE_LENGTH         = 2,  // ushort
00087         BIN_UID_OFFSET          = 8,    BIN_UID_LENGTH          = 2,  // ushort
00088         BIN_GID_OFFSET          = 10,   BIN_GID_LENGTH          = 2,  // ushort
00089         BIN_NLINK_OFFSET        = 12,   BIN_NLINK_LENGTH        = 2,  // short
00090         BIN_RDEV_OFFSET         = 14,   BIN_RDEV_LENGTH         = 2,  // short
00091         BIN_MTIME_OFFSET        = 16,   BIN_MTIME_LENGTH        = 4,  // short[2]
00092         BIN_NAMELEN_OFFSET      = 20,   BIN_NAMELEN_LENGTH      = 2,  // short
00093         BIN_FILELEN_OFFSET      = 22,   BIN_FILELEN_LENGTH      = 4,  // short[2]
00094 
00095         BIN_HEADER_LEN          = 26,
00096 
00097         // Maximum values for numeric values
00098         SMALL_MAX               = 0777777,
00099         LARGE_MAX               = 07777777777,
00100         SVR_NAMELEN_MAX         = 1024
00101     };

enum lat::CPIOConstants::Mode

Enumerator:
SUID 
SGID 
SVTX 
UREAD 
UWRITE 
UEXEC 
GREAD 
GWRITE 
GEXEC 
OREAD 
OWRITE 
OEXEC 

Definition at line 33 of file CPIOConstants.h.

00033               {
00034         SUID            = 04000,        //< Set-UID bit
00035         SGID            = 02000,        //< Set-GID bit
00036         SVTX            = 01000,        //< Sticky text bit
00037         UREAD           = 00400,        //< User read bit
00038         UWRITE          = 00200,        //< User write bit
00039         UEXEC           = 00100,        //< User execute bit
00040         GREAD           = 00040,        //< Group read bit
00041         GWRITE          = 00020,        //< Group write bit
00042         GEXEC           = 00010,        //< Group execute bit
00043         OREAD           = 00004,        //< Other read bit
00044         OWRITE          = 00002,        //< Other write bit
00045         OEXEC           = 00001         //< Other execute bit
00046     };


Member Data Documentation

const char* lat::CPIOConstants::TRAILER [static]

Definition at line 25 of file CPIOConstants.h.


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:48:24 2009 for CMSSW by  doxygen 1.5.4