From: Jay Freeman (saurik) Date: Mon, 24 Aug 2015 23:29:49 +0000 (-0700) Subject: The Archive Identity Editor is a separate project. X-Git-Tag: v2.1.0~112 X-Git-Url: https://git.saurik.com/ldid.git/commitdiff_plain/b9098d23a9c1a9d94888ed547afaa406f3bc1a57 The Archive Identity Editor is a separate project. --- diff --git a/arid.cpp b/arid.cpp deleted file mode 100644 index 99b4ae8..0000000 --- a/arid.cpp +++ /dev/null @@ -1,30 +0,0 @@ -#include -#include -#include "minimal/mapping.h" - -struct ar_hdr { - char ar_name[16]; - char ar_date[12]; - char ar_uid[6]; - char ar_gid[6]; - char ar_mode[8]; - char ar_size[10]; -#define ARFMAG "`\n" - char ar_fmag[2]; -}; - -int main(int argc, char *argv[]) { - size_t size; - _assert(argc == 2); - uint8_t *data = reinterpret_cast(map(argv[1], 0, _not(size_t), &size, false)); - data += 8; - uint8_t *end = data + size; - while (end - data >= sizeof(struct ar_hdr)) { - struct ar_hdr *head = reinterpret_cast(data); - memset(head->ar_date + 1, ' ', sizeof(head->ar_date) - 1); - head->ar_date[0] = '0'; - size_t length = strtoul(head->ar_size, NULL, 10); - data += length + sizeof(struct ar_hdr); - } - return 0; -}