From b9098d23a9c1a9d94888ed547afaa406f3bc1a57 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 24 Aug 2015 16:29:49 -0700 Subject: [PATCH] The Archive Identity Editor is a separate project. --- arid.cpp | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 arid.cpp 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; -} -- 2.45.2