seghdr
kcore_seg_t seghdr;
CORE_SETMAGIC(seghdr, KCORESEG_MAGIC, 0, CORE_CPU);
seghdr.c_size = (u_long)_ALIGN(kd->cpu_dsize);
if (fwrite(&seghdr, sizeof(seghdr), 1, fp) < 1) {
gap = kd->kcore_hdr->c_seghdrsize - sizeof(seghdr);
offset += seghdr.c_size;
gap = seghdr.c_size - kd->cpu_dsize;
CORE_SETMAGIC(seghdr, KCORESEG_MAGIC, 0, CORE_DATA);
seghdr.c_size = dumpsize;
if (fwrite(&seghdr, sizeof(seghdr), 1, fp) < 1) {
gap = kd->kcore_hdr->c_seghdrsize - sizeof(seghdr);
struct seghdr *shp = (struct seghdr *)nspp;
struct seghdr *shp = (struct seghdr *)nspp;
struct seghdr *shp = (struct seghdr *)nspp;
(struct lsmsg *)&(nspp[sizeof(struct seghdr)]);
if (nsplen < sizeof(struct seghdr) + sizeof(struct lsmsg))