diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2012-06-08 21:57:36 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2012-06-08 21:57:36 +0000 |
| commit | b379932fc0f836f9f3f5ac89ef7f6cd38377dff8 (patch) | |
| tree | 18db9ddd684d6278a8a49b3850dc7c757c7e8348 /ranlib.h | |
| parent | 3e4da6f5b3dfa3b4ff9caabcbc673d721a1a9bf0 (diff) | |
Import the 6-May-2012 release of the "Portable" BSD make tool (from NetBSD).vendor/NetBSD/bmake/20120606
Submitted by: sjg@juniper.net
Diffstat (limited to 'ranlib.h')
| -rw-r--r-- | ranlib.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/ranlib.h b/ranlib.h new file mode 100644 index 000000000000..503c7c169763 --- /dev/null +++ b/ranlib.h @@ -0,0 +1,32 @@ +/* @(#)ranlib.h 1.6 88/08/19 SMI; from UCB 4.1 83/05/03 */ +/* $Id: ranlib.h,v 1.5 2005/11/01 02:35:15 sjg 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. + */ + +#if !defined(IRIX) && !defined(__digital__) && !defined(__osf__) +#ifndef _ranlib_h +#define _ranlib_h + +#if 0 +#define RANLIBMAG "!<arch>\n__.SYMDEF" /* archive file name */ +#endif +#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 |
