core_read
static bool core_read(struct procstat_core *core, void *buf, size_t len);
if (!core_read(core, &nhdr, sizeof(nhdr)))
if (!core_read(core, nbuf, sizeof(nbuf)))
if (!core_read(core, &cstructsize, sizeof(cstructsize)))
if (!core_read(core, (char *)buf + curlen, len)) {
if (!core_read(core, buf, len))
if (!core_read(core, &nhdr, sizeof(nhdr)))
if (!core_read(core, nbuf, sizeof(nbuf)))
if (!core_read(core, &cstructsize, sizeof(cstructsize)))