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


 359 
 360 static const sl_prfdinfo_layout_t prfdinfo_layout = {
 361         { 0,    1088,   0,      0 },            /* sizeof (prfdinfo_t) */
 362         { 0,    4,      0,      0 },            /* pr_fd */
 363         { 4,    4,      0,      0 },            /* pr_mode */
 364         { 8,    4,      0,      0 },            /* pr_uid */
 365         { 12,   4,      0,      0 },            /* pr_gid */
 366         { 16,   4,      0,      0 },            /* pr_major */
 367         { 20,   4,      0,      0 },            /* pr_minor */
 368         { 24,   4,      0,      0 },            /* pr_rmajor */
 369         { 28,   4,      0,      0 },            /* pr_rminor */
 370         { 32,   8,      0,      0 },            /* pr_ino */
 371         { 40,   8,      0,      0 },            /* pr_offset */
 372         { 48,   8,      0,      0 },            /* pr_size */
 373         { 56,   4,      0,      0 },            /* pr_fileflags */
 374         { 60,   4,      0,      0 },            /* pr_fdflags */
 375         { 64,   1,      1024,   0 },            /* pr_path[] */
 376 };
 377 
 378 










 379 
 380 
 381 static const sl_arch_layout_t layout_sparc = {
 382         &auxv_layout,
 383         &fltset_layout,
 384         &lwpsinfo_layout,
 385         &lwpstatus_layout,
 386         &prcred_layout,
 387         &priv_impl_info_layout,
 388         &prpriv_layout,
 389         &psinfo_layout,
 390         &pstatus_layout,
 391         &prgregset_layout,
 392         &prpsinfo_layout,
 393         &prstatus_layout,
 394         &sigaction_layout,
 395         &siginfo_layout,
 396         &sigset_layout,
 397         &stack_layout,
 398         &sysset_layout,
 399         &timestruc_layout,
 400         &utsname_layout,
 401         &prfdinfo_layout,

 402 };
 403 
 404 
 405 const sl_arch_layout_t *
 406 struct_layout_sparc(void)
 407 {
 408         return (&layout_sparc);
 409 }


 359 
 360 static const sl_prfdinfo_layout_t prfdinfo_layout = {
 361         { 0,    1088,   0,      0 },            /* sizeof (prfdinfo_t) */
 362         { 0,    4,      0,      0 },            /* pr_fd */
 363         { 4,    4,      0,      0 },            /* pr_mode */
 364         { 8,    4,      0,      0 },            /* pr_uid */
 365         { 12,   4,      0,      0 },            /* pr_gid */
 366         { 16,   4,      0,      0 },            /* pr_major */
 367         { 20,   4,      0,      0 },            /* pr_minor */
 368         { 24,   4,      0,      0 },            /* pr_rmajor */
 369         { 28,   4,      0,      0 },            /* pr_rminor */
 370         { 32,   8,      0,      0 },            /* pr_ino */
 371         { 40,   8,      0,      0 },            /* pr_offset */
 372         { 48,   8,      0,      0 },            /* pr_size */
 373         { 56,   4,      0,      0 },            /* pr_fileflags */
 374         { 60,   4,      0,      0 },            /* pr_fdflags */
 375         { 64,   1,      1024,   0 },            /* pr_path[] */
 376 };
 377 
 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 
 389 
 390 
 391 static const sl_arch_layout_t layout_sparc = {
 392         &auxv_layout,
 393         &fltset_layout,
 394         &lwpsinfo_layout,
 395         &lwpstatus_layout,
 396         &prcred_layout,
 397         &priv_impl_info_layout,
 398         &prpriv_layout,
 399         &psinfo_layout,
 400         &pstatus_layout,
 401         &prgregset_layout,
 402         &prpsinfo_layout,
 403         &prstatus_layout,
 404         &sigaction_layout,
 405         &siginfo_layout,
 406         &sigset_layout,
 407         &stack_layout,
 408         &sysset_layout,
 409         &timestruc_layout,
 410         &utsname_layout,
 411         &prfdinfo_layout,
 412         &prsecflags_layout,
 413 };
 414 
 415 
 416 const sl_arch_layout_t *
 417 struct_layout_sparc(void)
 418 {
 419         return (&layout_sparc);
 420 }