use-dollar-cc-not-cc-for-aix-exporter-20010305
[openafs.git] / src / export / sym.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 /*
11  * sym  -       symbol table definitions, VRMIX kernel pseudo-TOC
12  */
13
14 struct toc_syment {
15         union {
16                 char            _n_name[8];     /* old COFF version */
17                 struct {
18                         int     _n_zeroes;      /* new == 0 */
19                         int     _n_offset;      /* offset into string table */
20                 } _n_n;
21                 char            *_n_nptr[2];    /* allows for overlaying */
22         } _n;
23         int                     n_value;        /* value of symbol */
24 };
25 #define n_name          _n._n_name
26 #define n_nptr          _n._n_nptr[1]
27 #define n_zeroes        _n._n_n._n_zeroes
28 #define n_offset        _n._n_n._n_offset
29
30 typedef struct toc_syment sym_t;
31
32 extern struct toc_syment *toc_syms;     /* symbol table         */
33 extern caddr_t toc_strs;                /* string table         */
34 extern toc_nsyms;                       /* # symbols            */
35 extern sym_t *sym_flex();
36 extern sym_t *sym_lookup();