ioutil.h 474 B

123456789101112131415161718192021
  1. #ifndef _WIN32
  2. typedef int FH;
  3. #define FH_invalid -1
  4. #else
  5. #define UNICODE 1
  6. #include <windows.h>
  7. typedef HANDLE FH;
  8. #define FH_invalid INVALID_HANDLE_VALUE
  9. #endif
  10. FH createfile(const char *path,int secret);
  11. int closefile(FH fd);
  12. int writeall(FH,const u8 *data,size_t len);
  13. int writetofile(const char *path,const u8 *data,size_t len,int secret);
  14. int createdir(const char *path,int secret);
  15. int syncwrite(const char *filename,int secret,const u8 *data,size_t datalen);