Pedro F. Giffuni e291429c5b ulimit(3): Fix broken check.
The existing implementation had a broken comparison that could
overflow and return confusing values.  Replace this with a check
that avoids the overflow before it happens.

Consistently return a maximum value also on the case of negative
arguments since negative is considered an overflow and means
infinity for our current setrlimit().

New revamped version is credited to Bruce Evans.

CID:		1199295
MFC after:	1 week
2015-02-15 14:31:50 +00:00
..
2014-11-25 11:07:26 +00:00
2014-12-23 10:43:35 +00:00
2015-02-15 14:31:50 +00:00
2014-11-25 11:07:26 +00:00
2014-11-25 11:07:26 +00:00
2014-11-25 11:07:26 +00:00
2014-11-25 11:07:26 +00:00
2014-12-27 08:22:58 +00:00
2015-02-08 23:03:41 +00:00
2014-01-21 21:13:13 +00:00
2014-11-25 11:07:26 +00:00
2014-11-25 11:07:26 +00:00
2014-12-29 21:52:32 +00:00
2014-11-25 11:07:26 +00:00
2015-02-09 06:20:34 +00:00
2014-12-25 21:56:56 +00:00
2014-11-25 11:07:26 +00:00
2015-01-30 13:03:36 +00:00
2014-11-25 11:07:26 +00:00
2015-01-06 22:29:12 +00:00
2014-11-25 11:07:26 +00:00
2014-11-25 11:07:26 +00:00
2014-12-29 21:59:44 +00:00
2014-11-25 11:07:26 +00:00
2014-11-25 11:07:26 +00:00
2014-11-25 11:08:58 +00:00
2014-11-29 00:45:09 +00:00
2014-11-25 11:07:26 +00:00
2015-01-19 02:22:03 +00:00
2014-12-27 21:11:42 +00:00
2015-02-10 19:41:30 +00:00