sysfile.inc 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2005 by Free Pascal development team
  4. Low level file functions
  5. GBA does not have any drive, so no file handling is needed.
  6. Copyright (c) 2006 by Francesco Lombardi
  7. See the file COPYING.FPC, included in this distribution,
  8. for details about the copyright.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. **********************************************************************}
  13. {****************************************************************************
  14. Low level File Routines
  15. All these functions can set InOutRes on errors
  16. ****************************************************************************}
  17. { close a file from the handle value }
  18. procedure do_close(handle : longint);
  19. begin
  20. end;
  21. procedure do_erase(p : pchar);
  22. begin
  23. end;
  24. procedure do_rename(p1,p2 : pchar);
  25. begin
  26. end;
  27. function do_write(h: longint; addr: pointer; len: longint) : longint;
  28. begin
  29. result := -1;
  30. end;
  31. function do_read(h: longint; addr: pointer; len: longint) : longint;
  32. begin
  33. result := -1;
  34. end;
  35. function do_filepos(handle: longint) : longint;
  36. begin
  37. result := -1;
  38. end;
  39. procedure do_seek(handle, pos: longint);
  40. begin
  41. end;
  42. function do_seekend(handle: longint):longint;
  43. begin
  44. result := -1;
  45. end;
  46. function do_filesize(handle : longint) : longint;
  47. begin
  48. result := -1;
  49. end;
  50. { truncate at a given position }
  51. procedure do_truncate(handle, pos: longint);
  52. begin
  53. end;
  54. procedure do_open(var f;p:pchar;flags:longint);
  55. begin
  56. end;
  57. function do_isdevice(handle: longint): boolean;
  58. begin
  59. result := false;
  60. end;