/toolchain/binutils/binutils-2.25/libiberty/ |
stack-limit.c | 51 struct rlimit rlim; local 52 if (getrlimit (RLIMIT_STACK, &rlim) == 0 53 && rlim.rlim_cur != RLIM_INFINITY 54 && rlim.rlim_cur < pref 55 && (rlim.rlim_max == RLIM_INFINITY || rlim.rlim_cur < rlim.rlim_max)) 57 rlim.rlim_cur = pref; 58 if (rlim.rlim_max != RLIM_INFINITY && rlim.rlim_cur > rlim.rlim_max [all...] |
/external/compiler-rt/test/asan/TestCases/Linux/ |
stack-overflow-sigbus.cc | 29 struct rlimit rlim; local 30 int res = getrlimit(RLIMIT_STACK, &rlim); 32 if (rlim.rlim_cur == RLIM_INFINITY) { 33 rlim.rlim_cur = 256 * 1024; 34 res = setrlimit(RLIMIT_STACK, &rlim);
|
/external/libunwind/tests/ |
test-mem.c | 89 struct rlimit rlim; local 96 rlim.rlim_cur = 0; 97 rlim.rlim_max = RLIM_INFINITY; 98 setrlimit (RLIMIT_DATA, &rlim); 99 setrlimit (RLIMIT_AS, &rlim);
|
Gperf-simple.c | 235 struct rlimit rlim; local 237 rlim.rlim_cur = RLIM_INFINITY; 238 rlim.rlim_max = RLIM_INFINITY; 239 setrlimit (RLIMIT_STACK, &rlim);
|
Gperf-trace.c | 221 struct rlimit rlim; local 223 rlim.rlim_cur = RLIM_INFINITY; 224 rlim.rlim_max = RLIM_INFINITY; 225 setrlimit (RLIMIT_STACK, &rlim);
|
/system/extras/tests/storage/ |
opentest.c | 34 struct rlimit rlim; local 75 rlim.rlim_cur = nfiles + 10; 76 rlim.rlim_max = nfiles + 10; 77 if (setrlimit(RLIMIT_NOFILE, &rlim)) { 78 fprintf(stderr, "Unable to raise RLIMIT_NOFILE to %ld\n", rlim.rlim_cur);
|
/external/blktrace/btt/ |
misc.c | 89 struct rlimit rlim; local 92 if (!getrlimit(resource, &rlim)) { 93 rlim.rlim_cur += increase; 94 if (rlim.rlim_cur >= rlim.rlim_max) 95 rlim.rlim_max = rlim.rlim_cur + increase; 97 if (!setrlimit(resource, &rlim))
|
/external/strace/ |
resource.c | 57 } rlim; local 59 if (!umove_or_printaddr(tcp, addr, &rlim)) { 60 tprintf("{rlim_cur=%s,", sprint_rlim64(rlim.rlim_cur)); 61 tprintf(" rlim_max=%s}", sprint_rlim64(rlim.rlim_max)); 88 } rlim; local 90 if (!umove_or_printaddr(tcp, addr, &rlim)) { 91 tprintf("{rlim_cur=%s,", sprint_rlim32(rlim.rlim_cur)); 92 tprintf(" rlim_max=%s}", sprint_rlim32(rlim.rlim_max));
|
/external/compiler-rt/test/asan/TestCases/Posix/ |
stack-overflow.cc | 91 struct rlimit rlim; local 92 int res = getrlimit(RLIMIT_STACK, &rlim); 94 if (rlim.rlim_cur == RLIM_INFINITY) { 95 rlim.rlim_cur = 256 * 1024; 96 res = setrlimit(RLIMIT_STACK, &rlim);
|
/external/v8/src/base/ |
sys-info.cc | 110 struct rlimit rlim; 111 int result = getrlimit(RLIMIT_DATA, &rlim); 115 return (rlim.rlim_cur == RLIM_INFINITY) ? 0 : rlim.rlim_cur;
|
/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_posix_libcdep.cc | 73 rlimit rlim; local 74 CHECK_EQ(0, getrlimit(res, &rlim)); 75 return rlim.rlim_cur; 80 volatile struct rlimit rlim; local 81 rlim.rlim_cur = lim; 82 rlim.rlim_max = lim; 83 if (setrlimit(res, const_cast<struct rlimit *>(&rlim))) {
|
/external/valgrind/include/ |
pub_tool_libcproc.h | 81 extern Int VG_(getrlimit) ( Int resource, struct vki_rlimit *rlim ); 82 extern Int VG_(setrlimit) ( Int resource, const struct vki_rlimit *rlim );
|
/external/libevent/ |
bufferevent_ratelim.c | 565 struct bufferevent_rate_limit *rlim; local 575 rlim = bevp->rate_limiting; 576 rlim->cfg = NULL; 579 if (event_initialized(&rlim->refill_bucket_event)) 580 event_del(&rlim->refill_bucket_event); 595 rlim = mm_calloc(1, sizeof(struct bufferevent_rate_limit)); 596 if (!rlim) 598 bevp->rate_limiting = rlim; 600 rlim = bevp->rate_limiting; 602 reinit = rlim->cfg != NULL 741 struct bufferevent_rate_limit *rlim; local [all...] |
/frameworks/base/core/jni/ |
com_android_internal_os_Zygote.cpp | 195 rlimit rlim; local 196 memset(&rlim, 0, sizeof(rlim)); 205 rlim.rlim_cur = javaRlimit[1]; 206 rlim.rlim_max = javaRlimit[2]; 208 int rc = setrlimit(javaRlimit[0], &rlim); 210 ALOGE("setrlimit(%d, {%ld, %ld}) failed", javaRlimit[0], rlim.rlim_cur, 211 rlim.rlim_max);
|
/toolchain/binutils/binutils-2.25/bfd/ |
cache.c | 82 struct rlimit rlim; local 83 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0 84 && rlim.rlim_cur != (rlim_t) RLIM_INFINITY) 85 max = rlim.rlim_cur / 8;
|
/external/e2fsprogs/lib/ext2fs/ |
unix_io.c | 609 struct rlimit rlim; local 611 rlim.rlim_cur = rlim.rlim_max = (unsigned long) RLIM_INFINITY; 612 setrlimit(RLIMIT_FSIZE, &rlim); 613 getrlimit(RLIMIT_FSIZE, &rlim); 614 if (((unsigned long) rlim.rlim_cur) < 615 ((unsigned long) rlim.rlim_max)) { 616 rlim.rlim_cur = rlim.rlim_max; 617 setrlimit(RLIMIT_FSIZE, &rlim); [all...] |
/external/valgrind/memcheck/tests/x86-solaris/ |
scalar.stderr.exp | 162 Syscall param setrlimit64(rlim) contains uninitialised byte(s) 165 Syscall param setrlimit64(rlim) points to unaddressable byte(s) 175 Syscall param getrlimit64(rlim) contains uninitialised byte(s) 178 Syscall param getrlimit64(rlim) points to unaddressable byte(s)
|
/external/valgrind/coregrind/m_syswrap/ |
syswrap-x86-solaris.c | 893 struct vki_rlimit64 *rlim = (struct vki_rlimit64*)ARG2; local [all...] |
/external/compiler-rt/test/dfsan/ |
custom.cc | 433 struct rlimit rlim; 434 dfsan_set_label(i_label, &rlim, sizeof(rlim)); 435 assert(getrlimit(RLIMIT_CPU, &rlim) == 0); 436 ASSERT_READ_ZERO_LABEL(&rlim, sizeof(rlim));
|
/external/libchrome/sandbox/linux/syscall_broker/ |
broker_process_unittest.cc | 522 struct rlimit rlim; local 523 SANDBOX_ASSERT(0 == getrlimit(RLIMIT_NOFILE, &rlim)); 524 SANDBOX_ASSERT(fd_limit <= rlim.rlim_cur); 525 rlim.rlim_cur = fd_limit; 526 SANDBOX_ASSERT(0 == setrlimit(RLIMIT_NOFILE, &rlim));
|
/external/valgrind/coregrind/ |
m_libcproc.c | 614 Int VG_(getrlimit) (Int resource, struct vki_rlimit *rlim) 617 /* res = getrlimit( resource, rlim ); */ 619 res = VG_(do_syscall2)(__NR_ugetrlimit, resource, (UWord)rlim); 622 res = VG_(do_syscall2)(__NR_getrlimit, resource, (UWord)rlim); 628 Int VG_(setrlimit) (Int resource, const struct vki_rlimit *rlim) 631 /* res = setrlimit( resource, rlim ); */ 632 res = VG_(do_syscall2)(__NR_setrlimit, resource, (UWord)rlim); [all...] |
/external/compiler-rt/lib/msan/ |
msan_interceptors.cc | 865 INTERCEPTOR(int, getrlimit, int resource, void *rlim) { 867 return REAL(getrlimit)(resource, rlim); 869 int res = REAL(getrlimit)(resource, rlim); 871 __msan_unpoison(rlim, __sanitizer::struct_rlimit_sz); 876 INTERCEPTOR(int, getrlimit64, int resource, void *rlim) { 878 return REAL(getrlimit64)(resource, rlim); 880 int res = REAL(getrlimit64)(resource, rlim); 882 __msan_unpoison(rlim, __sanitizer::struct_rlimit64_sz); [all...] |
/external/compiler-rt/include/sanitizer/ |
linux_syscall_hooks.h | [all...] |
/external/v8/third_party/llvm-build/Release+Asserts/lib/clang/3.9.0/include/sanitizer/ |
linux_syscall_hooks.h | [all...] |
/prebuilts/clang/host/darwin-x86/clang-2629532/lib64/clang/3.8/include/sanitizer/ |
linux_syscall_hooks.h | [all...] |