1*3955d011SMarcel Moolenaar /* @(#)ranlib.h 1.6 88/08/19 SMI; from UCB 4.1 83/05/03 */ 2*3955d011SMarcel Moolenaar /* $Id: ranlib.h,v 1.5 2005/11/01 02:35:15 sjg Exp $ */ 3*3955d011SMarcel Moolenaar 4*3955d011SMarcel Moolenaar /* 5*3955d011SMarcel Moolenaar * Structure of the __.SYMDEF table of contents for an archive. 6*3955d011SMarcel Moolenaar * __.SYMDEF begins with a word giving the number of ranlib structures 7*3955d011SMarcel Moolenaar * which immediately follow, and then continues with a string 8*3955d011SMarcel Moolenaar * table consisting of a word giving the number of bytes of strings 9*3955d011SMarcel Moolenaar * which follow and then the strings themselves. 10*3955d011SMarcel Moolenaar * The ran_strx fields index the string table whose first byte is numbered 0. 11*3955d011SMarcel Moolenaar */ 12*3955d011SMarcel Moolenaar 13*3955d011SMarcel Moolenaar #if !defined(IRIX) && !defined(__digital__) && !defined(__osf__) 14*3955d011SMarcel Moolenaar #ifndef _ranlib_h 15*3955d011SMarcel Moolenaar #define _ranlib_h 16*3955d011SMarcel Moolenaar 17*3955d011SMarcel Moolenaar #if 0 18*3955d011SMarcel Moolenaar #define RANLIBMAG "!<arch>\n__.SYMDEF" /* archive file name */ 19*3955d011SMarcel Moolenaar #endif 20*3955d011SMarcel Moolenaar #define RANLIBMAG "__.SYMDEF" /* archive file name */ 21*3955d011SMarcel Moolenaar #define RANLIBSKEW 3 /* creation time offset */ 22*3955d011SMarcel Moolenaar 23*3955d011SMarcel Moolenaar struct ranlib { 24*3955d011SMarcel Moolenaar union { 25*3955d011SMarcel Moolenaar off_t ran_strx; /* string table index of */ 26*3955d011SMarcel Moolenaar char *ran_name; /* symbol defined by */ 27*3955d011SMarcel Moolenaar } ran_un; 28*3955d011SMarcel Moolenaar off_t ran_off; /* library member at this offset */ 29*3955d011SMarcel Moolenaar }; 30*3955d011SMarcel Moolenaar 31*3955d011SMarcel Moolenaar #endif /*!_ranlib_h*/ 32*3955d011SMarcel Moolenaar #endif 33