/* Copyright (c) 1979 Regents of the University of California */
struct _iobuf
*freopen(file
, mode
, iop
)
register struct _iobuf
*iop
;
if((unixmode
= (iop
->_flag
& 3) - 1) < 0) {
if ((iop
->_flag
& _IOWRT
) && a_flag
==0 ) {
if((iop
->_flag
& _IOREAD
) && (f
> 0)) {
} else if ((0>(f
= open(file
, unixmode
))) && (a_flag
|| !(iop
->_flag
&_IOREAD
))){