4151db5f997cd91d3505ac6594bede0b50184855 |
|
29-Oct-2015 |
Elliott Hughes <enh@google.com> |
Add prlimit to LP32. Bug: http://b/24918750 Change-Id: I0151cd66ccf79a6169610de35bb9c288c0fa4917
|
e7ece90b5036a56241c268861bb0dea87aa856b7 |
|
05-Jan-2015 |
Yabin Cui <yabinc@google.com> |
Make sys_resource test more robust. Bug: 19482626 "ulimit -c xxx" command may run before bionic-unit-tests. Make sure sys_resource test fails gently in that case. Change-Id: Ic3b5ed8b20acba56df8c5ef082c88e5050e761aa (cherry picked from commit 4853f40f3fb6664cb1b7af97b6b3e795717026b1)
|
4853f40f3fb6664cb1b7af97b6b3e795717026b1 |
|
05-Jan-2015 |
Yabin Cui <yabinc@google.com> |
Make sys_resource test more robust. "ulimit -c xxx" command may run before bionic-unit-tests. Make sure sys_resource test fails gently in that case. Change-Id: Ic3b5ed8b20acba56df8c5ef082c88e5050e761aa
|
fb50057138ef37232dc67c8559fd26719ee26021 |
|
13-Nov-2014 |
Elliott Hughes <enh@google.com> |
Fix glibc 2.15 build. glibc 2.15 has prlimit64, has an unsetenv that's declared nonnull, and hasn't fixed the problems we were having trying to use the POSIX strerror_r in C++ code. Change-Id: I834356a385e5ae55500bd86781691b6c1c9c8300
|
063525c61d24776094d76971f33920e2a2079530 |
|
13-May-2014 |
Elliott Hughes <enh@google.com> |
Consistently use #if defined(__BIONIC__) in tests. I've also switched some tests to be positive rather than negative, because !defined is slightly harder to reason about and there are only two cases: bionic and glibc. Change-Id: I8d3ac40420ca5aead3e88c69cf293f267273c8ef
|
0f461e35f63200641fc53bba222845a84589c024 |
|
09-Jan-2014 |
Elliott Hughes <enh@google.com> |
Fix <sys/resource.h>. The situation here is a bit confusing. On 64-bit, rlimit and rlimit64 are the same, and so getrlimit/getrlimit64, setrlimit/setrlimit64, and prlimit/prlimit64 are all the same. On 32-bit, rlimit and rlimit64 are different. 32-bit architectures other than MIPS go one step further by having an even more limited getrlimit system call, so arm and x86 need to use ugetrlimit instead of getrlimit. Worse, the 32-bit architectures don't have 64-bit getrlimit- and setrlimit-equivalent system calls, and you have to use prlimit64 instead. There's no 32-bit prlimit system call, so there's no easy implementation of that --- what should we do if the result of prlimit64 won't fit in a struct rlimit? Since 32-bit survived without prlimit/prlimit64 for this long, I'm not going to bother implementing prlimit for 32-bit. We need the rlimit64 functions to be able to build strace 4.8 out of the box. Change-Id: I1903d913b23016a2fc3b9f452885ac730d71e001
|