Human68k CUI emulator with sound.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

v68io.h 1.3KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #pragma once
  2. #include"v68.h"
  3. int v68_io_init(void);
  4. int v68_io_autodetect_drives(void);
  5. int v68_io_open(char *filename, int mode);
  6. int v68_io_create(char *filename, int attr);
  7. int v68_io_close(int fd);
  8. int v68_io_read(int fd, void *buf, size_t count);
  9. int v68_io_write(int fd, void *buf, size_t count);
  10. int v68_io_seek(int fd, off_t offset, int whence);
  11. int v68_io_tell(int fd);
  12. int v68_io_rename(char *oldpath, char *newpath);
  13. int v68_io_chmod(char *pathname, mode_t mode);
  14. int v68_io_curdrv(void);
  15. int v68_io_chgdrv(uint8_t drv);
  16. int v68_io_getcwd(uint8_t drv, char *buf, size_t size);
  17. int v68_io_chdir(char *buf);
  18. int v68_argv_to_cmdline(int argc, char **argv, char *cmdline, int len);
  19. // Translate from local (unix/windows) file to virtual file path
  20. char *v68_io_xlate_path(char *filename, char *out, int len);
  21. // Translate from virtual (DOS) file path to local (unix/windows)
  22. char *v68_io_xlate_dos_path(char *filename, char *out, int len);
  23. // Find a physical file on the local fs
  24. // does case insensitive to case sensitive finding
  25. // also parses %20 and %25 url encoded special chars (for supporting spaces)
  26. char *v68_io_resolve_path(char *filename, char *out, int len);
  27. // Virtual drives
  28. int v68_io_add_drive(uint8_t drive, char *path);
  29. uint8_t v68_io_unused_drive();
  30. void v68_dump_drives();