|
From: Jeremy F. <je...@go...> - 2005-02-13 08:14:49
|
CVS commit by fitzhardinge:
Use the newer form of getrlimit which supports limits >2G, and therefore
represents RLIM_UNLIMITED.
BUGS:99195
M +3 -1 vg_mylibc.c 1.110
--- valgrind/coregrind/vg_mylibc.c #1.109:1.110
@@ -1459,5 +1459,7 @@ Int VG_(getrlimit) (Int resource, struct
Int res;
/* res = getrlimit( resource, rlim ); */
- res = VG_(do_syscall)(__NR_getrlimit, resource, (UWord)rlim);
+ res = VG_(do_syscall)(__NR_ugetrlimit, resource, (UWord)rlim);
+ if (res == -VKI_ENOSYS)
+ res = VG_(do_syscall)(__NR_ugetrlimit, resource, (UWord)rlim);
if(VG_(is_kerror)(res)) res = -1;
return res;
|