Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/mkuzip/mkuz_cloop.h
Show All 33 Lines | |||||
*/ | */ | ||||
#define CLOOP_MAGIC_LEN 128 | #define CLOOP_MAGIC_LEN 128 | ||||
#define CLOOP_OFS_COMPR 0x0b | #define CLOOP_OFS_COMPR 0x0b | ||||
#define CLOOP_OFS_VERSN (CLOOP_OFS_COMPR + 1) | #define CLOOP_OFS_VERSN (CLOOP_OFS_COMPR + 1) | ||||
#define CLOOP_MAJVER_2 '2' | #define CLOOP_MAJVER_2 '2' | ||||
#define CLOOP_MAJVER_3 '3' | #define CLOOP_MAJVER_3 '3' | ||||
#define CLOOP_MAJVER_4 '4' | |||||
#define CLOOP_COMP_LIBZ 'V' | #define CLOOP_COMP_LIBZ 'V' | ||||
#define CLOOP_COMP_LZMA 'L' | #define CLOOP_COMP_LZMA 'L' | ||||
#define CLOOP_COMP_ZSTD 'Z' | |||||
struct cloop_header { | struct cloop_header { | ||||
char magic[CLOOP_MAGIC_LEN]; /* cloop magic */ | char magic[CLOOP_MAGIC_LEN]; /* cloop magic */ | ||||
uint32_t blksz; /* block size */ | uint32_t blksz; /* block size */ | ||||
uint32_t nblocks; /* number of blocks */ | uint32_t nblocks; /* number of blocks */ | ||||
}; | }; |