split some io routines into separate file

This commit is contained in:
cathugger
2017-10-23 04:12:04 +00:00
parent e6a879949b
commit 39c55c1c2b
4 changed files with 85 additions and 19 deletions

8
ioutil.h Normal file
View File

@@ -0,0 +1,8 @@
typedef int FH;
#define FH_invalid -1
FH createfile(const char *path,int secret);
int closefile(FH fd);
int writeall(FH,const u8 *data,size_t len);
int writetofile(const char *path,const u8 *data,size_t len,int secret);
int createdir(const char *path,int secret);