2013-05-19 05:36:24 -04:00
|
|
|
#ifndef _FILE_H_
|
|
|
|
#define _FILE_H_
|
|
|
|
|
2013-09-20 06:10:30 -04:00
|
|
|
#include "crypt.h"
|
2013-09-19 03:33:56 -04:00
|
|
|
#include "retcode.h"
|
|
|
|
|
2013-09-20 06:10:30 -04:00
|
|
|
#if CRYPT
|
|
|
|
#include "buffer.h"
|
|
|
|
|
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
|