dos.pp 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2004 by Karoly Balogh for Genesi S.a.r.l.
  4. Heavily based on the Commodore Amiga/m68k RTL by Nils Sjoholm and
  5. Carl Eric Codere
  6. MorphOS port was done on a free Pegasos II/G4 machine
  7. provided by Genesi S.a.r.l. <www.genesi.lu>
  8. This unit is based on the MorphOS one and is adapted for Nintendo Wii
  9. simply by stripping out all stuff inside funcs and procs.
  10. Copyright (c) 2011 by Francesco Lombardi
  11. See the file COPYING.FPC, included in this distribution,
  12. for details about the copyright.
  13. This program is distributed in the hope that it will be useful,
  14. but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  16. **********************************************************************}
  17. {$IFNDEF FPC_DOTTEDUNITS}
  18. unit Dos;
  19. {$ENDIF FPC_DOTTEDUNITS}
  20. interface
  21. {$MODE objfpc}
  22. type
  23. SearchRec = Packed Record
  24. AnchorPtr : Pointer; { Pointer to the Anchorpath structure }
  25. Fill: Array[1..15] of Byte; {future use}
  26. {End of replacement for fill}
  27. Attr : BYTE; {attribute of found file}
  28. Time : LongInt; {last modify date of found file}
  29. Size : LongInt; {file size of found file}
  30. Name : String[255]; {name of found file}
  31. End;
  32. {$I dosh.inc}
  33. implementation
  34. {$I dos.inc}
  35. {******************************************************************************
  36. --- Internal routines ---
  37. ******************************************************************************}
  38. function dosLock(const name: String; accessmode: Longint) : LongInt;
  39. begin
  40. result := -1;
  41. end;
  42. function IsLeapYear(Source : Word) : Boolean;
  43. begin
  44. result := false;
  45. end;
  46. function dosSetProtection(const name: string; mask:longint): Boolean;
  47. begin
  48. result := false;
  49. end;
  50. function dosSetFileDate(name: string): Boolean;
  51. begin
  52. result := false;
  53. end;
  54. {******************************************************************************
  55. --- Info / Date / Time ---
  56. ******************************************************************************}
  57. function DosVersion: Word;
  58. begin
  59. result := 0;
  60. end;
  61. procedure NewList ();
  62. begin
  63. end;
  64. function CreateExtIO (size: Longint): integer;
  65. begin
  66. result := -1;
  67. end;
  68. procedure DeleteExtIO ();
  69. begin
  70. end;
  71. function Createport(name : PAnsiChar; pri : longint): integer;
  72. begin
  73. result := -1;
  74. end;
  75. procedure DeletePort ();
  76. begin
  77. end;
  78. function Create_Timer(theUnit : longint) : integer;
  79. begin
  80. result := -1;
  81. end;
  82. Procedure Delete_Timer();
  83. begin
  84. end;
  85. function set_new_time(secs, micro : longint): longint;
  86. begin
  87. result := -1;
  88. end;
  89. function get_sys_time(): longint;
  90. begin
  91. result := -1;
  92. end;
  93. procedure GetDate(Var Year, Month, MDay, WDay: Word);
  94. begin
  95. end;
  96. procedure SetDate(Year, Month, Day: Word);
  97. begin
  98. end;
  99. procedure GetTime(Var Hour, Minute, Second, Sec100: Word);
  100. begin
  101. end;
  102. Procedure SetTime(Hour, Minute, Second, Sec100: Word);
  103. begin
  104. end;
  105. {******************************************************************************
  106. --- Exec ---
  107. ******************************************************************************}
  108. procedure Exec(const Path: PathStr; const ComLine: ComStr);
  109. begin
  110. end;
  111. {******************************************************************************
  112. --- Disk ---
  113. ******************************************************************************}
  114. Function DiskFree(Drive: Byte): int64;
  115. Begin
  116. result := -1;
  117. end;
  118. Function DiskSize(Drive: Byte): int64;
  119. Begin
  120. result := -1;
  121. end;
  122. procedure FindFirst(const Path: PathStr; Attr: Word; Var f: SearchRec);
  123. begin
  124. end;
  125. procedure FindNext(Var f: SearchRec);
  126. begin
  127. end;
  128. procedure FindClose(Var f: SearchRec);
  129. begin
  130. end;
  131. {******************************************************************************
  132. --- File ---
  133. ******************************************************************************}
  134. function FSearch(path: PathStr; dirlist: String) : PathStr;
  135. begin
  136. result := '';
  137. end;
  138. Procedure getftime (var f; var time : longint);
  139. begin
  140. end;
  141. Procedure setftime(var f; time : longint);
  142. Begin
  143. End;
  144. procedure getfattr(var f; var attr : word);
  145. begin
  146. End;
  147. procedure setfattr(var f; attr : word);
  148. begin
  149. end;
  150. {******************************************************************************
  151. --- Environment ---
  152. ******************************************************************************}
  153. function getpathstring: string;
  154. begin
  155. result := '';
  156. end;
  157. function EnvCount: Longint;
  158. begin
  159. result := -1;
  160. end;
  161. function EnvStr(Index: LongInt): String;
  162. begin
  163. result := '';
  164. end;
  165. function GetEnv(envvar : String): String;
  166. begin
  167. result := '';
  168. end;
  169. procedure AddDevice(str : String);
  170. begin
  171. end;
  172. function MakeDeviceName(str : PAnsiChar): string;
  173. begin
  174. result := '';
  175. end;
  176. function IsInDeviceList(str : string): boolean;
  177. begin
  178. result := false;
  179. end;
  180. procedure ReadInDevices;
  181. begin
  182. end;
  183. begin
  184. // DosError:=0;
  185. // numberofdevices := 0;
  186. // StrOfPaths := '';
  187. // ReadInDevices;
  188. end.