Do try man limit and man ulimit; well, my current installation
has neither manpage, but at least ulimit's in /usr/bin by
default. limit is a built-in command in some shells for the
same purpose. As for soft/hard limits, ulimit -S vs. ulimit -H
ought to do that. Incidentally, if you specify neither, both
should get changed at the same time. csh is an excemption;
here you need to use limit -h for hard limits. As for C programs,
use getrlimit() and setrlimit() calls - but then you really
ought to get the manpages, and I have no clue what this has to do
with kernel hacking... *shakes head* ;)
|