Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/elfdump/common/struct_layout_sparc.c
          +++ new/usr/src/cmd/sgs/elfdump/common/struct_layout_sparc.c
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  /*
  27   27   * Copyright 2012 DEY Storage Systems, Inc.  All rights reserved.
       28 + * Copyright 2018 Joyent, Inc.
  28   29   */
       30 +
  29   31  #include <struct_layout.h>
  30   32  
  31   33  
  32   34  static const sl_auxv_layout_t auxv_layout = {
  33   35          { 0,    8,      0,      0 },            /* sizeof (auxv_t) */
  34   36          { 0,    4,      0,      1 },            /* a_type */
  35   37          { 4,    4,      0,      1 },            /* a_un.a_val */
  36   38          { 4,    4,      0,      0 },            /* a_un.a_ptr */
  37   39          { 4,    4,      0,      0 },            /* a_un.a_fcn */
  38   40  };
↓ open down ↓ 340 lines elided ↑ open up ↑
 379  381  static const sl_prsecflags_layout_t prsecflags_layout = {
 380  382          { 0,    40,     0,      0 },            /* sizeof (prsecflags_t) */
 381  383          { 0,    4,      0,      0 },            /* pr_version */
 382  384          { 8,    8,      0,      0 },            /* pr_effective */
 383  385          { 16,   8,      0,      0 },            /* pr_inherit */
 384  386          { 24,   8,      0,      0 },            /* pr_lower */
 385  387          { 32,   8,      0,      0 },            /* pr_upper */
 386  388  };
 387  389  
 388  390  
      391 +static const sl_prlwpname_layout_t prlwpname_layout = {
      392 +        { 0,    40,     0,      0 },            /* sizeof (prlwpname_t) */
      393 +        { 0,    8,      0,      0 },            /* pr_lwpid */
      394 +        { 8,    1,      32,     0 },            /* pr_lwpname[] */
      395 +};
 389  396  
 390  397  
      398 +
      399 +
 391  400  static const sl_arch_layout_t layout_sparc = {
 392  401          &auxv_layout,
 393  402          &fltset_layout,
 394  403          &lwpsinfo_layout,
 395  404          &lwpstatus_layout,
 396  405          &prcred_layout,
 397  406          &priv_impl_info_layout,
 398  407          &prpriv_layout,
 399  408          &psinfo_layout,
 400  409          &pstatus_layout,
↓ open down ↓ 2 lines elided ↑ open up ↑
 403  412          &prstatus_layout,
 404  413          &sigaction_layout,
 405  414          &siginfo_layout,
 406  415          &sigset_layout,
 407  416          &stack_layout,
 408  417          &sysset_layout,
 409  418          &timestruc_layout,
 410  419          &utsname_layout,
 411  420          &prfdinfo_layout,
 412  421          &prsecflags_layout,
      422 +        &prlwpname_layout,
 413  423  };
 414  424  
 415  425  
 416  426  const sl_arch_layout_t *
 417  427  struct_layout_sparc(void)
 418  428  {
 419  429          return (&layout_sparc);
 420  430  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX