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