Print this page
12046 Provide /proc/<PID>/fdinfo/

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/elfdump/common/gen_struct_layout.c
          +++ new/usr/src/cmd/sgs/elfdump/common/gen_struct_layout.c
↓ open down ↓ 560 lines elided ↑ open up ↑
 561  561          ARRAY_FIELD(struct utsname,     release,        0);
 562  562          ARRAY_FIELD(struct utsname,     version,        0);
 563  563          ARRAY_FIELD(struct utsname,     machine,        0);
 564  564  
 565  565          END;
 566  566  }
 567  567  
 568  568  static void
 569  569  gen_prfdinfo(void)
 570  570  {
 571      -        START(prfdinfo, prfdinfo_t);
      571 +        START(prfdinfo, prfdinfov1_t);
 572  572  
 573      -        SCALAR_FIELD(prfdinfo_t,        pr_fd,          0);
 574      -        SCALAR_FIELD(prfdinfo_t,        pr_mode,        0);
 575      -        SCALAR_FIELD(prfdinfo_t,        pr_uid,         0);
 576      -        SCALAR_FIELD(prfdinfo_t,        pr_gid,         0);
 577      -        SCALAR_FIELD(prfdinfo_t,        pr_major,       0);
 578      -        SCALAR_FIELD(prfdinfo_t,        pr_minor,       0);
 579      -        SCALAR_FIELD(prfdinfo_t,        pr_rmajor,      0);
 580      -        SCALAR_FIELD(prfdinfo_t,        pr_rminor,      0);
 581      -        SCALAR_FIELD(prfdinfo_t,        pr_ino,         0);
 582      -        SCALAR_FIELD(prfdinfo_t,        pr_offset,      0);
 583      -        SCALAR_FIELD(prfdinfo_t,        pr_size,        0);
 584      -        SCALAR_FIELD(prfdinfo_t,        pr_fileflags,   0);
 585      -        SCALAR_FIELD(prfdinfo_t,        pr_fdflags,     0);
 586      -        ARRAY_FIELD(prfdinfo_t,         pr_path,        0);
      573 +        SCALAR_FIELD(prfdinfov1_t,      pr_fd,          0);
      574 +        SCALAR_FIELD(prfdinfov1_t,      pr_mode,        0);
      575 +        SCALAR_FIELD(prfdinfov1_t,      pr_uid,         0);
      576 +        SCALAR_FIELD(prfdinfov1_t,      pr_gid,         0);
      577 +        SCALAR_FIELD(prfdinfov1_t,      pr_major,       0);
      578 +        SCALAR_FIELD(prfdinfov1_t,      pr_minor,       0);
      579 +        SCALAR_FIELD(prfdinfov1_t,      pr_rmajor,      0);
      580 +        SCALAR_FIELD(prfdinfov1_t,      pr_rminor,      0);
      581 +        SCALAR_FIELD(prfdinfov1_t,      pr_ino,         0);
      582 +        SCALAR_FIELD(prfdinfov1_t,      pr_offset,      0);
      583 +        SCALAR_FIELD(prfdinfov1_t,      pr_size,        0);
      584 +        SCALAR_FIELD(prfdinfov1_t,      pr_fileflags,   0);
      585 +        SCALAR_FIELD(prfdinfov1_t,      pr_fdflags,     0);
      586 +        ARRAY_FIELD(prfdinfov1_t,       pr_path,        0);
 587  587  
 588  588          END;
 589  589  }
 590  590  
 591  591  static void
 592  592  gen_prsecflags(void)
 593  593  {
 594  594          START(prsecflags, prsecflags_t);
 595  595          SCALAR_FIELD(prsecflags_t, pr_version, 0);
 596  596          SCALAR_FIELD(prsecflags_t, pr_effective, 0);
↓ open down ↓ 382 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX