implement worker_batch_pass
[mkp224o.git] / ioutil.h
blobc7a1dab639d87eb7c372d06757199f722060152c
2 #ifndef _WIN32
4 typedef int FH;
5 #define FH_invalid -1
7 #else
9 #define UNICODE 1
10 #include <windows.h>
11 typedef HANDLE FH;
12 #define FH_invalid INVALID_HANDLE_VALUE
14 #endif
16 FH createfile(const char *path,int secret);
17 int closefile(FH fd);
18 int writeall(FH,const u8 *data,size_t len);
19 int writetofile(const char *path,const u8 *data,size_t len,int secret);
20 int createdir(const char *path,int secret);