2013-05-19 17:36:24 +08:00
|
|
|
#ifndef _FILE_H_
|
|
|
|
#define _FILE_H_
|
|
|
|
|
2014-05-31 09:36:25 +08:00
|
|
|
#include "buffer.h"
|
2013-09-19 15:33:56 +08:00
|
|
|
#include "retcode.h"
|
|
|
|
|
2013-10-09 14:03:56 +08:00
|
|
|
extern boolean restflag ; /* restricted use? */
|
2015-02-13 11:23:12 +08:00
|
|
|
boolean resterr( void) ; /* restricted error message */
|
2013-10-09 14:03:56 +08:00
|
|
|
|
2013-05-19 17:36:24 +08: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 15:33:56 +08:00
|
|
|
int getfile( const char *fname, boolean lockfl) ;
|
|
|
|
int readin( const char *fname, boolean lockfl) ;
|
2014-05-31 09:36:25 +08:00
|
|
|
void makename( bname_t bname, const char *fname) ;
|
2013-05-19 17:36:24 +08:00
|
|
|
void unqname( char *name) ;
|
|
|
|
int filewrite( int f, int n) ;
|
|
|
|
int filesave( int f, int n) ;
|
2013-09-19 15:33:56 +08:00
|
|
|
int writeout( const char *fn) ;
|
2013-05-19 17:36:24 +08:00
|
|
|
int filename( int f, int n) ;
|
|
|
|
|
|
|
|
#endif
|