ldmud-3.4.1/doc/
ldmud-3.4.1/doc/efun.de/
ldmud-3.4.1/doc/efun/
ldmud-3.4.1/doc/man/
ldmud-3.4.1/doc/other/
ldmud-3.4.1/mud/
ldmud-3.4.1/mud/heaven7/
ldmud-3.4.1/mud/lp-245/
ldmud-3.4.1/mud/lp-245/banish/
ldmud-3.4.1/mud/lp-245/doc/
ldmud-3.4.1/mud/lp-245/doc/examples/
ldmud-3.4.1/mud/lp-245/doc/sefun/
ldmud-3.4.1/mud/lp-245/log/
ldmud-3.4.1/mud/lp-245/obj/Go/
ldmud-3.4.1/mud/lp-245/players/lars/
ldmud-3.4.1/mud/lp-245/room/death/
ldmud-3.4.1/mud/lp-245/room/maze1/
ldmud-3.4.1/mud/lp-245/room/sub/
ldmud-3.4.1/mud/lp-245/secure/
ldmud-3.4.1/mud/morgengrauen/
ldmud-3.4.1/mud/morgengrauen/lib/
ldmud-3.4.1/mud/sticklib/
ldmud-3.4.1/mud/sticklib/src/
ldmud-3.4.1/mudlib/uni-crasher/
ldmud-3.4.1/pkg/
ldmud-3.4.1/pkg/debugger/
ldmud-3.4.1/pkg/diff/
ldmud-3.4.1/pkg/misc/
ldmud-3.4.1/src/autoconf/
ldmud-3.4.1/src/hosts/
ldmud-3.4.1/src/hosts/GnuWin32/
ldmud-3.4.1/src/hosts/amiga/
ldmud-3.4.1/src/hosts/win32/
ldmud-3.4.1/src/ptmalloc/
ldmud-3.4.1/src/util/
ldmud-3.4.1/src/util/erq/
ldmud-3.4.1/src/util/indent/hosts/next/
ldmud-3.4.1/src/util/xerq/
ldmud-3.4.1/src/util/xerq/lpc/
ldmud-3.4.1/src/util/xerq/lpc/www/
ldmud-3.4.1/test/t-030925/
ldmud-3.4.1/test/t-040413/
ldmud-3.4.1/test/t-041124/
SYNOPSIS
        #include <sys/rtlimits.h>

        int * query_limits()
        int * query_limits(int default)

DESCRIPTION
        Return an array with the current runtime limits, resp. if <defaults>
        is true, the default runtime limits. The entries in the returned
        array are:

          int[LIMIT_EVAL]:    the max number of eval costs
          int[LIMIT_ARRAY]:   the max number of array entries
          int[LIMIT_MAPPING_SIZE]: the max number of mapping values
          int[LIMIT_MAPPING_KEYS]: the max number of mapping entries
             (LIMIT_MAPPING is an alias for LIMIT_MAPPING_KEYS)
          int[LIMIT_BYTE]:    the max number of bytes handled with
                                one read_bytes()/write_bytes() call.
          int[LIMIT_FILE]:    the max number of bytes handled with
                                one read_file()/write_file() call.
          int[LIMIT_CALLOUTS]: the number of callouts at one time.
          int[LIMIT_COST]:    how to account the current cost.

        For all limits except LIMIT_COST a limit of '0' aka LIMIT_UNLIMITED
        means 'no limit'.

        The value for LIMIT_COST has these meanings:
          
          value > 0: the execution will cost minimum(<value>, actual cost) .

          value = 0: if the current LIMIT_EVAL is larger than the calling
                     LIMIT_EVAL, the evaluation will cost only 10; otherwise
                     the full cost will be accounted.

          value < 0: (-value)% of the current evaluation cost will be
                     accounted; -100 obviously means 'full cost'.

EXAMPLES
        query_limits()
          --> returns the current runtime limits

        query_limits(1)
          --> returns the default runtime limits

HISTORY
        Introduced in LDMud 3.2.7.
        LIMIT_CALLOUTS introduced in LDMud 3.2.9.
        LIMIT_COST introduced in LDMud 3.3.563.
        LDMud 3.3.677 introduced LIMIT_MAPPING_KEYS, LIMIT_MAPPING_SIZE.

SEE ALSO
        limited(E), set_limits(E)