mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-21 19:09:56 +08:00
7e29b2612a
2001-07-07 Toon Moene <toon@moene.indiv.nluug.nl> * libI77/Makefile.in: Update config.h dependencies. * libI77/configure.in: Define _XOPEN_SOURCE and _FILE_OFFSET_BITS unconditionally. * libI77/configure: Rebuilt. * libI77/config.h.in: Rebuilt. * libI77/endfile.c (t_runc): Replace rewind by FSEEK. * libI77/err.c (f__nowwriting): The type of `loc' is off_t. * libI77/open.c (f_open): Replace rewind by FSEEK. * libI77/rewind.c: Include config.h. (f_rew): Replace rewind by FSEEK. * libI77/sfe.c: Include config.h. * libI77/wsfe.c: Ditto. * libU77/configure.in: Define _XOPEN_SOURCE and _FILE_OFFSET_BITS unconditionally. * libU77/configure: Rebuilt. * libU77/config.hin: Rebuilt. From-SVN: r43841
40 lines
733 B
C
40 lines
733 B
C
/* sequential formatted external common routines*/
|
|
#include "config.h"
|
|
#include "f2c.h"
|
|
#include "fio.h"
|
|
|
|
extern char *f__fmtbuf;
|
|
|
|
integer e_rsfe(Void)
|
|
{ int n;
|
|
f__init = 1;
|
|
n=en_fio();
|
|
f__fmtbuf=NULL;
|
|
return(n);
|
|
}
|
|
#ifdef KR_headers
|
|
c_sfe(a) cilist *a; /* check */
|
|
#else
|
|
c_sfe(cilist *a) /* check */
|
|
#endif
|
|
{ unit *p;
|
|
if(a->ciunit >= MXUNIT || a->ciunit<0)
|
|
err(a->cierr,101,"startio");
|
|
p = &f__units[a->ciunit];
|
|
if(p->ufd==NULL && fk_open(SEQ,FMT,a->ciunit)) err(a->cierr,114,"sfe");
|
|
if(!p->ufmt) err(a->cierr,102,"sfe");
|
|
return(0);
|
|
}
|
|
integer e_wsfe(Void)
|
|
{
|
|
int n;
|
|
f__init = 1;
|
|
n = en_fio();
|
|
f__fmtbuf=NULL;
|
|
#ifdef ALWAYS_FLUSH
|
|
if (!n && fflush(f__cf))
|
|
err(f__elist->cierr, errno, "write end");
|
|
#endif
|
|
return n;
|
|
}
|