Revised ChangeLog.
--Andrew Black
Log:
* cmdopt.h (unistd.h)[!_WIN32 && !_WIN64]: Include.
(sys/resource.h)[_XOPEN_UNIX]: Include.
(rw_rlim_t, struct rw_rlimit) [!_XOPEN_UNIX]: Define placeholder
type/struct for rlim_t and struct rlimit respectively.
(rw_rlimit, limit_set): Define.
(child_limits): Declare.
* cmdopt.cpp (sys/resource.h) [!_WIN32 && !_WIN64 && _XOPEN_UNIX]:
Include.
(RLIM_INFINITY, RLIM_SAVED_CUR, RLIM_SAVED_MAX): Define if not
defined.
(child_limits): Define/Initialize.
(usage_text): Document --ulimit switch.
(parse_limit_opts): Define helper function for parsing --rlimit
option (borrowed in part from _rw_setopt_ulimit in tests/src/driver.cpp).
(eval_options): Define opt_ulimit character string, use with
parse_limit_opts to handle --ulimit command line switch.
* exec.cpp (sys/resource.h) [!_WIN32 && !_WIN64 && _XOPEN_UNIX]:
Include.
(LIMIT) [!_WIN32 && !_WIN64 && _XOPEN_UNIX]: Define helper macro
for...
(limit_process) [!_WIN32 && !_WIN64 && _XOPEN_UNIX]: ... New
helper function to set resource limits, based on the values in
child_limits (borrowed in part from _rw_setopt_ulimit in
tests/src/driver.cpp).
(exec_file) [!_WIN32 && !_WIN64 && _XOPEN_UNIX]: Call above prior
to execv.