2013-05-19 05:36:24 -04:00
|
|
|
#ifndef _FILE_H_
|
|
|
|
#define _FILE_H_
|
|
|
|
|
2014-05-30 21:36:25 -04:00
|
|
|
#include "buffer.h"
|
2013-09-19 03:33:56 -04:00
|
|
|
#include "retcode.h"
|
|
|
|
|
2013-10-09 02:03:56 -04:00
|
|
|
extern boolean restflag ; /* restricted use? */
|
2015-02-12 22:23:12 -05:00
|
|
|
boolean resterr( void) ; /* restricted error message */
|
2013-10-09 02:03:56 -04:00
|
|
|
|
2013-05-19 05:36:24 -04:00
|
|
|
int fileread( int f, int n) ;
|
|
|
|
int insfile( int f, int n) ;
|
|
|
|
int filefind( int f, int n) ;
|
|
|
|
int viewfile( int f, int n) ;
|
2013-09-19 03:33:56 -04:00
|
|
|
int getfile( const char *fname, boolean lockfl) ;
|
|
|
|
int readin( const char *fname, boolean lockfl) ;
|
2014-05-30 21:36:25 -04:00
|
|
|
void makename( bname_t bname, const char *fname) ;
|
2013-05-19 05:36:24 -04:00
|
|
|
void unqname( char *name) ;
|
|
|
|
int filewrite( int f, int n) ;
|
|
|
|
int filesave( int f, int n) ;
|
2013-09-19 03:33:56 -04:00
|
|
|
int writeout( const char *fn) ;
|
2013-05-19 05:36:24 -04:00
|
|
|
int filename( int f, int n) ;
|
|
|
|
|
|
|
|
#endif
|