osutilsh.inc 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2000 by Michael Van Canneyt
  5. member of the Free Pascal development team
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. { OS handling utilities }
  13. Function GetEnvironmentVariable(Const EnvVar : String) : String;
  14. {$IFDEF HAS_SLEEP}
  15. procedure Sleep(milliseconds: Cardinal);
  16. {$ENDIF}
  17. function ExecuteProcess(Const Path: AnsiString; Const ComLine: AnsiString):integer;
  18. {
  19. $Log$
  20. Revision 1.4 2004-01-10 17:34:36 michael
  21. + Implemented sleep() on Unix.
  22. Revision 1.3 2004/01/05 22:37:24 florian
  23. * changed sysutils.exec to ExecuteProcess
  24. Revision 1.2 2004/01/03 08:55:58 marco
  25. * Exec(ansistring) function
  26. Revision 1.1 2003/10/06 21:01:06 peter
  27. * moved classes unit to rtl
  28. Revision 1.3 2002/09/07 16:01:22 peter
  29. * old logs removed and tabs fixed
  30. }