Subversion Repositories Kolibri OS

Rev

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

  1. ;;================================================================================================;;
  2. ;;//// libio_p.inc //// (c) mike.dld, 2007-2008 //////////////////////////////////////////////////;;
  3. ;;================================================================================================;;
  4. ;;                                                                                                ;;
  5. ;; This file is part of Common development libraries (Libs-Dev).                                  ;;
  6. ;;                                                                                                ;;
  7. ;; Libs-Dev is free software: you can redistribute it and/or modify it under the terms of the GNU ;;
  8. ;; Lesser General Public License as published by the Free Software Foundation, either version 2.1 ;;
  9. ;; of the License, or (at your option) any later version.                                         ;;
  10. ;;                                                                                                ;;
  11. ;; Libs-Dev is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without  ;;
  12. ;; even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU  ;;
  13. ;; Lesser General Public License for more details.                                                ;;
  14. ;;                                                                                                ;;
  15. ;; You should have received a copy of the GNU Lesser General Public License along with Libs-Dev.  ;;
  16. ;; If not, see <http://www.gnu.org/licenses/>.                                                    ;;
  17. ;;                                                                                                ;;
  18. ;;================================================================================================;;
  19.  
  20.  
  21. F70_READ_F     = 0
  22. F70_READ_D     = 1
  23. F70_CREATE_F   = 2
  24. F70_WRITE_F    = 3
  25. F70_SETSIZE_F  = 4
  26. F70_GETATTR_FD = 5
  27. F70_SETATTR_FD = 6
  28. F70_START_F    = 7
  29. F70_DELETE_FD  = 8
  30. F70_CREATE_D   = 9
  31.  
  32. F70_ERR_OK                 = 0
  33. F70_ERR_INVALID_DRIVE_SPEC = 1
  34. F70_ERR_FUNC_NOT_SUPPORTED = 2
  35. F70_ERR_UNKNOWN_FS         = 3
  36. F70_ERR_FILE_NOT_FOUND     = 5
  37. F70_ERR_END_OF_FILE        = 6
  38. F70_ERR_INVALID_POINTER    = 7
  39. F70_ERR_NO_DISK_SPACE      = 8
  40. F70_ERR_FAT_CORRUPTED      = 9
  41. F70_ERR_ACCESS_DENIED      = 10
  42. F70_ERR_DEVICE_ERROR       = 11
  43. F70_ERR_NOT_ENOUGH_MEMORY  = 30
  44. F70_ERR_NOT_EXECUTABLE     = 31
  45. F70_ERR_TOO_MANY_PROCESSES = 32
  46.  
  47. struct FindOptions
  48.   Attributes dd ?
  49.   Mask       dd ?
  50. ends
  51.  
  52. struct FindFileBlock
  53.   Header    FileInfoHeader
  54.   Info      FileInfo
  55.   InfoBlock FileInfoBlock
  56.   Options   FindOptions
  57. ends
  58.  
  59. struct InternalFileInfo
  60.   Mode     dd ?
  61.   Position dd ?
  62.   FileName rb 260
  63. ends
  64.