Re: inconsistent resource limit checking

David Mosberger (davidm@hpl.hp.com)
Thu, 9 Sep 1999 17:26:32 -0700


>>>>> On Fri, 10 Sep 1999 00:57:01 +0100 (BST), Alan Cox <alan@lxorguk.ukuu.org.uk> said:

>> Perhaps it's unfortunate that the resource interface uses signed
>> longs but I think it would be a mistake to change that now. So
>> instead of changing the interface, I think it would be better to
>> consistently use the kind of checking as implemented by
>> sys_brk().

Alan> SUS requires we use an rlimit_t - and we should change it. The
Alan> bugs it causes are worse than the cure

Ah, yes indeed. And it's an "unsigned" type, too. Is anyone working
on fixing this for 2.3 then? Any idea of what kind of breakage to
expect when changing RLIM_INIFINITY from LONG_MAX to ULONG_MAX?

--david

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/