Print this page
4839 3294 generated elfdump struct layouts by hand, shouldn't have

@@ -21,12 +21,10 @@
 
 /*
  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 
 #include <stdlib.h>
 #include <stddef.h>
 #include <stdio.h>
 #include <string.h>

@@ -554,10 +552,33 @@
         ARRAY_FIELD(struct utsname,     machine,        0);
 
         END;
 }
 
+static void
+gen_prfdinfo(void)
+{
+        START(prfdinfo, prfdinfo_t);
+
+        SCALAR_FIELD(prfdinfo_t,        pr_fd,          0);
+        SCALAR_FIELD(prfdinfo_t,        pr_mode,        0);
+        SCALAR_FIELD(prfdinfo_t,        pr_uid,         0);
+        SCALAR_FIELD(prfdinfo_t,        pr_gid,         0);
+        SCALAR_FIELD(prfdinfo_t,        pr_major,       0);
+        SCALAR_FIELD(prfdinfo_t,        pr_minor,       0);
+        SCALAR_FIELD(prfdinfo_t,        pr_rmajor,      0);
+        SCALAR_FIELD(prfdinfo_t,        pr_rminor,      0);
+        SCALAR_FIELD(prfdinfo_t,        pr_ino,         0);
+        SCALAR_FIELD(prfdinfo_t,        pr_offset,      0);
+        SCALAR_FIELD(prfdinfo_t,        pr_size,        0);
+        SCALAR_FIELD(prfdinfo_t,        pr_fileflags,   0);
+        SCALAR_FIELD(prfdinfo_t,        pr_fdflags,     0);
+        ARRAY_FIELD(prfdinfo_t,         pr_path,        0);
+
+        END;
+}
+
 
 /*ARGSUSED*/
 int
 main(int argc, char *argv[])
 {

@@ -582,10 +603,11 @@
         gen_sigaction();
         gen_stack();
         gen_sysset();
         gen_timestruc();
         gen_utsname();
+        gen_prfdinfo();
 
 
         /*
          * Generate the full arch_layout description
          */

@@ -609,10 +631,11 @@
         (void) printf(fmt, "sigset");
         (void) printf(fmt, "stack");
         (void) printf(fmt, "sysset");
         (void) printf(fmt, "timestruc");
         (void) printf(fmt, "utsname");
+        (void) printf(fmt, "prfdinfo");
         (void) printf("};\n");
 
         /*
          * A public function, to make the information available
          */