$FUNCNAME$
	SLEEP()
$CATEGORY$
	DATE/TIME, SYSTEM
$SUMMARY$
	Sleep for the specified number of seconds and milliseconds.
$LANG_RU$
	       () .
$SYNTAX$
     SLEEP(<nSec>) 	--> NIL
$ARGUMENTS$
	<nSec>		Numeric, is the number os seconds and/or milliseconds.
$LANG_RU$
	<nSec>		Numeric,   /  .
$RETURNS$
     Returns NIL.
$LANG_RU$
      NIL.
$DESCRIPTION$
	SLEEP() makes the program sleep until seconds have  elapsed.
$LANG_RU$
	SLEEP()    ,     .
$EXAMPLES$

do while 100
	? time()
	SLEEP(10.50)
enddo

$PLATFORMS$
   Nothing guarantee for the specified MILLISECONDS, if this guarantee have't
   OS.
   $LANG_RU$
         ,   
      .
$SEEALSO$
$AUTHOR$
ITK
   $LANG_RU$

$END$


$FUNCNAME$
	SYSCMD()
$CATEGORY$
	SYSTEM
$SUMMARY$
	Run system command.
$LANG_RU$
	  .
$SYNTAX$
     SYSCMD(<sCmd>, <sStdin>, @<sResult>, @<sError>) 	--> <nResultCode>
$ARGUMENTS$
	<sCmd>		String, is the command.
	<sStdin>	String, is the input string.
	<sResult>	String, is the string of result.
	<sErrot>	String, is the error description.
$LANG_RU$
	<sCmd>		String, .
	<sStdin>	String,  .
	<sResult>	String,  .
	<sErrot>	String,  .
$RETURNS$
     Returns -1 on error or returns status of command.
$LANG_RU$
      -1        .
$DESCRIPTION$
	SYSCMD() runs system command <sCmd> and sends to this command string <sStdin>
	to a standart input. All output stream will be write to <sResult>, and
	all error stream to <sError>.

	<sResult> and <sError> can't be constants.
$LANG_RU$
	SYSCMD()    <sCmd>,    
	   <sStdin>.  stdout  
	  <sResult>,   stderr -  <sErr>.

	<sResult>  <sError>      .
$EXAMPLES$

err_buf1=space(0)
res_buf1=space(0)

err_buf2=space(0)
res_buf2=space(0)

result_code1 := SYSCMD("ls -l", "", @res_buf1, @err_buf1)

? result_code1
? res_buf1
? err_bus1
?

result_code2 := SYSCMD("grep test ", res_buf1, @res_buf2, @err_buf2)

? result_code2
? res_buf2
? err_bus2
?

$PLATFORMS$
   No dependies of platform.
   $LANG_RU$
      
$SEEALSO$
$AUTHOR$
ITK
   $LANG_RU$

$END$


$FUNCNAME$
	ULIMIT()
$CATEGORY$
	SYSTEM
$SUMMARY$
	Set limit to use system resources.
$LANG_RU$
	     .
$SYNTAX$
     ULIMIT(<sResName>, <vLimitVal>) 	--> <vOldLimitValue>
$ARGUMENTS$
	<sResName>	String, is the resource name.
	<vLimitVal>	is the new limit value.
$LANG_RU$
	<sResName>	String,  .
	<vLimitVal>	 .
$RETURNS$
     Returns old limit value for system resource <sResName>.
$LANG_RU$
             <sResName>.
$DESCRIPTION$
	ULIMIT() sets new limit value <vLimitVal> to use system resource with name <sResName>
	 and returns old value for this resource.

	The list of resource names see in ulimit.ch
$LANG_RU$
	ULIMIT()    <vLimitVal>  
	    <sResName>    
	 .

	    .  ulimit.ch
$EXAMPLES$

#include <ulimit.ch>

/* set the max size for stack */

? ULIMIT( ULIMIT_STACK, 1024 )

$PLATFORMS$
   No dependies of platform.
   $LANG_RU$
      
$SEEALSO$
$AUTHOR$
ITK
   $LANG_RU$

$END$


