Print this page
7595 sgs native-proto fails on pre-7029 illumos-gate
Reviewed by: Richard Lowe <richlowe@richlowe.net>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/include/conv.h
          +++ new/usr/src/cmd/sgs/include/conv.h
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   *      Copyright (c) 1988 AT&T
  24   24   *        All Rights Reserved
  25   25   *
  26   26   * Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
  27   27   * Copyright 2012 DEY Storage Systems, Inc.  All rights reserved.
       28 + * Copyright 2016 RackTop Systems.
  28   29   */
  29   30  
  30   31  #ifndef _CONV_H
  31   32  #define _CONV_H
  32   33  
  33   34  /*
  34   35   * Global include file for conversion library.
  35   36   */
  36   37  
  37   38  #include <stdlib.h>
  38   39  #include <libelf.h>
  39   40  #include <dlfcn.h>
  40   41  #include <libld.h>
  41   42  #include <sgs.h>
  42   43  #include <sgsmsg.h>
  43   44  
       45 +#ifndef NATIVE_BUILD
  44   46  #include <sys/secflags.h>
       47 +#endif
  45   48  
  46   49  #ifdef  __cplusplus
  47   50  extern "C" {
  48   51  #endif
  49   52  
  50   53  /*
  51   54   * Configuration features available - maintained here (instead of debug.h)
  52   55   * to save libconv from having to include debug.h which results in numerous
  53   56   * "declared but not used or defined" lint errors.
  54   57   */
↓ open down ↓ 265 lines elided ↑ open up ↑
 320  323          char                            buf[CONV_CNOTE_OLD_PR_FLAGS_BUFSIZE];
 321  324  } Conv_cnote_old_pr_flags_buf_t;
 322  325  
 323  326  /* conv_cnote_proc_flag() */
 324  327  #define CONV_CNOTE_PROC_FLAG_BUFSIZE    39
 325  328  typedef union {
 326  329          Conv_inv_buf_t                  inv_buf;
 327  330          char                            buf[CONV_CNOTE_PROC_FLAG_BUFSIZE];
 328  331  } Conv_cnote_proc_flag_buf_t;
 329  332  
      333 +#ifndef NATIVE_BUILD
 330  334  /* conv_prsecflags() */
 331  335  #define CONV_PRSECFLAGS_BUFSIZE         57
 332  336  typedef union {
 333  337          Conv_inv_buf_t                  inv_buf;
 334  338          char                            buf[CONV_PRSECFLAGS_BUFSIZE];
 335  339  } Conv_secflags_buf_t;
      340 +#endif
 336  341  
 337  342  /* conv_cnote_sigset() */
 338  343  #define CONV_CNOTE_SIGSET_BUFSIZE       639
 339  344  typedef union {
 340  345          Conv_inv_buf_t                  inv_buf;
 341  346          char                            buf[CONV_CNOTE_SIGSET_BUFSIZE];
 342  347  } Conv_cnote_sigset_buf_t;
 343  348  
 344  349  /* conv_cnote_fltset() */
 345  350  #define CONV_CNOTE_FLTSET_BUFSIZE       511
↓ open down ↓ 477 lines elided ↑ open up ↑
 823  828  extern  const char      *conv_cnote_pr_regname(Half, int, Conv_fmt_flags_t,
 824  829                              Conv_inv_buf_t *inv_buf);
 825  830  extern  const char      *conv_cnote_pr_stype(Word, Conv_fmt_flags_t,
 826  831                              Conv_inv_buf_t *);
 827  832  extern  const char      *conv_cnote_pr_what(short, short, Conv_fmt_flags_t,
 828  833                              Conv_inv_buf_t *);
 829  834  extern  const char      *conv_cnote_pr_why(short, Conv_fmt_flags_t,
 830  835                              Conv_inv_buf_t *);
 831  836  extern  const char      *conv_cnote_priv(int, Conv_fmt_flags_t,
 832  837                              Conv_inv_buf_t *);
      838 +#ifndef NATIVE_BUILD
 833  839  extern  const char      *conv_prsecflags(secflagset_t, Conv_fmt_flags_t,
 834  840                              Conv_secflags_buf_t *);
      841 +#endif
 835  842  extern  const char      *conv_cnote_psetid(int, Conv_fmt_flags_t,
 836  843                              Conv_inv_buf_t *);
 837  844  extern  const char      *conv_cnote_sa_flags(int, Conv_fmt_flags_t,
 838  845                              Conv_cnote_sa_flags_buf_t *);
 839  846  extern  const char      *conv_cnote_signal(Word, Conv_fmt_flags_t,
 840  847                              Conv_inv_buf_t *);
 841  848  extern  const char      *conv_cnote_si_code(Half, int, int, Conv_fmt_flags_t,
 842  849                              Conv_inv_buf_t *);
 843  850  extern  const char      *conv_cnote_sigset(uint32_t *, int,
 844  851                              Conv_fmt_flags_t, Conv_cnote_sigset_buf_t *);
↓ open down ↓ 278 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX