conv.h revision e23c41c9edb2294649cde3d370ae755701f3f140
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1988 AT&T
* All Rights Reserved
*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _CONV_H
#define _CONV_H
/*
* Global include file for conversion library.
*/
#include <stdlib.h>
#include <libelf.h>
#include <dlfcn.h>
#include <libld.h>
#include <sgs.h>
#include <sgsmsg.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Configuration features available - maintained here (instead of debug.h)
* to save libconv from having to include debug.h which results in numerous
* "declared but not used or defined" lint errors.
*/
#define CONF_FEATMSK 0xffff00
/*
* Valid flags for conv_strproc_extract_value().
*/
/*
* Buffer types:
*
* Many of the routines in this module require the user to supply a
* buffer into which the desired strings may be written. These are
* all arrays of characters, and might be defined as simple arrays
* of char. The problem with that approach is that when such an array
* is passed to a function, the C language considers it to have the
* type (char *), without any regard to its length. Not all of our
* buffers have the same length, and we want to ensure that the compiler
* will refuse to compile code that passes the wrong type of buffer to
* a given routine. The solution is to define the buffers as unions
* that contain the needed array, and then to pass the given union
* by address. The compiler will catch attempts to pass the wrong type
*
* A nice side effect of this approach is that we can use a union with
* multiple buffers to handle the cases where a given routine needs
* more than one type of buffer. The end result is a single buffer large
* enough to handle any of the subcases, but no larger.
*/
/*
* Size of buffer used by conv_invalid_val():
*
* Various values that can't be matched to a symbolic definition are converted
* to a numeric string.
*
* The buffer size reflects the maximum number of digits needed to
* display an integer as text, plus a trailing null, and with room for
* a leading "0x" if hexidecimal display is selected.
*
* The 32-bit version of this requires 12 characters, and the 64-bit version
* needs 22. By using the larger value for both, we can have a single
* definition, which is necessary for code that is ELFCLASS independent. A
* nice side benefit is that it lets us dispense with a large number of 32/64
* buffer size definitions that build off CONV_INV_BUFSIZE, and the macros
* that would then be needed.
*/
#define CONV_INV_BUFSIZE 22
typedef union {
char buf[CONV_INV_BUFSIZE];
/* conv_ehdr_flags() */
#define CONV_EHDR_FLAGS_BUFSIZE 91
typedef union {
char buf[CONV_EHDR_FLAGS_BUFSIZE];
/* conv_reject_desc() */
typedef union {
/*
* conv_cap_val_hw1()
*
* This size is based on the maximum number of hardware capabilities
*/
#define CONV_CAP_VAL_HW1_BUFSIZE 195
typedef union {
char buf[CONV_CAP_VAL_HW1_BUFSIZE];
/*
* conv_cap_val_sf1()
*
* This size is based on the maximum number of software capabilities
*/
#define CONV_CAP_VAL_SF1_BUFSIZE 45
typedef union {
char buf[CONV_CAP_VAL_SF1_BUFSIZE];
/* conv_cap_val_buf() */
typedef union {
/* conv_config_feat() */
#define CONV_CONFIG_FEAT_BUFSIZE 204
typedef union {
char buf[CONV_CONFIG_FEAT_BUFSIZE];
/* conv_config_obj() */
#define CONV_CONFIG_OBJ_BUFSIZE 164
typedef union {
char buf[CONV_CONFIG_OBJ_BUFSIZE];
/* conv_dl_mode() */
#define CONV_DL_MODE_BUFSIZE 132
typedef union {
char buf[CONV_DL_MODE_BUFSIZE];
/* conv_dl_flag() */
#define CONV_DL_FLAG_BUFSIZE 185
typedef union {
char buf[CONV_DL_FLAG_BUFSIZE];
/* conv_grphdl_flags() */
#define CONV_GRPHDL_FLAGS_BUFSIZE 92
typedef union {
char buf[CONV_GRPHDL_FLAGS_BUFSIZE];
/* conv_grpdesc_flags() */
#define CONV_GRPDESC_FLAGS_BUFSIZE 102
typedef union {
char buf[CONV_GRPDESC_FLAGS_BUFSIZE];
/* conv_seg_flags() */
#define CONV_SEG_FLAGS_BUFSIZE 196
typedef union {
char buf[CONV_SEG_FLAGS_BUFSIZE];
/* conv_dyn_posflag1() */
#define CONV_DYN_POSFLAG1_BUFSIZE 57
typedef union {
char buf[CONV_DYN_POSFLAG1_BUFSIZE];
/* conv_dyn_flag() */
#define CONV_DYN_FLAG_BUFSIZE 85
typedef union {
char buf[CONV_DYN_FLAG_BUFSIZE];
/* conv_dyn_flag1() */
#define CONV_DYN_FLAG1_BUFSIZE 361
typedef union {
char buf[CONV_DYN_FLAG1_BUFSIZE];
/* conv_dyn_feature1() */
#define CONV_DYN_FEATURE1_BUFSIZE 54
typedef union {
char buf[CONV_DYN_FEATURE1_BUFSIZE];
/* conv_bnd_type() */
#define CONV_BND_TYPE_BUFSIZE 51
typedef union {
char buf[CONV_BND_TYPE_BUFSIZE];
/* conv_bnd_obj() */
#define CONV_BND_OBJ_BUFSIZE 60
typedef union {
char buf[CONV_BND_OBJ_BUFSIZE];
/* conv_phdr_flags() */
#define CONV_PHDR_FLAGS_BUFSIZE 57
typedef union {
char buf[CONV_PHDR_FLAGS_BUFSIZE];
/* conv_sec_flags() */
#define CONV_SEC_FLAGS_BUFSIZE 190
typedef union {
char buf[CONV_SEC_FLAGS_BUFSIZE];
/* conv_dwarf_ehe() */
#define CONV_DWARF_EHE_BUFSIZE 43
typedef union {
char buf[CONV_DWARF_EHE_BUFSIZE];
/* conv_syminfo_flags() */
#define CONV_SYMINFO_FLAGS_BUFSIZE 193
typedef union {
char buf[CONV_SYMINFO_FLAGS_BUFSIZE];
/* conv_cnote_pr_flags() */
#define CONV_CNOTE_PR_FLAGS_BUFSIZE 254
typedef union {
char buf[CONV_CNOTE_PR_FLAGS_BUFSIZE];
/* conv_cnote_old_pr_flags() */
#define CONV_CNOTE_OLD_PR_FLAGS_BUFSIZE 174
typedef union {
/* conv_cnote_proc_flag() */
#define CONV_CNOTE_PROC_FLAG_BUFSIZE 39
typedef union {
char buf[CONV_CNOTE_PROC_FLAG_BUFSIZE];
/* conv_cnote_sigset() */
#define CONV_CNOTE_SIGSET_BUFSIZE 639
typedef union {
char buf[CONV_CNOTE_SIGSET_BUFSIZE];
/* conv_cnote_fltset() */
#define CONV_CNOTE_FLTSET_BUFSIZE 511
typedef union {
char buf[CONV_CNOTE_FLTSET_BUFSIZE];
/* conv_cnote_sysset() */
#define CONV_CNOTE_SYSSET_BUFSIZE 3222
typedef union {
char buf[CONV_CNOTE_SYSSET_BUFSIZE];
/* conv_cnote_sa_flags() */
#define CONV_CNOTE_SA_FLAGS_BUFSIZE 109
typedef union {
char buf[CONV_CNOTE_SA_FLAGS_BUFSIZE];
/* conv_cnote_ss_flags() */
#define CONV_CNOTE_SS_FLAGS_BUFSIZE 48
typedef union {
char buf[CONV_CNOTE_SS_FLAGS_BUFSIZE];
/* conv_cnote_cc_content() */
#define CONV_CNOTE_CC_CONTENT_BUFSIZE 97
typedef union {
char buf[CONV_CNOTE_CC_CONTENT_BUFSIZE];
/* conv_cnote_auxv_af() */
#define CONV_CNOTE_AUXV_AF_BUFSIZE 73
typedef union {
char buf[CONV_CNOTE_AUXV_AF_BUFSIZE];
/* conv_ver_flags() */
#define CONV_VER_FLAGS_BUFSIZE 41
typedef union {
char buf[CONV_VER_FLAGS_BUFSIZE];
/*
* Many conversion routines accept a fmt_flags argument of this type
* to allow the caller to modify the output. There are two parts to
* this value:
*
* (1) Format requests (decimal vs hex, etc...)
* (2) The low order bits specified by CONV_MASK_FMT_ALT
* and retrieved by CONV_TYPE_FMT_ALT are integer
* values that specify that an alternate set of
* strings should be used.
*
* The fmt_flags value is designed such that a caller can always
* supply a 0 in order to receive default behavior.
*/
typedef int Conv_fmt_flags_t;
/*
* Type used to represent ELF constants within libconv. This relies on
* the fact that there are no ELF constants that need more than 32-bits,
* nor are there any signed values.
*/
typedef uint32_t Conv_elfvalue_t;
/*
* Most conversion routines are able to provide strings in one of
* several alternative styles. The bottom 8 bits of Conv_fmt_flags_t
* are used to specify which strings should be used for a given call
* to a conversion routine:
*
* DEFAULT
* The default string style used by a given conversion routine is
* an independent choice made by that routine. Different routines
* make different choices, based largely on historical usage and
* the perceived common case. It may be an alias for one of the
* specific styles listed below, or it may be unique.
*
* DUMP
* Style of strings used by dump(1).
*
* FILE
* Style of strings used by file(1).
*
* CRLE
* Style of strings used by crle(1).
*
* CF
* Canonical Form: The string is exactly the same as the name
* of the #define macro that defines it in the public header files.
* (e.g. STB_LOCAL, not LOCL, LOCAL, LOC, or any other variation).
*
* CFNP
* No Prefix Canonical Form: The same strings supplied by CF,
* but without their standard prefix. (e.g. LOCAL, instead of STT_LOCAL).
*
* NF
* Natural Form: The form of the strings that might typically be entered
* via a keyboard by an interactive user. These are usually the strings
* from CFNP, converted to lowercase, although in some cases they may
* take some other "natural" form. In command completion applications,
* lowercase strings appear less formal, and are easier on the eye.
*
* Every routine is required to have a default style. The others are optional,
* and may not be provided if not needed. If a given conversion routine does
* not support alternative strings for a given CONV_FMT_ALT type, it silently
* ignores the request and supplies the default set. This means that a utility
* like dump(1) is free to specify a style like DUMP to every conversion
* routine. It will receive its special strings if there are any, and
* the defaults otherwise.
*/
#define CONV_MASK_FMT_ALT 0xff
#define CONV_FMT_ALT_DEFAULT 0 /* "Standard" strings */
/*
* Flags that alter standard formatting for conversion routines.
* These bits start after the range occupied by CONV_MASK_FMT_ALT.
*/
/* integer print as decimal */
/* (default is hex) */
/* a space after the number. */
/* prefix and suffix strings */
/*
* A Val_desc structure is used to associate an ELF constant and
* the message code (Msg) for the string that corresponds to it.
*
* Val_desc2 adds v_osabi and v_mach fields to Val_desc, which allows
* Setting v_osabi to 0 (ELFOSABI_NONE) specifies that any OSABI matches.
* Similarly, setting v_mach to 0 (EM_MACH) matches any machine. Hence,
* setting v_osabi and v_mach to 0 in a Val_desc2 results in a generic item,
* and is equivalent to simply using a Val_desc.
*
* These structs are used in two different contexts:
*
* 1) To expand bit-field data items, using conv_expn_field() to
* process a NULL terminated array of Val_desc, or conv_expn_field2()
* to process a null terminated array of Val_desc2.
*
* 2) To represent sparse ranges of non-bitfield values, referenced via
* conv_ds_vd_t or conv_ds_vd2_t descriptors, as described below.
*/
typedef struct {
} Val_desc;
typedef struct {
} Val_desc2;
/*
* The conv_ds_XXX_t structs are used to pull together the information used
* to map non-bitfield values to strings. They are a variant family, sharing
* the same initial fields, with a generic "header" definition that can be
* used to read those common fields and determine which subcase is being
* seen. We do this instead of using a single struct containing a type code
* and a union in order to allow for static compile-time initialization.
*
* conv_ds_t is the base type, containing the initial fields common to all
* the variants. Variables of type conv_ds_t are never instantiated. This
* type exists only to provide a common pointer type that can reference
* any of the variants safely. In C++, it would be a virtual base class.
* The fields common to all the variants are:
*
* ds_type: Identifies the variant
* ds_baseval/ds_topval: The lower and upper bound of the range
* of values represented by this conv_ds_XXX_t descriptor.
*
* There are three different variants:
* conv_ds_msg_t (ds_type == CONV_DS_MSGARR)
* This structure references an array of message codes corresponding
* to consecutive ELF values. The first item in the array is the Msg
* code for the value given by ds_baseval. Consecutive strings follow
* in consecutive order. The final item corresponds to the value given
* by ds_topval. Zero (0) Msg values can be used to represent missing
* values. Entries with a 0 are quietly ignored.
*
* conv_ds_vd_t (ds_type == CONV_DS_VD)
* This structure employs a NULL terminated array of Val_desc structs.
* Each Val_desc supplies a mapping from a value in the range
* (ds_baseval <= value <= ds_topval). The values described need not
* be consecutive, and can be sparse. ds_baseval does not need to
* correspond to the first item, and ds_topval need not correspond to
* the final item.
*
* conv_ds_vd2_t (ds_type == CONV_DS_VD2)
* This structure employs a NULL terminated array of Val_desc2 structs,
* rather than Val_desc, adding the ability to specify OSABI and machine
* as CONV_DS_VD.
*/
typedef enum {
CONV_DS_MSGARR = 0, /* Array of Msg */
#define CONV_DS_COMMON_FIELDS \
typedef struct { /* Virtual base type --- do not instantiate */
} conv_ds_t;
typedef struct {
typedef struct {
} conv_ds_vd_t;
typedef struct {
/*
* The initialization of conv_ds_msg_t can be completely derived from
* its base value and the array of Msg codes. CONV_DS_MSG_INIT() is used
* to do that.
*/
/*
* Null terminated arrays of pointers to conv_ds_XXX_t structs are processed
* by conv_map_ds() to convert ELF constants to their symbolic names, and by
*
* These pointers are formed by casting the address of the specific
* variant types (described above) to generic base type pointer.
* CONV_DS_ADDR() is a convenience macro to take the address of
* one of these variants and turn it into a generic pointer.
*/
/*
* Type used by libconv to represent osabi values passed to iteration
* functions. The type in the ELF header is uchar_t. However, every possible
* value 0-255 has a valid meaning, leaving us no extra value to assign
* to mean "ALL". Using Half for osabi leaves us the top byte to use for
* out of bound values.
*
* Non-iteration functions, and any code that does not need to use
* CONV_OSABI_ALL, should use uchar_t for osabi.
*/
typedef Half conv_iter_osabi_t;
/*
* Many of the iteration functions accept an osabi or mach argument,
* used to specify the type of object being processed. The following
* values can be used to specify a wildcard that matches any item. Their
* values are carefully chosen to ensure that they cannot be interpreted
* as an otherwise valid osabi or machine.
*/
/*
* We compare Val_Desc2 descriptors with a specified osabi and machine
* to determine whether to use it or not. This macro encapsulates that logic.
*
* We consider an osabi to match when any of the following things hold:
*
* - The descriptor osabi is ELFOSABI_NONE.
* - The supplied osabi and the descriptor osabi match
* - The supplied osabi is ELFOSABI_NONE, and the descriptor osabi is
* ELFOSABI_SOLARIS. Many operating systems, Solaris included,
* produce or have produced ELFOSABI_NONE native objects, if only
* because OSABI ranges are not an original ELF feature. We
* give our own objects the home field advantage.
* - Iteration Only: An osabi value of CONV_OSABI_ALL is specified.
*
* We consider a machine to match when any of the following things hold:
*
* - The descriptor mach is EM_NONE.
* - The supplied mach and the descriptor mach match
* - Iteration Only: A mach value of CONV_MACH_ALL is specified.
*
* The special extra _ALL case for iteration is handled by defining a separate
* macro with the extra CONV_xxx_ALL tests.
*/
/*
* Possible return values from iteration functions.
*/
typedef enum {
CONV_ITER_DONE, /* Stop: No more iterations are desired */
CONV_ITER_CONT /* Continue with following iterations */
/*
* Prototype for caller supplied callback function to iteration functions.
*/
/*
* User value block employed by conv_iter_strtol()
*/
typedef struct {
const char *csl_str; /* String to search for */
int csl_found; /* Init to 0, set to 1 if item found */
/*
* conv_expn_field() is willing to supply default strings for the
* prefix, separator, and suffix arguments, if they are passed as NULL.
* The caller needs to know how much room to allow for these items.
* These values supply those sizes.
*/
/*
* conv_expn_field() requires a large number of inputs, many of which
* can be NULL to accept default behavior. An argument of the following
* type is used to supply them.
*/
typedef struct {
char *buf; /* Buffer to receive generated string */
const char **lead_str; /* NULL, or array of pointers to strings to */
/* be output at the head of the list. */
/* Last entry must be NULL. */
/* output if vdp does not provide str. */
/* Must be a proper subset of oflags */
const char *prefix; /* NULL, or string to prefix output with */
/* If NULL, "[ " is used. */
const char *sep; /* NULL, or string to separate output items */
/* with. If NULL, " " is used. */
const char *suffix; /* NULL, or string to suffix output with */
/* If NULL, " ]" is used. */
/*
* Callback function for conv_str_to_c_literal(). A user supplied function
* of this type is called by conv_str_to_c_literal() in order to dispatch
* the translated output characters.
*
* buf - Pointer to output text
* n - # of characters to output
* uvalue - User value argument to conv_str_to_c_literal(),
* passed through without interpretation.
*/
typedef void Conv_str_to_c_literal_func_t(const void *ptr,
/*
* Generic miscellaneous interfaces
*/
extern uchar_t conv_check_native(char **, char **);
extern const char *conv_lddstub(int);
extern int conv_strproc_isspace(int);
extern char *conv_strproc_trim(char *);
const char **);
extern int conv_sys_eclass(void);
/*
* Generic core formatting and iteration functionality
*/
const conv_ds_t **, conv_iter_cb_t, void *,
const char *);
conv_iter_cb_t, void *, const char *);
void *, const char *);
const Val_desc2 *, conv_iter_cb_t, void *,
const char *);
extern int conv_iter_strtol_init(const char *,
const conv_ds_t **, Conv_fmt_flags_t,
Conv_inv_buf_t *, const char *);
/*
* Generic formatting interfaces.
*/
extern const char *conv_config_feat(int, Conv_config_feat_buf_t *);
extern const char *conv_config_upm(const char *, const char *,
const char *, size_t);
Conv_inv_buf_t *);
extern const char *conv_cnote_errno(int, Conv_fmt_flags_t,
Conv_inv_buf_t *);
Conv_inv_buf_t *);
extern const char *conv_cnote_fltset(uint32_t *, int,
extern const char *conv_cnote_old_pr_flags(int, Conv_fmt_flags_t,
Conv_inv_buf_t *);
extern const char *conv_cnote_pr_flags(int, Conv_fmt_flags_t,
extern const char *conv_cnote_proc_flag(int, Conv_fmt_flags_t,
Conv_inv_buf_t *);
extern const char *conv_cnote_pr_what(short, short, Conv_fmt_flags_t,
Conv_inv_buf_t *);
extern const char *conv_cnote_pr_why(short, Conv_fmt_flags_t,
Conv_inv_buf_t *);
extern const char *conv_cnote_priv(int, Conv_fmt_flags_t,
Conv_inv_buf_t *);
extern const char *conv_cnote_psetid(int, Conv_fmt_flags_t,
Conv_inv_buf_t *);
extern const char *conv_cnote_sa_flags(int, Conv_fmt_flags_t,
Conv_inv_buf_t *);
Conv_inv_buf_t *);
extern const char *conv_cnote_sigset(uint32_t *, int,
extern const char *conv_cnote_ss_flags(int, Conv_fmt_flags_t,
Conv_inv_buf_t *);
extern const char *conv_cnote_sysset(uint32_t *, int,
Conv_inv_buf_t *);
extern const char *conv_demangle_name(const char *);
extern const char *conv_dl_flag(int, Conv_fmt_flags_t,
extern const char *conv_dl_mode(int, int, Conv_dl_mode_buf_t *);
Conv_inv_buf_t *);
int *, Conv_inv_buf_t *);
Conv_inv_buf_t *);
Conv_inv_buf_t *);
Conv_inv_buf_t *);
Conv_inv_buf_t *);
Conv_inv_buf_t *);
Conv_inv_buf_t *);
Conv_inv_buf_t *);
extern Isa_desc *conv_isalist(void);
Conv_inv_buf_t *);
Conv_inv_buf_t *);
Conv_inv_buf_t *);
Conv_inv_buf_t *);
Conv_inv_buf_t *);
Conv_inv_buf_t *);
void *uvalue);
Conv_inv_buf_t *);
Conv_inv_buf_t *);
Conv_inv_buf_t *);
Conv_inv_buf_t *);
Conv_inv_buf_t *);
/*
* Generic iteration interfaces.
*/
void *);
conv_iter_cb_t, void *);
void *);
void *);
void *);
void *);
void *);
Conv_fmt_flags_t, conv_iter_cb_t, void *);
Conv_fmt_flags_t, conv_iter_cb_t, void *);
void *);
void *);
void *);
conv_iter_cb_t, void *);
void *);
void *);
conv_iter_cb_t, void *);
void *);
Conv_fmt_flags_t, conv_iter_cb_t, void *);
conv_iter_cb_t, void *);
Conv_fmt_flags_t, conv_iter_cb_t, void *);
Conv_fmt_flags_t, conv_iter_cb_t, void *);
Conv_fmt_flags_t, conv_iter_cb_t, void *);
conv_iter_cb_t, void *);
conv_iter_cb_t, void *);
Conv_fmt_flags_t, conv_iter_cb_t, void *);
conv_iter_cb_t, void *);
conv_iter_cb_t, void *);
conv_iter_cb_t, void *);
/*
* Define all class specific routines.
*/
#if defined(_ELF64)
#define conv_cap_tag conv64_cap_tag
#define conv_cap_val conv64_cap_val
#define conv_cap_val_hw1 conv64_cap_val_hw1
#define conv_cap_val_sf1 conv64_cap_val_sf1
#define conv_dyn_feature1 conv64_dyn_feature1
#define conv_dyn_flag1 conv64_dyn_flag1
#define conv_dyn_flag conv64_dyn_flag
#define conv_dyn_posflag1 conv64_dyn_posflag1
#define conv_dyn_tag conv64_dyn_tag
#define _conv_expn_field _conv64_expn_field
#define _conv_expn_field2 _conv64_expn_field2
#define conv_invalid_val conv64_invalid_val
#define conv_sec_flags conv64_sec_flags
#define conv_sec_linkinfo conv64_sec_linkinfo
#define conv_sym_value conv64_sym_value
#else
#define conv_cap_tag conv32_cap_tag
#define conv_cap_val conv32_cap_val
#define conv_cap_val_hw1 conv32_cap_val_hw1
#define conv_cap_val_sf1 conv32_cap_val_sf1
#define conv_dyn_feature1 conv32_dyn_feature1
#define conv_dyn_flag1 conv32_dyn_flag1
#define conv_dyn_flag conv32_dyn_flag
#define conv_dyn_posflag1 conv32_dyn_posflag1
#define conv_dyn_tag conv32_dyn_tag
#define _conv_expn_field _conv32_expn_field
#define _conv_expn_field2 _conv32_expn_field2
#define conv_invalid_val conv32_invalid_val
#define conv_sec_flags conv32_sec_flags
#define conv_sec_linkinfo conv32_sec_linkinfo
#define conv_sym_value conv32_sym_value
#endif
/*
* ELFCLASS-specific core formatting functionality
*/
extern int _conv_expn_field(CONV_EXPN_FIELD_ARG *,
const Val_desc *, Conv_fmt_flags_t, const char *);
const char *);
/*
* ELFCLASS-specific formatting interfaces.
*/
Conv_inv_buf_t *);
Conv_inv_buf_t *);
Conv_inv_buf_t *);
/*
* Define macros for _conv_XXX() routines that accept local_sgs_msg as the
* final argument. The macros hide that argument from the caller's view and
* supply the SGS message array for the file from which the macro is used
* in its place. This trick is used to allow these functions to access the
* message strings from any source file they are called from.
*/
#ifdef __cplusplus
}
#endif
#endif /* _CONV_H */