sysfile.inc 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2001 by Free Pascal development team
  4. Low leve file functions
  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. ****************************************************************************}
  14. procedure do_close(handle : thandle);inline;
  15. begin
  16. end;
  17. procedure do_erase(p : PAnsiChar; pchangeable: boolean);inline;
  18. begin
  19. end;
  20. procedure do_rename(p1,p2 : PAnsiChar; p1changeable, p2changeable: boolean);inline;
  21. begin
  22. end;
  23. function do_write(h:thandle;addr:pointer;len : longint) : longint;
  24. begin
  25. do_write:=len;
  26. end;
  27. function do_read(h:thandle;addr:pointer;len : longint) : longint;
  28. begin
  29. do_read:=0;
  30. end;
  31. function do_filepos(handle : thandle) : longint;inline;
  32. begin
  33. end;
  34. procedure do_seek(handle:thandle;pos : longint);inline;
  35. begin
  36. end;
  37. function do_seekend(handle:thandle):longint;inline;
  38. begin
  39. end;
  40. function do_filesize(handle : thandle) : longint;inline;
  41. begin
  42. end;
  43. { truncate at a given position }
  44. procedure do_truncate (handle:thandle;pos:longint);inline;
  45. begin
  46. end;
  47. procedure do_open(var f;p:PAnsiChar;flags:longint; pchangeable: boolean);inline;
  48. {
  49. filerec and textrec have both handle and mode as the first items so
  50. they could use the same routine for opening/creating.
  51. when (flags and $100) the file will be append
  52. when (flags and $1000) the file will be truncate/rewritten
  53. when (flags and $10000) there is no check for close (needed for textfiles)
  54. }
  55. begin
  56. end;
  57. function do_isdevice(handle:THandle):boolean;inline;
  58. begin
  59. do_isdevice:=true;
  60. end;