1832964 Members
2678 Online
110048 Solutions
New Discussion

getrlimit program

 
SOLVED
Go to solution
Michael Murphy_2
Frequent Advisor

getrlimit program

Does anyone have a c program that calls getrlimit for all of the possible limits? (cpu/mem/etc). I know of ulimit -a - but wanted to compare values and look at soft/hard limits. Thanks
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: getrlimit program

I had a function that was already very close so I yanked and pasted and threw it together.

If it ain't broke, I can fix that.
Michael Murphy_2
Frequent Advisor

Re: getrlimit program

Perfect! - thanks