[PATCH] libc: do not rely upon ulimit kernel syscall.

Carmelo AMOROSO carmelo.amoroso at st.com
Fri Nov 4 14:14:46 UTC 2011


On 04/11/2011 13.50, Bernhard Reutner-Fischer wrote:
> On 3 November 2011 09:31, Carmelo AMOROSO <carmelo.amoroso at st.com> wrote:
>> On several architectures __NR_ulimit syscall number is currently
>> defined but it is remapped onto sys_ni_syscall, while on other
>> architectures they are not longer defined.
>> So use {get,set}rlimit only to implement ulimit interface.
>>
>> It fixes LTP ulimit01 test case.
> 
> What about fixing the kernel instead to not define numbers for the
> unavailable stuff?
> Just curious..
> 

that's another action I've planned to do but it would take more time.
Without this fix we would have uClibc broken.

cheers,
carmelo



More information about the uClibc mailing list