2013-05-19 05:36:24 -04:00
|
|
|
#ifndef _FILE_H_
|
|
|
|
#define _FILE_H_
|
|
|
|
|
2013-09-19 03:33:56 -04:00
|
|
|
#include "retcode.h"
|
|
|
|
|
2013-09-19 02:58:20 -04:00
|
|
|
#ifndef CRYPT
|
|
|
|
#error CRYPT should be defined.
|
|
|
|
#elif CRYPT
|
2013-06-10 05:03:32 -04:00
|
|
|
void cryptbufferkey( struct buffer *bp) ;
|
|
|
|
int set_encryption_key( int f, int n) ;
|
|
|
|
#endif
|
|
|
|
|
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) ;
|
|
|
|
void makename( char *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) ;
|
2013-09-19 03:33:56 -04:00
|
|
|
int ifile( const char *fname) ;
|
2013-05-19 05:36:24 -04:00
|
|
|
|
|
|
|
#endif
|