doslibf.inc 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2006 by Karoly Balogh
  4. dos.library functions for AmigaOS 4.x/PowerPC
  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. function Open(name: PChar; accessMode: longint): longint; syscall IDOS 76;
  12. function dosClose(_file: longint): LongBool; syscall IDOS 80;
  13. function dosRead(_file: longint; buffer: Pointer; length: longint): longint; syscall IDOS 84;
  14. function dosWrite(_file: longint; buffer: Pointer; length: longint): longint; syscall IDOS 88;
  15. function dosInput: longint; syscall IDOS 92;
  16. function dosOutput: longint; syscall IDOS 96;
  17. function dosSeek(_file: longint;position: longint;offset: longint): longint; syscall IDOS 100;
  18. function dosDeleteFile(name: PChar): LongBool; syscall IDOS 104;
  19. function dosRename(oldName: PChar;newName: PChar): longint; syscall IDOS 108;
  20. function Lock(name: PChar;_type: longint): longint; syscall IDOS 112;
  21. procedure UnLock(lock: longint); syscall IDOS 116;
  22. function Examine(lock: longint; fileInfoBlock: PFileInfoBlock): LongInt; syscall IDOS 124;
  23. function Info(lock: longint; parameterBlock: PInfoData): LongInt; syscall IDOS 132;
  24. function dosCreateDir(name: PChar): longint; syscall IDOS 136;
  25. function CurrentDir(lock: longint): longint; syscall IDOS 140;
  26. function IoErr: longint; syscall IDOS 144;
  27. function SetProtection(name: PChar; protect: longword): LongInt; syscall IDOS 180;
  28. function DateStamp(date: PDateStamp): PDateStamp; syscall IDOS 184;
  29. procedure DOSDelay(timeout: LongInt); syscall IDOS 188;
  30. function AllocDosObject(type1: Cardinal; tags : PTagItem): Pointer; syscall IDOS 208;
  31. procedure FreeDosObject(type1: Cardinal; ptr : Pointer); syscall IDOS 220;
  32. function ExamineFH(fh : BPTR; fib: PFileInfoBlock): LongBool; syscall IDOS 352;
  33. function SetFileDate(name: PChar; date: PDateStamp): LongBool; syscall IDOS 356; { Seems this got renamed to SetDate() in OS4? }
  34. function NameFromLock(lock: longint; buffer: PChar; len: longint): LongBool; syscall IDOS 360;
  35. function NameFromFH(fh: longint; buffer: PChar; len: longint): LongBool; syscall IDOS 364;
  36. function SetFileSize(fh: longint; pos: longint; mode: longint): longint; syscall IDOS 396;
  37. function CreateNewProc(tags: PTagItem): PProcess; syscall IDOS 424;
  38. function GetArgStr: PChar; syscall IDOS 456;
  39. function SetArgStr(_string: PChar): PChar; syscall IDOS 460;
  40. function GetCurrentDirName(buf: PChar; len: longint): LongBool; syscall IDOS 476;
  41. function GetProgramName(buf: PChar; len: longint): LongBool; syscall IDOS 484;
  42. function GetProgramDir: longint; syscall IDOS 500;
  43. function SystemTagList(command: PChar; tags: PTagItem): longint; syscall IDOS 504;
  44. function LockDosList(flags: longword): PDosList; syscall IDOS 544;
  45. procedure UnLockDosList(flags: longword); syscall IDOS 548;
  46. function NextDosEntry(dlist: PDosList; flags: longword): PDosList; syscall IDOS 568;
  47. function MatchFirst(pat: PChar; anchor: PAnchorPath): longint; syscall IDOS 664;
  48. function MatchNext(anchor: PAnchorPath): longint; syscall IDOS 668;
  49. procedure MatchEnd(anchor: PAnchorPath); syscall IDOS 672;
  50. function GetVar(name: PChar; buffer: PChar; size: longint; flags: longword): longint; syscall IDOS 720;