1 /*---------------------------------------------------------------------------* 2 Project: TwlSDK - makelst 3 File: arch.h 4 5 Copyright 2006-2008 Nintendo. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Date:: 2008-09-18#$ 14 $Rev: 8573 $ 15 $Author: okubata_ryoma $ 16 *---------------------------------------------------------------------------*/ 17 #ifndef ARCH_H_ 18 #define ARCH_H_ 19 20 #include "types.h" 21 22 /*--------------------------------------------------------- 23 Archive Header 24 --------------------------------------------------------*/ 25 #define ARMAG "!<arch>\n" /* Magic string */ 26 #define SARMAG 8 /* Length of magic string */ 27 28 #define ARFMAG "\`\n" /* Header trailer string */ 29 #define AR_NAME_LEN 16 /* ar_name size, includes `/' */ 30 31 32 typedef struct /* Archive file member header: printable ASCII */ 33 { 34 char ar_name[16]; /* File member name: `/' terminated */ 35 char ar_date[12]; /* File member date: decimal */ 36 char ar_uid[6]; /* File member user id: decimal */ 37 char ar_gid[6]; /* File member group id: decimal */ 38 char ar_mode[8]; /* File member mode: octal */ 39 char ar_size[10]; /* File member size: decimal */ 40 char ar_fmag[2]; /* ARFMAG: string to end header */ 41 }ArchHdr; /* Total 60 (0x3C) bytes */ 42 43 44 45 46 47 48 /*--------------------------------------------------------- 49 Get the entry size from an entry header 50 --------------------------------------------------------*/ 51 u32 AR_GetEntrySize( ArchHdr* ArHdr); 52 53 54 #endif /*ARCH_H_*/ 55