From 1b6c5c4f32f13cc8f26d38a6159a958a7a9d29b2 Mon Sep 17 00:00:00 2001 From: Carmelo Amoroso Date: Tue, 1 Nov 2011 15:08:17 +0100 Subject: libc: do not rely upon ulimit kernel syscall. 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 Acked-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/ulimit.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'libc/sysdeps/linux/common/ulimit.c') diff --git a/libc/sysdeps/linux/common/ulimit.c b/libc/sysdeps/linux/common/ulimit.c index 74b453375..8be4a37aa 100644 --- a/libc/sysdeps/linux/common/ulimit.c +++ b/libc/sysdeps/linux/common/ulimit.c @@ -7,13 +7,6 @@ #include -#ifdef __NR_ulimit - -extern long int ulimit(int cmd, long arg); -_syscall2(long, ulimit, int, cmd, long, arg) - -#else - #include #include #include @@ -53,4 +46,3 @@ long int ulimit(int cmd, ...) va_end (va); return result; } -#endif -- cgit v1.2.3