Print this page
11461 should use a native link-editor during the build
11463 SUNWonld has passed its use-by date
11464 cmd/sgs/tools should contain tools, not common code
11465 sgsmsg should be built with the rest of the build tools

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/include/conv.h
          +++ new/usr/src/cmd/sgs/include/conv.h
↓ open down ↓ 34 lines elided ↑ open up ↑
  35   35  /*
  36   36   * Global include file for conversion library.
  37   37   */
  38   38  
  39   39  #include <stdlib.h>
  40   40  #include <libelf.h>
  41   41  #include <dlfcn.h>
  42   42  #include <libld.h>
  43   43  #include <sgs.h>
  44   44  #include <sgsmsg.h>
  45      -
  46      -#ifndef NATIVE_BUILD
  47   45  #include <sys/secflags.h>
  48      -#endif
  49   46  
  50   47  #ifdef  __cplusplus
  51   48  extern "C" {
  52   49  #endif
  53   50  
  54   51  /*
  55   52   * Configuration features available - maintained here (instead of debug.h)
  56   53   * to save libconv from having to include debug.h which results in numerous
  57   54   * "declared but not used or defined" lint errors.
  58   55   */
↓ open down ↓ 265 lines elided ↑ open up ↑
 324  321          char                            buf[CONV_CNOTE_OLD_PR_FLAGS_BUFSIZE];
 325  322  } Conv_cnote_old_pr_flags_buf_t;
 326  323  
 327  324  /* conv_cnote_proc_flag() */
 328  325  #define CONV_CNOTE_PROC_FLAG_BUFSIZE    39
 329  326  typedef union {
 330  327          Conv_inv_buf_t                  inv_buf;
 331  328          char                            buf[CONV_CNOTE_PROC_FLAG_BUFSIZE];
 332  329  } Conv_cnote_proc_flag_buf_t;
 333  330  
 334      -#ifndef NATIVE_BUILD
 335  331  /* conv_prsecflags() */
 336  332  #define CONV_PRSECFLAGS_BUFSIZE         57
 337  333  typedef union {
 338  334          Conv_inv_buf_t                  inv_buf;
 339  335          char                            buf[CONV_PRSECFLAGS_BUFSIZE];
 340  336  } Conv_secflags_buf_t;
 341      -#endif
 342  337  
 343  338  /* conv_cnote_sigset() */
 344  339  #define CONV_CNOTE_SIGSET_BUFSIZE       639
 345  340  typedef union {
 346  341          Conv_inv_buf_t                  inv_buf;
 347  342          char                            buf[CONV_CNOTE_SIGSET_BUFSIZE];
 348  343  } Conv_cnote_sigset_buf_t;
 349  344  
 350  345  /* conv_cnote_fltset() */
 351  346  #define CONV_CNOTE_FLTSET_BUFSIZE       511
↓ open down ↓ 233 lines elided ↑ open up ↑
 585  580   *      as part of the value/string mapping. It is otherwise the same thing
 586  581   *      as CONV_DS_VD.
 587  582   */
 588  583  typedef enum {
 589  584          CONV_DS_MSGARR = 0,             /* Array of Msg */
 590  585          CONV_DS_VD = 1,                 /* Null terminated array of Val_desc */
 591  586          CONV_DS_VD2 = 2,                /* Null terminated array of Val_desc2 */
 592  587  } conv_ds_type_t;
 593  588  
 594  589  #define CONV_DS_COMMON_FIELDS \
 595      -        conv_ds_type_t  ds_type;        /* Type of data structure used */ \
      590 +        conv_ds_type_t  ds_type;        /* Type of data structure used */ \
 596  591          uint32_t        ds_baseval;     /* Value of first item */       \
 597  592          uint32_t        ds_topval       /* Value of last item */
 598  593  
 599  594  typedef struct {                /* Virtual base type --- do not instantiate */
 600  595          CONV_DS_COMMON_FIELDS;
 601  596  } conv_ds_t;
 602  597  typedef struct {
 603  598          CONV_DS_COMMON_FIELDS;
 604  599          const Msg               *ds_msg;
 605  600  } conv_ds_msg_t;
↓ open down ↓ 223 lines elided ↑ open up ↑
 829  824  extern  const char      *conv_cnote_pr_regname(Half, int, Conv_fmt_flags_t,
 830  825                              Conv_inv_buf_t *inv_buf);
 831  826  extern  const char      *conv_cnote_pr_stype(Word, Conv_fmt_flags_t,
 832  827                              Conv_inv_buf_t *);
 833  828  extern  const char      *conv_cnote_pr_what(short, short, Conv_fmt_flags_t,
 834  829                              Conv_inv_buf_t *);
 835  830  extern  const char      *conv_cnote_pr_why(short, Conv_fmt_flags_t,
 836  831                              Conv_inv_buf_t *);
 837  832  extern  const char      *conv_cnote_priv(int, Conv_fmt_flags_t,
 838  833                              Conv_inv_buf_t *);
 839      -#ifndef NATIVE_BUILD
 840  834  extern  const char      *conv_prsecflags(secflagset_t, Conv_fmt_flags_t,
 841  835                              Conv_secflags_buf_t *);
 842      -#endif
 843  836  extern  const char      *conv_cnote_psetid(int, Conv_fmt_flags_t,
 844  837                              Conv_inv_buf_t *);
 845  838  extern  const char      *conv_cnote_sa_flags(int, Conv_fmt_flags_t,
 846  839                              Conv_cnote_sa_flags_buf_t *);
 847  840  extern  const char      *conv_cnote_signal(Word, Conv_fmt_flags_t,
 848  841                              Conv_inv_buf_t *);
 849  842  extern  const char      *conv_cnote_si_code(Half, int, int, Conv_fmt_flags_t,
 850  843                              Conv_inv_buf_t *);
 851  844  extern  const char      *conv_cnote_sigset(uint32_t *, int,
 852  845                              Conv_fmt_flags_t, Conv_cnote_sigset_buf_t *);
↓ open down ↓ 278 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX