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


 343 
 344 
 345 static const sl_timestruc_layout_t timestruc_layout = {
 346         { 0,    8,      0,      0 },            /* sizeof (timestruc_t) */
 347         { 0,    4,      0,      0 },            /* tv_sec */
 348         { 4,    4,      0,      0 },            /* tv_nsec */
 349 };
 350 
 351 
 352 static const sl_utsname_layout_t utsname_layout = {
 353         { 0,    1285,   0,      0 },            /* sizeof (struct utsname) */
 354         { 0,    1,      257,    0 },            /* sysname[] */
 355         { 257,  1,      257,    0 },            /* nodename[] */
 356         { 514,  1,      257,    0 },            /* release[] */
 357         { 771,  1,      257,    0 },            /* version[] */
 358         { 1028, 1,      257,    0 },            /* machine[] */
 359 };
 360 
 361 
 362 static const sl_prfdinfo_layout_t prfdinfo_layout = {
 363         { 0,    1088,   0,      0 },            /* sizeof (prfdinfo_t) */
 364         { 0,    4,      0,      0 },            /* pr_fd */
 365         { 4,    4,      0,      0 },            /* pr_mode */
 366         { 8,    4,      0,      0 },            /* pr_uid */
 367         { 12,   4,      0,      0 },            /* pr_gid */
 368         { 16,   4,      0,      0 },            /* pr_major */
 369         { 20,   4,      0,      0 },            /* pr_minor */
 370         { 24,   4,      0,      0 },            /* pr_rmajor */
 371         { 28,   4,      0,      0 },            /* pr_rminor */
 372         { 32,   8,      0,      0 },            /* pr_ino */
 373         { 40,   8,      0,      0 },            /* pr_offset */
 374         { 48,   8,      0,      0 },            /* pr_size */
 375         { 56,   4,      0,      0 },            /* pr_fileflags */
 376         { 60,   4,      0,      0 },            /* pr_fdflags */
 377         { 64,   1,      1024,   0 },            /* pr_path[] */
 378 };
 379 
 380 
 381 static const sl_prsecflags_layout_t prsecflags_layout = {
 382         { 0,    40,     0,      0 },            /* sizeof (prsecflags_t) */
 383         { 0,    4,      0,      0 },            /* pr_version */




 343 
 344 
 345 static const sl_timestruc_layout_t timestruc_layout = {
 346         { 0,    8,      0,      0 },            /* sizeof (timestruc_t) */
 347         { 0,    4,      0,      0 },            /* tv_sec */
 348         { 4,    4,      0,      0 },            /* tv_nsec */
 349 };
 350 
 351 
 352 static const sl_utsname_layout_t utsname_layout = {
 353         { 0,    1285,   0,      0 },            /* sizeof (struct utsname) */
 354         { 0,    1,      257,    0 },            /* sysname[] */
 355         { 257,  1,      257,    0 },            /* nodename[] */
 356         { 514,  1,      257,    0 },            /* release[] */
 357         { 771,  1,      257,    0 },            /* version[] */
 358         { 1028, 1,      257,    0 },            /* machine[] */
 359 };
 360 
 361 
 362 static const sl_prfdinfo_layout_t prfdinfo_layout = {
 363         { 0,    1088,   0,      0 },            /* sizeof (prfdinfov1_t) */
 364         { 0,    4,      0,      0 },            /* pr_fd */
 365         { 4,    4,      0,      0 },            /* pr_mode */
 366         { 8,    4,      0,      0 },            /* pr_uid */
 367         { 12,   4,      0,      0 },            /* pr_gid */
 368         { 16,   4,      0,      0 },            /* pr_major */
 369         { 20,   4,      0,      0 },            /* pr_minor */
 370         { 24,   4,      0,      0 },            /* pr_rmajor */
 371         { 28,   4,      0,      0 },            /* pr_rminor */
 372         { 32,   8,      0,      0 },            /* pr_ino */
 373         { 40,   8,      0,      0 },            /* pr_offset */
 374         { 48,   8,      0,      0 },            /* pr_size */
 375         { 56,   4,      0,      0 },            /* pr_fileflags */
 376         { 60,   4,      0,      0 },            /* pr_fdflags */
 377         { 64,   1,      1024,   0 },            /* pr_path[] */
 378 };
 379 
 380 
 381 static const sl_prsecflags_layout_t prsecflags_layout = {
 382         { 0,    40,     0,      0 },            /* sizeof (prsecflags_t) */
 383         { 0,    4,      0,      0 },            /* pr_version */