class Rlimit

Allows you to get and set resource limits

Description

This class retrieves the specified resource limits when it is created and places them in two variables, cur and max. Cur is the current limit of a resource and max is the hard kernel limit which cur is not allowed to exceed. The resources you can request are Sys.RLIMIT_CPU (seconds of processor time); Sys.RLIMIT_DATA (maximum size of data segment); Sys.RLIMIT_FSIZE (maximum file size); Sys.RLIMIT_LOCKS (maximum number of locked files); Sys.RLIMIT_MEMLOCK (maximum bytes of memory that can be locked into RAM); Sys.RLIMIT_NOFILE (maximum number of files that can be opened); Sys.RLIMIT_NPROC (maximum number of processes that can be created by the real user ID of the calling process); Sys.RLIMIT_RSS (maximum RSS size in pages); Sys.RLIMIT_STACK (maximum size of the stack in bytes). The set() method attempts to set the resource limit (presumably after modifying cur and/or max). On failure, it returns false and sets err.str.

class attributes [NB. Highlighted attributes are static members]
function exec() - Starts a new program, replacing the current one
variable SelectResult - Returned by Sys.select()

Functions

function exec Click to go up to the list
Starts a new program, replacing the current one
Declaration:
    native function exec(string filename, array argv, array env)
Description:
This function attempts to execute the specified filename. The system path is not searched for the file. By convention, the first string in the argv array is the name of the program without the path to it. To use the current environment instead of creating a new one, you can use Sys.env.toArray() to retrieve it.
Parameters:
    Parameter #1: string filename - The name of the file to execute

Automatically generated at 8:45pm, Wednesday 08 January 2003 by feritedoc.