SCCS-vsn: usr.bin/f77/libI77/close.c 5.3
SCCS-vsn: usr.bin/f77/libI77/dolio.c 5.3
SCCS-vsn: usr.bin/f77/libI77/due.c 5.2
SCCS-vsn: usr.bin/f77/libI77/sue.c 5.2
SCCS-vsn: usr.bin/f77/libI77/c_sfe.c 5.3
SCCS-vsn: usr.bin/f77/libI77/c_dfe.c 5.3
* 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.
*
-c_dfe(a,flag,str) cilist *a; char *str;
+c_dfe(a,flg,str) cilist *a; char *str;
{ int n;
sequential = NO;
external = YES;
{ int n;
sequential = NO;
external = YES;
lunit = a->ciunit;
if(not_legal(lunit)) err(errflag,F_ERUNIT,str);
curunit = &units[lunit];
lunit = a->ciunit;
if(not_legal(lunit)) err(errflag,F_ERUNIT,str);
curunit = &units[lunit];
- if(!curunit->ufd && (n=fk_open(flag,DIR,FMT,(ftnint)lunit)))
+ if(!curunit->ufd && (n=fk_open(flg,DIR,FMT,(ftnint)lunit)))
err(errflag,n,str)
cf = curunit->ufd;
elist = YES;
err(errflag,n,str)
cf = curunit->ufd;
elist = YES;
* 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.
*
-c_sfe(a,flag,mode,str) cilist *a; char *str; /* check */
+c_sfe(a,flg,mode,str) cilist *a; char *str; /* check */
lunit = a->ciunit;
if(not_legal(lunit)) err(errflag,F_ERUNIT,str);
curunit = p = &units[lunit];
lunit = a->ciunit;
if(not_legal(lunit)) err(errflag,F_ERUNIT,str);
curunit = p = &units[lunit];
- if(!p->ufd && (n=fk_open(flag,mode,FMT,(ftnint)lunit)) )
+ if(!p->ufd && (n=fk_open(flg,mode,FMT,(ftnint)lunit)) )
err(errflag,n,str)
cf = curunit->ufd;
elist = YES;
err(errflag,n,str)
cf = curunit->ufd;
elist = YES;
* 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.
*
return (OK); /* don't truncate direct access files, etc. */
loc = ftell (b->ufd);
if (truncate (b->ufnm, loc) != 0)
return (OK); /* don't truncate direct access files, etc. */
loc = ftell (b->ufd);
if (truncate (b->ufnm, loc) != 0)
if (b->uwrt && ! nowreading(b))
if (b->uwrt && ! nowreading(b))
* 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.
*
{ int n;
lfname = NULL;
elist = NO;
{ int n;
lfname = NULL;
elist = NO;
lunit = a->ciunit;
if(not_legal(lunit)) err(errflag,F_ERUNIT,fmtbuf)
curunit = &units[lunit];
lunit = a->ciunit;
if(not_legal(lunit)) err(errflag,F_ERUNIT,fmtbuf)
curunit = &units[lunit];
- if(!curunit->ufd && (n=fk_open(flag,SEQ,FMT,(ftnint)lunit)))
+ if(!curunit->ufd && (n=fk_open(flg,SEQ,FMT,(ftnint)lunit)))
err(errflag,n,fmtbuf)
cf = curunit->ufd;
elist = YES;
err(errflag,n,fmtbuf)
cf = curunit->ufd;
elist = YES;
* 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.
*
-c_due(a,flag) cilist *a;
{ int n;
lfname = NULL;
elist = NO;
{ int n;
lfname = NULL;
elist = NO;
lunit = a->ciunit;
if(not_legal(lunit)) err(errflag,F_ERUNIT,rdue+5);
curunit = &units[lunit];
lunit = a->ciunit;
if(not_legal(lunit)) err(errflag,F_ERUNIT,rdue+5);
curunit = &units[lunit];
- if (!curunit->ufd && (n=fk_open(flag,DIR,UNF,(ftnint)lunit)) )
+ if (!curunit->ufd && (n=fk_open(flg,DIR,UNF,(ftnint)lunit)) )
err(errflag,n,rdue+5)
cf = curunit->ufd;
elist = YES;
err(errflag,n,rdue+5)
cf = curunit->ufd;
elist = YES;
* 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.
*
-c_sue(a,flag) cilist *a;
{ int n;
external = sequential = YES;
formatted = NO;
{ int n;
external = sequential = YES;
formatted = NO;
lunit = a->ciunit;
if(not_legal(lunit)) err(errflag,F_ERUNIT,rsue+5)
curunit = &units[lunit];
lunit = a->ciunit;
if(not_legal(lunit)) err(errflag,F_ERUNIT,rsue+5)
curunit = &units[lunit];
- if(!curunit->ufd && (n=fk_open(flag,SEQ,UNF,(ftnint)lunit)))
+ if(!curunit->ufd && (n=fk_open(flg,SEQ,UNF,(ftnint)lunit)))
err(errflag,n,rsue+5)
cf = curunit->ufd;
elist = YES;
err(errflag,n,rsue+5)
cf = curunit->ufd;
elist = YES;