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


 551 }
 552 
 553 /* struct utsname, <sys/utsname.h> */
 554 static void
 555 gen_utsname(void)
 556 {
 557         START(utsname, struct utsname);
 558 
 559         ARRAY_FIELD(struct utsname,     sysname,        0);
 560         ARRAY_FIELD(struct utsname,     nodename,       0);
 561         ARRAY_FIELD(struct utsname,     release,        0);
 562         ARRAY_FIELD(struct utsname,     version,        0);
 563         ARRAY_FIELD(struct utsname,     machine,        0);
 564 
 565         END;
 566 }
 567 
 568 static void
 569 gen_prfdinfo(void)
 570 {
 571         START(prfdinfo, prfdinfo_t);
 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);
 587 
 588         END;
 589 }
 590 
 591 static void
 592 gen_prsecflags(void)
 593 {
 594         START(prsecflags, prsecflags_t);
 595         SCALAR_FIELD(prsecflags_t, pr_version, 0);
 596         SCALAR_FIELD(prsecflags_t, pr_effective, 0);
 597         SCALAR_FIELD(prsecflags_t, pr_inherit, 0);
 598         SCALAR_FIELD(prsecflags_t, pr_lower, 0);
 599         SCALAR_FIELD(prsecflags_t, pr_upper, 0);
 600         END;
 601 }
 602 
 603 static void
 604 gen_prlwpname(void)
 605 {
 606         START(prlwpname, prlwpname_t);




 551 }
 552 
 553 /* struct utsname, <sys/utsname.h> */
 554 static void
 555 gen_utsname(void)
 556 {
 557         START(utsname, struct utsname);
 558 
 559         ARRAY_FIELD(struct utsname,     sysname,        0);
 560         ARRAY_FIELD(struct utsname,     nodename,       0);
 561         ARRAY_FIELD(struct utsname,     release,        0);
 562         ARRAY_FIELD(struct utsname,     version,        0);
 563         ARRAY_FIELD(struct utsname,     machine,        0);
 564 
 565         END;
 566 }
 567 
 568 static void
 569 gen_prfdinfo(void)
 570 {
 571         START(prfdinfo, prfdinfov1_t);
 572 
 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 
 588         END;
 589 }
 590 
 591 static void
 592 gen_prsecflags(void)
 593 {
 594         START(prsecflags, prsecflags_t);
 595         SCALAR_FIELD(prsecflags_t, pr_version, 0);
 596         SCALAR_FIELD(prsecflags_t, pr_effective, 0);
 597         SCALAR_FIELD(prsecflags_t, pr_inherit, 0);
 598         SCALAR_FIELD(prsecflags_t, pr_lower, 0);
 599         SCALAR_FIELD(prsecflags_t, pr_upper, 0);
 600         END;
 601 }
 602 
 603 static void
 604 gen_prlwpname(void)
 605 {
 606         START(prlwpname, prlwpname_t);