summaryrefslogtreecommitdiff
path: root/bootstrap/bmake/ranlib.h
blob: 76d201eb6e861f739bedff1c13036f3fb5bd20ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*	@(#)ranlib.h 1.6 88/08/19 SMI; from UCB 4.1 83/05/03	*/
/*	$Id: ranlib.h,v 1.1.1.1 2004/03/11 13:04:12 grant Exp $	*/

/*
 * Structure of the __.SYMDEF table of contents for an archive.
 * __.SYMDEF begins with a word giving the number of ranlib structures
 * which immediately follow, and then continues with a string
 * table consisting of a word giving the number of bytes of strings
 * which follow and then the strings themselves.
 * The ran_strx fields index the string table whose first byte is numbered 0.
 */

#ifndef IRIX
#ifndef _ranlib_h
#define _ranlib_h

/* #define RANLIBMAG	"!<arch>\n__.SYMDEF"	/* archive file name */
#define RANLIBMAG	"__.SYMDEF"	/* archive file name */
#define RANLIBSKEW	3		/* creation time offset */

struct	ranlib {
	union {
		off_t	ran_strx;	/* string table index of */
		char	*ran_name;	/* symbol defined by */
	} ran_un;
	off_t	ran_off;		/* library member at this offset */
};

#endif /*!_ranlib_h*/
#endif