Print this page
Code review comments from pmooney (sundry), and igork (screwups in zonecfg refactoring)

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 ↓ 368 lines elided ↑ open up ↑
 369  369          { 28,   4,      0,      0 },            /* pr_rminor */
 370  370          { 32,   8,      0,      0 },            /* pr_ino */
 371  371          { 40,   8,      0,      0 },            /* pr_offset */
 372  372          { 48,   8,      0,      0 },            /* pr_size */
 373  373          { 56,   4,      0,      0 },            /* pr_fileflags */
 374  374          { 60,   4,      0,      0 },            /* pr_fdflags */
 375  375          { 64,   1,      1024,   0 },            /* pr_path[] */
 376  376  };
 377  377  
 378  378  
      379 +static const sl_prsecflags_layout_t prsecflags_layout = {
      380 +       { 0,    20,     0,      0 },            /* sizeof (prsecflags_t) */
      381 +       { 0,    4,      0,      0 },            /* pr_version */
      382 +       { 4,    4,      0,      0 },            /* pr_effective */
      383 +       { 8,    4,      0,      0 },            /* pr_inherit */
      384 +       { 12,   4,      0,      0 },            /* pr_lower */
      385 +       { 16,   4,      0,      0 },            /* pr_upper */
      386 +};
      387 +
      388 +
 379  389  
 380  390  
 381  391  static const sl_arch_layout_t layout_sparc = {
 382  392          &auxv_layout,
 383  393          &fltset_layout,
 384  394          &lwpsinfo_layout,
 385  395          &lwpstatus_layout,
 386  396          &prcred_layout,
 387  397          &priv_impl_info_layout,
 388  398          &prpriv_layout,
↓ open down ↓ 3 lines elided ↑ open up ↑
 392  402          &prpsinfo_layout,
 393  403          &prstatus_layout,
 394  404          &sigaction_layout,
 395  405          &siginfo_layout,
 396  406          &sigset_layout,
 397  407          &stack_layout,
 398  408          &sysset_layout,
 399  409          &timestruc_layout,
 400  410          &utsname_layout,
 401  411          &prfdinfo_layout,
      412 +        &prsecflags_layout,
 402  413  };
 403  414  
 404  415  
 405  416  const sl_arch_layout_t *
 406  417  struct_layout_sparc(void)
 407  418  {
 408  419          return (&layout_sparc);
 409  420  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX