Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section

*** 22,36 **** /* * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * * Copyright 2015 Nexenta Systems, Inc. All rights reserved. */ /* * This program is used to generate the contents of the ! * struct_layout_XXX.c files that contain per-archtecture * structure layout information. * * Although not part of elfdump, it is built by the makefile * along with it. * To use it: --- 22,37 ---- /* * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * * Copyright 2015 Nexenta Systems, Inc. All rights reserved. + * Copyright 2018 Joyent, Inc. */ /* * This program is used to generate the contents of the ! * struct_layout_XXX.c files that contain per-architecture * structure layout information. * * Although not part of elfdump, it is built by the makefile * along with it. * To use it:
*** 597,606 **** --- 598,616 ---- SCALAR_FIELD(prsecflags_t, pr_lower, 0); SCALAR_FIELD(prsecflags_t, pr_upper, 0); END; } + static void + gen_prlwpname(void) + { + START(prlwpname, prlwpname_t); + SCALAR_FIELD(prlwpname_t, pr_lwpid, 0); + ARRAY_FIELD(prlwpname_t, pr_lwpname, 0); + END; + } + /*ARGSUSED*/ int main(int argc, char *argv[]) { const char *fmt = "\t&%s_layout,\n";
*** 638,647 **** --- 648,658 ---- gen_sysset(); gen_timestruc(); gen_utsname(); gen_prfdinfo(); gen_prsecflags(); + gen_prlwpname(); /* * Generate the full arch_layout description */ (void) printf(
*** 666,675 **** --- 677,687 ---- (void) printf(fmt, "sysset"); (void) printf(fmt, "timestruc"); (void) printf(fmt, "utsname"); (void) printf(fmt, "prfdinfo"); (void) printf(fmt, "prsecflags"); + (void) printf(fmt, "prlwpname"); (void) printf("};\n"); /* * A public function, to make the information available */