si_c.inc 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2005 by Michael Van Canneyt, Peter Vreman,
  4. & Daniel Mantione, members of the Free Pascal development team.
  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. var
  12. libc_environ: PAnsiChar; external name '__environ';
  13. libc_fpu_control: word; external name '__fpu_control';
  14. libc_init_proc: procedure; external name '_init';
  15. libc_fini_proc: procedure; external name '_fini';
  16. procedure libc_atexit; external name '__libc_atexit';
  17. procedure libc_exit(ec : longint); external name '__libc_exit';
  18. procedure libc_init; external name '__libc_init';
  19. procedure libc_setfpucw; external name '__setfpucw';
  20. procedure libc_start_main; external name '__libc_start_main';
  21. function fpc_getgot : pointer; [external name 'FPC_GETGOT'];
  22. {******************************************************************************
  23. C library start/halt
  24. ******************************************************************************}
  25. procedure _FPC_libc_start; assembler; nostackframe; public name '_start';
  26. asm
  27. end;
  28. procedure _FPC_libc_haltproc(e: longint); cdecl; public name '_haltproc';
  29. begin
  30. { try to exit_group }
  31. while true do
  32. asm
  33. end;
  34. end;