SCCS-vsn: usr.bin/f77/libI77/rewind.c 5.2
SCCS-vsn: usr.bin/f77/libI77/backspace.c 5.2
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- * @(#)backspace.c 5.1 %G%
+ * @(#)backspace.c 5.2 %G%
if (not_legal(lunit))
err(errflag, F_ERUNIT, bksp)
b= &units[lunit];
if (not_legal(lunit))
err(errflag, F_ERUNIT, bksp)
b= &units[lunit];
- if(!b->ufd && (n = fk_open(READ, SEQ, FMT, (ftnint)lunit)) )
- err(errflag, n, bksp)
+ if(!b->ufd) return(OK);
lfname = b->ufnm;
if(b->uend)
{ b->uend = NO;
lfname = b->ufnm;
if(b->uend)
{ b->uend = NO;
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
errflag = a->aerr;
if(not_legal(lunit)) err(errflag,F_ERUNIT,rwnd)
b = &units[lunit];
errflag = a->aerr;
if(not_legal(lunit)) err(errflag,F_ERUNIT,rwnd)
b = &units[lunit];
- if(!b->ufd && (n=fk_open(READ,SEQ,FMT,(ftnint)lunit)) )
- err(errflag,n,rwnd)
+ if(!b->ufd) return(OK);
lfname = b->ufnm;
if(!b->useek) err(errflag,F_ERNOBKSP,rwnd)
b->uend = NO;
lfname = b->ufnm;
if(!b->useek) err(errflag,F_ERNOBKSP,rwnd)
b->uend = NO;