qdosfuncs.inc 1.4 KB

12345678910111213141516171819202122232425262728293031
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2020 by Karoly Balogh
  4. Headers to QDOS OS functions used by the Sinclair QL RTL
  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. {$i qdosh.inc}
  12. function mt_inf(sys_vars: ppchar; ver_ascii: plongint): Tjobid; external name '_mt_inf';
  13. function mt_alchp(size: dword; sizegot: pdword; jobid: Tjobid): pointer; external name '_mt_alchp';
  14. procedure mt_rechp(area: pointer); external name '_mt_rechp';
  15. function io_open_qlstr(name_qlstr: pointer; mode: longint): Tchanid; external name '_io_open_qlstr';
  16. function io_open(name: pchar; mode: longint): Tchanid; external name '_io_open';
  17. function io_close(chan: Tchanid): longint; external name '_io_close';
  18. function io_sbyte(chan: Tchanid; timeout: Ttimeout; c: char): longint; external name '_io_sbyte';
  19. function io_sstrg(chan: Tchanid; timeout: Ttimeout; buf: pointer; len: smallint): smallint; external name '_io_sstrg';
  20. function ut_con(params: PConScrParams): Tchanid; external name '_ut_con';
  21. function ut_scr(params: PConScrParams): Tchanid; external name '_ut_scr';