2
0

dos.pp 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2022 by the Free Pascal Compiler development team
  4. See the file COPYING.FPC, included in this distribution,
  5. for details about the copyright.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  9. **********************************************************************}
  10. {$IFNDEF FPC_DOTTEDUNITS}
  11. unit Dos;
  12. {$ENDIF FPC_DOTTEDUNITS}
  13. interface
  14. {$MODE objfpc}
  15. type
  16. SearchRec = Packed Record
  17. AnchorPtr : Pointer; { Pointer to the Anchorpath structure }
  18. Fill: Array[1..15] of Byte; {future use}
  19. {End of replacement for fill}
  20. Attr : BYTE; {attribute of found file}
  21. Time : LongInt; {last modify date of found file}
  22. Size : LongInt; {file size of found file}
  23. Name : String[255]; {name of found file}
  24. End;
  25. {$I dosh.inc}
  26. implementation
  27. {$define HAS_GETMSCOUNT}
  28. {$I dos.inc}
  29. {******************************************************************************
  30. --- Info / Date / Time ---
  31. ******************************************************************************}
  32. function DosVersion: Word;
  33. begin
  34. result := 0;
  35. end;
  36. procedure GetDate(Var Year, Month, MDay, WDay: Word);
  37. begin
  38. Year := 0;
  39. Month := 0;
  40. MDay := 0;
  41. WDay := 0;
  42. end;
  43. procedure SetDate(Year, Month, Day: Word);
  44. begin
  45. end;
  46. procedure GetTime(Var Hour, Minute, Second, Sec100: Word);
  47. begin
  48. Hour := 0;
  49. Minute := 0;
  50. Second := 0;
  51. Sec100 := 0;
  52. end;
  53. Procedure SetTime(Hour, Minute, Second, Sec100: Word);
  54. begin
  55. end;
  56. function GetMsCount: int64;
  57. begin
  58. result := 0;
  59. end;
  60. {******************************************************************************
  61. --- Exec ---
  62. ******************************************************************************}
  63. procedure Exec(const Path: PathStr; const ComLine: ComStr);
  64. begin
  65. end;
  66. {******************************************************************************
  67. --- Disk ---
  68. ******************************************************************************}
  69. Function DiskFree(Drive: Byte): int64;
  70. Begin
  71. result := -1;
  72. end;
  73. Function DiskSize(Drive: Byte): int64;
  74. Begin
  75. result := -1;
  76. end;
  77. procedure FindFirst(const Path: PathStr; Attr: Word; Var f: SearchRec);
  78. begin
  79. DosError:=18;
  80. end;
  81. procedure FindNext(Var f: SearchRec);
  82. begin
  83. DosError:=18;
  84. end;
  85. procedure FindClose(Var f: SearchRec);
  86. begin
  87. DosError:=18;
  88. end;
  89. {******************************************************************************
  90. --- File ---
  91. ******************************************************************************}
  92. function FSearch(path: PathStr; dirlist: String) : PathStr;
  93. begin
  94. result := '';
  95. end;
  96. Procedure getftime (var f; var time : longint);
  97. begin
  98. end;
  99. Procedure setftime(var f; time : longint);
  100. Begin
  101. End;
  102. procedure getfattr(var f; var attr : word);
  103. begin
  104. End;
  105. procedure setfattr(var f; attr : word);
  106. begin
  107. end;
  108. {******************************************************************************
  109. --- Environment ---
  110. ******************************************************************************}
  111. function EnvCount: Longint;
  112. begin
  113. result := -1;
  114. end;
  115. function EnvStr(Index: LongInt): String;
  116. begin
  117. result := '';
  118. end;
  119. function GetEnv(envvar : String): String;
  120. begin
  121. result := '';
  122. end;
  123. end.