/* Open it in read-write mode. POSIX requires a reposition (fseek,
fsetpos, rewind) or EOF when transitioning from read to write;
freading is only deterministic after input or output, but this
test case should be portable even on open, after reposition, and
at EOF. */
/* Open it in read-write mode. POSIX requires a reposition (fseek,
fsetpos, rewind) or EOF when transitioning from read to write;
freading is only deterministic after input or output, but this
test case should be portable even on open, after reposition, and
at EOF. */