ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
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.
 
 
 
 
 
 

42 lines
701 B

  1. /* written by Paul Edwards */
  2. /* released to the public domain */
  3. #ifndef UNIXIO_INCLUDED
  4. #define UNIXIO_INCLUDED
  5. #include <stddef.h>
  6. #define S_IFBLK 0x3000
  7. #define S_IFDIR 0x4000
  8. #define S_IFREG 0x8000
  9. #define S_IFMT 0xf000
  10. #ifndef ENOENT
  11. #define ENOENT 2002
  12. #endif
  13. #ifndef ENOTDIR
  14. #define ENOTDIR 2045
  15. #endif
  16. #define O_RDONLY 1
  17. #define O_WRONLY 2
  18. #define O_RDWR 4
  19. #define O_CREAT 0x100
  20. #define O_TRUNC 0x200
  21. struct stat {
  22. long st_size;
  23. long st_mode;
  24. long st_ino;
  25. long st_dev;
  26. long st_mtime;
  27. };
  28. int open(const char *fnm, int mode, ...);
  29. int read(int fno, void *buf, size_t bytes);
  30. int write(int fno, const void *buf, size_t bytes);
  31. int close(int fno);
  32. char *mktemp(char *s);
  33. #endif