Print this page
OS-5192 need faster clock_gettime
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Joshua M. Clulow <jmc@joyent.com>
Reviewed by: Ryan Zezeski <ryan@zinascii.com>
OS-3280 need a way to specify the root of a native system in the lx brand
OS-3279 lx brand should allow delegated datasets
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
OS-2949 add support for AT_RANDOM aux vector entry
        
*** 23,33 ****
   * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
   * Use is subject to license terms.
   */
  /*
   * Copyright 2012 DEY Storage Systems, Inc.  All rights reserved.
!  * Copyright (c) 2013, Joyent, Inc. All rights reserved.
   */
  
  /*
   * String conversion routines the system structs found in
   * Solaris core file note sections. These items are not
--- 23,33 ----
   * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
   * Use is subject to license terms.
   */
  /*
   * Copyright 2012 DEY Storage Systems, Inc.  All rights reserved.
!  * Copyright 2016 Joyent, Inc.
   */
  
  /*
   * String conversion routines the system structs found in
   * Solaris core file note sections. These items are not
*** 74,84 ****
  
  const char *
  conv_cnote_auxv_type(Word type, Conv_fmt_flags_t fmt_flags,
      Conv_inv_buf_t *inv_buf)
  {
!         static const Msg        types_0_22[] = {
                  MSG_AUXV_AT_NULL,               MSG_AUXV_AT_IGNORE,
                  MSG_AUXV_AT_EXECFD,             MSG_AUXV_AT_PHDR,
                  MSG_AUXV_AT_PHENT,              MSG_AUXV_AT_PHNUM,
                  MSG_AUXV_AT_PAGESZ,             MSG_AUXV_AT_BASE,
                  MSG_AUXV_AT_FLAGS,              MSG_AUXV_AT_ENTRY,
--- 74,84 ----
  
  const char *
  conv_cnote_auxv_type(Word type, Conv_fmt_flags_t fmt_flags,
      Conv_inv_buf_t *inv_buf)
  {
!         static const Msg        types_0_25[] = {
                  MSG_AUXV_AT_NULL,               MSG_AUXV_AT_IGNORE,
                  MSG_AUXV_AT_EXECFD,             MSG_AUXV_AT_PHDR,
                  MSG_AUXV_AT_PHENT,              MSG_AUXV_AT_PHNUM,
                  MSG_AUXV_AT_PAGESZ,             MSG_AUXV_AT_BASE,
                  MSG_AUXV_AT_FLAGS,              MSG_AUXV_AT_ENTRY,
*** 86,99 ****
                  MSG_AUXV_AT_EUID,               MSG_AUXV_AT_GID,
                  MSG_AUXV_AT_EGID,               MSG_AUXV_AT_PLATFORM,
                  MSG_AUXV_AT_HWCAP,              MSG_AUXV_AT_CLKTCK,
                  MSG_AUXV_AT_FPUCW,              MSG_AUXV_AT_DCACHEBSIZE,
                  MSG_AUXV_AT_ICACHEBSIZE,        MSG_AUXV_AT_UCACHEBSIZE,
!                 MSG_AUXV_AT_IGNOREPPC
          };
!         static const conv_ds_msg_t ds_types_0_22 = {
!             CONV_DS_MSG_INIT(0, types_0_22) };
  
          static const Msg        types_2000_2011[] = {
                  MSG_AUXV_AT_SUN_UID,            MSG_AUXV_AT_SUN_RUID,
                  MSG_AUXV_AT_SUN_GID,            MSG_AUXV_AT_SUN_RGID,
                  MSG_AUXV_AT_SUN_LDELF,          MSG_AUXV_AT_SUN_LDSHDR,
--- 86,100 ----
                  MSG_AUXV_AT_EUID,               MSG_AUXV_AT_GID,
                  MSG_AUXV_AT_EGID,               MSG_AUXV_AT_PLATFORM,
                  MSG_AUXV_AT_HWCAP,              MSG_AUXV_AT_CLKTCK,
                  MSG_AUXV_AT_FPUCW,              MSG_AUXV_AT_DCACHEBSIZE,
                  MSG_AUXV_AT_ICACHEBSIZE,        MSG_AUXV_AT_UCACHEBSIZE,
!                 MSG_AUXV_AT_IGNOREPPC,          MSG_AUXV_AT_SECURE,
!                 MSG_AUXV_AT_BASE_PLATFORM,      MSG_AUXV_AT_RANDOM
          };
!         static const conv_ds_msg_t ds_types_0_25 = {
!             CONV_DS_MSG_INIT(0, types_0_25) };
  
          static const Msg        types_2000_2011[] = {
                  MSG_AUXV_AT_SUN_UID,            MSG_AUXV_AT_SUN_RUID,
                  MSG_AUXV_AT_SUN_GID,            MSG_AUXV_AT_SUN_RGID,
                  MSG_AUXV_AT_SUN_LDELF,          MSG_AUXV_AT_SUN_LDSHDR,
*** 102,124 ****
                  MSG_AUXV_AT_SUN_IFLUSH,         MSG_AUXV_AT_SUN_CPU
          };
          static const conv_ds_msg_t ds_types_2000_2011 = {
              CONV_DS_MSG_INIT(2000, types_2000_2011) };
  
!         static const Msg        types_2014_2023[] = {
                  MSG_AUXV_AT_SUN_EXECNAME,       MSG_AUXV_AT_SUN_MMU,
                  MSG_AUXV_AT_SUN_LDDATA,         MSG_AUXV_AT_SUN_AUXFLAGS,
                  MSG_AUXV_AT_SUN_EMULATOR,       MSG_AUXV_AT_SUN_BRANDNAME,
                  MSG_AUXV_AT_SUN_BRAND_AUX1,     MSG_AUXV_AT_SUN_BRAND_AUX2,
!                 MSG_AUXV_AT_SUN_BRAND_AUX3,     MSG_AUXV_AT_SUN_HWCAP2
          };
!         static const conv_ds_msg_t ds_types_2014_2023 = {
!             CONV_DS_MSG_INIT(2014, types_2014_2023) };
  
          static const conv_ds_t  *ds[] = {
!                 CONV_DS_ADDR(ds_types_0_22), CONV_DS_ADDR(ds_types_2000_2011),
!                 CONV_DS_ADDR(ds_types_2014_2023), NULL };
  
          return (conv_map_ds(ELFOSABI_NONE, EM_NONE, type, ds, fmt_flags,
              inv_buf));
  }
  
--- 103,126 ----
                  MSG_AUXV_AT_SUN_IFLUSH,         MSG_AUXV_AT_SUN_CPU
          };
          static const conv_ds_msg_t ds_types_2000_2011 = {
              CONV_DS_MSG_INIT(2000, types_2000_2011) };
  
!         static const Msg        types_2014_2025[] = {
                  MSG_AUXV_AT_SUN_EXECNAME,       MSG_AUXV_AT_SUN_MMU,
                  MSG_AUXV_AT_SUN_LDDATA,         MSG_AUXV_AT_SUN_AUXFLAGS,
                  MSG_AUXV_AT_SUN_EMULATOR,       MSG_AUXV_AT_SUN_BRANDNAME,
                  MSG_AUXV_AT_SUN_BRAND_AUX1,     MSG_AUXV_AT_SUN_BRAND_AUX2,
!                 MSG_AUXV_AT_SUN_BRAND_AUX3,     MSG_AUXV_AT_SUN_HWCAP2,
!                 MSG_AUXV_AT_SUN_BRAND_NROOT,    MSG_AUXV_AT_SUN_COMMPAGE
          };
!         static const conv_ds_msg_t ds_types_2014_2025 = {
!             CONV_DS_MSG_INIT(2014, types_2014_2025) };
  
          static const conv_ds_t  *ds[] = {
!                 CONV_DS_ADDR(ds_types_0_25), CONV_DS_ADDR(ds_types_2000_2011),
!                 CONV_DS_ADDR(ds_types_2014_2025), NULL };
  
          return (conv_map_ds(ELFOSABI_NONE, EM_NONE, type, ds, fmt_flags,
              inv_buf));
  }