15#define ROUND_UP(n, incr) (((n) / (incr) + 1) * (incr))
22#define SIGNATURE_BLOCK_OFFSET 16
26#define MAX_SIZE_OF_MAR_FILE ((int64_t)1824288000)
31 "max mar file size is too big");
37 "BLOCKSIZE is too big");
41#define MAX_SIGNATURE_LENGTH 2048
45#define PRODUCT_INFO_BLOCK_ID 1
47#define MAR_ITEM_SIZE(namelen) (3*sizeof(uint32_t) + (namelen) + 1)
50#define PIB_MAX_MAR_CHANNEL_ID_SIZE 63
51#define PIB_MAX_PRODUCT_VERSION_SIZE 31
58#define ftello _ftelli64
59#define fseeko _fseeki64
61#define _FILE_OFFSET_BITS 64
62#include <netinet/in.h>
68#define HOST_TO_NETWORK64(x) ( \
69 ((((uint64_t) x) & 0xFF) << 56) | \
70 ((((uint64_t) x) >> 8) & 0xFF) << 48) | \
71 (((((uint64_t) x) >> 16) & 0xFF) << 40) | \
72 (((((uint64_t) x) >> 24) & 0xFF) << 32) | \
73 (((((uint64_t) x) >> 32) & 0xFF) << 24) | \
74 (((((uint64_t) x) >> 40) & 0xFF) << 16) | \
75 (((((uint64_t) x) >> 48) & 0xFF) << 8) | \
76 (((uint64_t) x) >> 56)
77#define NETWORK_TO_HOST64 HOST_TO_NETWORK64
#define MAX_SIZE_OF_MAR_FILE
#define SIGNATURE_BLOCK_OFFSET
MOZ_STATIC_ASSERT(MAX_SIZE_OF_MAR_FILE<((int64_t) LONG_MAX), "max mar file size is too big")