| 1 |
# |
| 2 |
# README |
| 3 |
# |
| 4 |
|
| 5 |
This Perl extension implements the BSD process resource limit functions |
| 6 |
|
| 7 |
getrusage() getrlimit() setrlimit() |
| 8 |
|
| 9 |
and the BSD process priority functions. These are available also via |
| 10 |
core Perl but here we do more tricks so that the PRIO_* are available. |
| 11 |
|
| 12 |
getpriority() setpriority() |
| 13 |
|
| 14 |
Also is provided |
| 15 |
|
| 16 |
times() |
| 17 |
|
| 18 |
which provides the same functionality as the one in core Perl, only |
| 19 |
with better time resolution. |
| 20 |
|
| 21 |
To install read the INSTALL. |
| 22 |
|
| 23 |
Documentation is available in pod format in Resource.pm. |
| 24 |
|
| 25 |
-- |
| 26 |
Jarkko Hietaniemi <[email protected]> |
| 27 |
2002-11-15 |
| 28 |
--------------- |
| 29 |
|
| 30 |
NOTE 0: Perl 5 is required. Also is required the same C compilation |
| 31 |
environment that was used to compile that Perl 5. |
| 32 |
|
| 33 |
NOTE 1: If your operating system does not support these BSD functions, |
| 34 |
Perl cannot help. In detailed terms: you _must_ have the C header file |
| 35 |
<sys/resource.h> *). If you do not, this package is of little use to you. |
| 36 |
|
| 37 |
NOTE 2: The header file alone is not enough: you must have library |
| 38 |
support also. The C compiler include paths (-I...) and library paths |
| 39 |
(-L...) and the attempted libraries (-l...) are listed in Makefile.PL. |
| 40 |
|
| 41 |
NOTE 3: You cannot set or get 64-bit rlimits for setrlimit() |
| 42 |
and getrlimit(). This is a limitation of Perl, it does not handle |
| 43 |
64 bit integers. |
| 44 |
|
| 45 |
NOTE 4: More caveats (vendors' sloppy support for these things, |
| 46 |
et alia) in the Resource.pm inlined pod doc. |
| 47 |
|
| 48 |
--------------- |
| 49 |
|
| 50 |
*) There is one exception to this on one platform. The terminally curious |
| 51 |
can find out where. |
| 52 |
|
| 53 |
# eof |