Check the _cnt field of the _iob struct for initialization rather than the
authorDonn Seeley <donn@ucbvax.Berkeley.EDU>
Fri, 31 Jan 1986 14:07:21 +0000 (06:07 -0800)
committerDonn Seeley <donn@ucbvax.Berkeley.EDU>
Fri, 31 Jan 1986 14:07:21 +0000 (06:07 -0800)
commit3a8b31bb3440af24f56bf8d6f648de7fff7e88f7
tree3a7c16e659cd4098034521a045e93094bc3a49a7
parent4d1d39b2f172c84a9e4d745ca338ad34b5246223
Check the _cnt field of the _iob struct for initialization rather than the
_base field -- this allows us to handle _iob structs that are set to _IORW
and are switching from reading to writing, as well as new _iob structs.

SCCS-vsn: lib/libc/vax/stdio.old/fputs.s 5.2
SCCS-vsn: lib/libc/vax/stdio.old/puts.s 5.2
usr/src/lib/libc/vax/stdio.old/fputs.s
usr/src/lib/libc/vax/stdio.old/puts.s