Subversion Repositories Kolibri OS

Rev

Rev 7049 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. //Asper
  2. #ifndef INCLUDE_LIBIO_H
  3. #define INCLUDE_LIBIO_H
  4.  
  5. #ifndef INCLUDE_KOLIBRI_H
  6. #include "../lib/kolibri.h"
  7. #endif
  8.  
  9. #ifndef INCLUDE_DLL_H
  10. #include "../lib/dll.h"
  11. #endif
  12.  
  13. //library
  14. dword libio = #alibio;
  15. char alibio[] = "/sys/lib/libio.obj"; //"libio.obj";
  16.  
  17. dword libio_init = #alibio_init;
  18. dword file_size  = #afile_size;
  19. dword file_open = #afile_open;
  20. dword file_read  = #afile_read;
  21. dword file_close = #afile_close;
  22. $DD 2 dup 0
  23.  
  24.  
  25. //import  libio                     , \
  26. char alibio_init[] = "lib_init";
  27. char afile_size[]  = "file_size";
  28. char afile_open[] = "file_open";
  29. char afile_read[]  = "file_read";
  30. char afile_close[] = "file_close";
  31.  
  32. //align 4
  33. //dword fh=0;
  34.  
  35. #define O_BINARY  0
  36. #define O_READ    1
  37. #define O_WRITE   2
  38. #define O_CREATE  4
  39. #define O_SHARE   8
  40. #define O_TEXT    16
  41.  
  42. #define SEEK_SET  0
  43. #define SEEK_CUR  1
  44. #define SEEK_END  2
  45.  
  46. #endif