security/nss/lib/jar/jarfile.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 /*
michael@0 6 * JARFILE.H
michael@0 7 *
michael@0 8 * Certain constants and structures for the archive format.
michael@0 9 *
michael@0 10 */
michael@0 11
michael@0 12 /* ZIP */
michael@0 13 struct ZipLocal { /* 30 bytes */
michael@0 14 char signature [4];
michael@0 15 char word [2];
michael@0 16 char bitflag [2];
michael@0 17 char method [2];
michael@0 18 char time [2];
michael@0 19 char date [2];
michael@0 20 char crc32 [4];
michael@0 21 char size [4];
michael@0 22 char orglen [4];
michael@0 23 char filename_len [2];
michael@0 24 char extrafield_len [2];
michael@0 25 };
michael@0 26
michael@0 27 struct ZipCentral { /* 46 bytes */
michael@0 28 char signature [4];
michael@0 29 char version_made_by [2];
michael@0 30 char version [2];
michael@0 31 char bitflag [2];
michael@0 32 char method [2];
michael@0 33 char time [2];
michael@0 34 char date [2];
michael@0 35 char crc32 [4];
michael@0 36 char size [4];
michael@0 37 char orglen [4];
michael@0 38 char filename_len [2];
michael@0 39 char extrafield_len [2];
michael@0 40 char commentfield_len [2];
michael@0 41 char diskstart_number [2];
michael@0 42 char internal_attributes [2];
michael@0 43 char external_attributes [4];
michael@0 44 char localhdr_offset [4];
michael@0 45 };
michael@0 46
michael@0 47 struct ZipEnd { /* 22 bytes */
michael@0 48 char signature [4];
michael@0 49 char disk_nr [2];
michael@0 50 char start_central_dir [2];
michael@0 51 char total_entries_disk [2];
michael@0 52 char total_entries_archive [2];
michael@0 53 char central_dir_size [4];
michael@0 54 char offset_central_dir [4];
michael@0 55 char commentfield_len [2];
michael@0 56 };
michael@0 57
michael@0 58 #define LSIG 0x04034B50l
michael@0 59 #define CSIG 0x02014B50l
michael@0 60 #define ESIG 0x06054B50l
michael@0 61
michael@0 62 /* TAR */
michael@0 63 union TarEntry { /* 512 bytes */
michael@0 64 struct header { /* 257 bytes */
michael@0 65 char filename [100];
michael@0 66 char mode [8];
michael@0 67 char uid [8];
michael@0 68 char gid [8];
michael@0 69 char size [12];
michael@0 70 char time [12];
michael@0 71 char checksum [8];
michael@0 72 char linkflag;
michael@0 73 char linkname [100];
michael@0 74 } val;
michael@0 75 char buffer [512];
michael@0 76 };

mercurial