On 18/11/2011 21.02, Bernhard Reutner-Fischer wrote:
> On Thu, Nov 03, 2011 at 09:31:48AM +0100, Carmelo AMOROSO 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.
>>
>> Signed-off-by: Carmelo Amoroso <[email protected]>
> Acked-by: Bernhard Reutner-Fischer <[email protected]>applied, thanks. carmelo >> --- >> libc/sysdeps/linux/common/ulimit.c | 8 -------- >> 1 files changed, 0 insertions(+), 8 deletions(-) >> >> diff --git a/libc/sysdeps/linux/common/ulimit.c >> b/libc/sysdeps/linux/common/ulimit.c >> index 74b4533..8be4a37 100644 >> --- a/libc/sysdeps/linux/common/ulimit.c >> +++ b/libc/sysdeps/linux/common/ulimit.c >> @@ -7,13 +7,6 @@ >> >> #include <sys/syscall.h> >> >> -#ifdef __NR_ulimit >> - >> -extern long int ulimit(int cmd, long arg); >> -_syscall2(long, ulimit, int, cmd, long, arg) >> - >> -#else >> - >> #include <stdarg.h> >> #include <unistd.h> >> #include <ulimit.h> >> @@ -53,4 +46,3 @@ long int ulimit(int cmd, ...) >> va_end (va); >> return result; >> } >> -#endif > _______________________________________________ uClibc mailing list [email protected] http://lists.busybox.net/mailman/listinfo/uclibc
