sysfile.inc 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. end;
  26. function do_read(h:thandle;addr:pointer;len : longint) : longint;
  27. begin
  28. end;
  29. function do_filepos(handle : thandle) : longint;inline;
  30. begin
  31. end;
  32. procedure do_seek(handle:thandle;pos : longint);inline;
  33. begin
  34. end;
  35. function do_seekend(handle:thandle):longint;inline;
  36. begin
  37. end;
  38. function do_filesize(handle : thandle) : longint;inline;
  39. begin
  40. end;
  41. { truncate at a given position }
  42. procedure do_truncate (handle:thandle;pos:longint);inline;
  43. begin
  44. end;
  45. procedure do_open(var f;p:PAnsiChar;flags:longint; pchangeable: boolean);inline;
  46. {
  47. filerec and textrec have both handle and mode as the first items so
  48. they could use the same routine for opening/creating.
  49. when (flags and $100) the file will be append
  50. when (flags and $1000) the file will be truncate/rewritten
  51. when (flags and $10000) there is no check for close (needed for textfiles)
  52. }
  53. begin
  54. end;
  55. function do_isdevice(handle:THandle):boolean;inline;
  56. begin
  57. do_isdevice:=true;
  58. end;