sysfile.inc 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2020 by Free Pascal development team
  4. Low level file functions for the Sinclair QL
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. {****************************************************************************
  12. Low level File Routines
  13. All these functions can set InOutRes on errors
  14. ****************************************************************************}
  15. { close a file from the handle value }
  16. procedure do_close(handle : longint);
  17. begin
  18. end;
  19. procedure do_erase(p : pchar; pchangeable: boolean);
  20. begin
  21. end;
  22. procedure do_rename(p1,p2 : pchar; p1changeable, p2changeable: boolean);
  23. begin
  24. end;
  25. function do_write(h: longint; addr: pointer; len: longint) : longint;
  26. begin
  27. do_write:=-1;
  28. end;
  29. function do_read(h: longint; addr: pointer; len: longint) : longint;
  30. begin
  31. do_read:=-1;
  32. end;
  33. function do_filepos(handle: longint) : longint;
  34. begin
  35. do_filepos:=-1;
  36. end;
  37. procedure do_seek(handle, pos: longint);
  38. begin
  39. end;
  40. function do_seekend(handle: longint):longint;
  41. begin
  42. do_seekend:=-1;
  43. end;
  44. function do_filesize(handle : THandle) : longint;
  45. begin
  46. do_filesize:=-1;
  47. end;
  48. { truncate at a given position }
  49. procedure do_truncate(handle, pos: longint);
  50. begin
  51. end;
  52. procedure do_open(var f;p:pchar;flags:longint; pchangeable: boolean);
  53. {
  54. filerec and textrec have both handle and mode as the first items so
  55. they could use the same routine for opening/creating.
  56. when (flags and $100) the file will be append
  57. when (flags and $1000) the file will be truncate/rewritten
  58. when (flags and $10000) there is no check for close (needed for textfiles)
  59. }
  60. begin
  61. end;
  62. function do_isdevice(handle: thandle): boolean;
  63. begin
  64. do_isdevice:=false;
  65. end;