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


 490  */
 491 typedef struct {
 492         sl_field_t              sizeof_struct;
 493         sl_field_t              tv_sec;
 494         sl_field_t              tv_nsec;
 495 } sl_timestruc_layout_t;
 496 
 497 /*
 498  * Layout description of struct utsname, from <sys/utsname.h>.
 499  */
 500 typedef struct {
 501         sl_field_t              sizeof_struct;
 502         sl_field_t              sysname;
 503         sl_field_t              nodename;
 504         sl_field_t              release;
 505         sl_field_t              version;
 506         sl_field_t              machine;
 507 } sl_utsname_layout_t;
 508 
 509 /*
 510  * Layout description of prdinfo_t, from <sys/procfs.h>.
 511  */
 512 typedef struct {
 513         sl_field_t              sizeof_struct;
 514         sl_field_t              pr_fd;
 515         sl_field_t              pr_mode;
 516         sl_field_t              pr_uid;
 517         sl_field_t              pr_gid;
 518         sl_field_t              pr_major;
 519         sl_field_t              pr_minor;
 520         sl_field_t              pr_rmajor;
 521         sl_field_t              pr_rminor;
 522         sl_field_t              pr_ino;
 523         sl_field_t              pr_offset;
 524         sl_field_t              pr_size;
 525         sl_field_t              pr_fileflags;
 526         sl_field_t              pr_fdflags;
 527         sl_field_t              pr_path;
 528 } sl_prfdinfo_layout_t;
 529 
 530 typedef struct {




 490  */
 491 typedef struct {
 492         sl_field_t              sizeof_struct;
 493         sl_field_t              tv_sec;
 494         sl_field_t              tv_nsec;
 495 } sl_timestruc_layout_t;
 496 
 497 /*
 498  * Layout description of struct utsname, from <sys/utsname.h>.
 499  */
 500 typedef struct {
 501         sl_field_t              sizeof_struct;
 502         sl_field_t              sysname;
 503         sl_field_t              nodename;
 504         sl_field_t              release;
 505         sl_field_t              version;
 506         sl_field_t              machine;
 507 } sl_utsname_layout_t;
 508 
 509 /*
 510  * Layout description of prfdinfov1_t, from <sys/procfs.h>.
 511  */
 512 typedef struct {
 513         sl_field_t              sizeof_struct;
 514         sl_field_t              pr_fd;
 515         sl_field_t              pr_mode;
 516         sl_field_t              pr_uid;
 517         sl_field_t              pr_gid;
 518         sl_field_t              pr_major;
 519         sl_field_t              pr_minor;
 520         sl_field_t              pr_rmajor;
 521         sl_field_t              pr_rminor;
 522         sl_field_t              pr_ino;
 523         sl_field_t              pr_offset;
 524         sl_field_t              pr_size;
 525         sl_field_t              pr_fileflags;
 526         sl_field_t              pr_fdflags;
 527         sl_field_t              pr_path;
 528 } sl_prfdinfo_layout_t;
 529 
 530 typedef struct {