SHF_WRITING
} else if (shf->flags & SHF_WRITING)
if (shf->flags & SHF_WRITING) {
shf->flags &= ~SHF_WRITING;
shf->flags |= SHF_WRITING;
if ((shf->flags & SHF_WRITING) && shf_emptybuf(shf, EB_READSW) == EOF)
if ((shf->flags & SHF_WRITING) && shf_emptybuf(shf, EB_READSW) == EOF)
shf->flags &= ~(SHF_EOF | SHF_READING | SHF_WRITING);
if ((shf->flags & SHF_WRITING) && shf_emptybuf(shf, EB_READSW) == EOF)