addbin will scan the input file looking for the named structures and adding them to the output file. This template file may be used by kcrash or kdb. kdb requires that the template file be loaded by mkdbstr. kcrash uses the ST command with a file name.
listbin will display the structure templates in the template file.
i.e.
createbin serial.str serial.bin buf device bdevsw cdevsw addbin serial.str serial.bin linesw sigaction listbin serial.bincommand = listbin FinalAddress is: 086E StrVersion is: 1.4 Structure - cred 0 Max string is: 00C Table size is: 020(32)
0 cr_ref 2 short 2 cr_ngroups 2 short 4 cr_uid 6 long 8 cr_gid 6 long C cr_ruid 6 long 10 cr_rgid 6 long 14 cr_suid 6 long 18 cr_sgid 6 long 1C cr_groups[1] 86 long 001( 1)