/external/strace/ |
D | resource.c | 57 } rlim; in print_rlimit64() local 59 if (!umove_or_printaddr(tcp, addr, &rlim)) { in print_rlimit64() 60 tprintf("{rlim_cur=%s,", sprint_rlim64(rlim.rlim_cur)); in print_rlimit64() 61 tprintf(" rlim_max=%s}", sprint_rlim64(rlim.rlim_max)); in print_rlimit64() 88 } rlim; in print_rlimit32() local 90 if (!umove_or_printaddr(tcp, addr, &rlim)) { in print_rlimit32() 91 tprintf("{rlim_cur=%s,", sprint_rlim32(rlim.rlim_cur)); in print_rlimit32() 92 tprintf(" rlim_max=%s}", sprint_rlim32(rlim.rlim_max)); in print_rlimit32()
|
D | strace.c | 2319 struct_rlimit rlim = {0, 0}; in main() local 2320 set_rlimit(RLIMIT_CORE, &rlim); in main()
|
/external/blktrace/btt/ |
D | misc.c | 89 struct rlimit rlim; in increase_limit() local 92 if (!getrlimit(resource, &rlim)) { in increase_limit() 93 rlim.rlim_cur += increase; in increase_limit() 94 if (rlim.rlim_cur >= rlim.rlim_max) in increase_limit() 95 rlim.rlim_max = rlim.rlim_cur + increase; in increase_limit() 97 if (!setrlimit(resource, &rlim)) in increase_limit()
|
/external/compiler-rt/test/asan/TestCases/Linux/ |
D | stack-overflow-sigbus.cc | 29 struct rlimit rlim; in LimitStackAndReexec() local 30 int res = getrlimit(RLIMIT_STACK, &rlim); in LimitStackAndReexec() 32 if (rlim.rlim_cur == RLIM_INFINITY) { in LimitStackAndReexec() 33 rlim.rlim_cur = 256 * 1024; in LimitStackAndReexec() 34 res = setrlimit(RLIMIT_STACK, &rlim); in LimitStackAndReexec()
|
/external/libunwind/tests/ |
D | test-mem.c | 89 struct rlimit rlim; in main() local 96 rlim.rlim_cur = 0; in main() 97 rlim.rlim_max = RLIM_INFINITY; in main() 98 setrlimit (RLIMIT_DATA, &rlim); in main() 99 setrlimit (RLIMIT_AS, &rlim); in main()
|
D | Gperf-simple.c | 235 struct rlimit rlim; in main() local 237 rlim.rlim_cur = RLIM_INFINITY; in main() 238 rlim.rlim_max = RLIM_INFINITY; in main() 239 setrlimit (RLIMIT_STACK, &rlim); in main()
|
D | Gperf-trace.c | 221 struct rlimit rlim; in main() local 223 rlim.rlim_cur = RLIM_INFINITY; in main() 224 rlim.rlim_max = RLIM_INFINITY; in main() 225 setrlimit (RLIMIT_STACK, &rlim); in main()
|
/external/libevent/ |
D | bufferevent_ratelim.c | 565 struct bufferevent_rate_limit *rlim; in bufferevent_set_rate_limit() local 575 rlim = bevp->rate_limiting; in bufferevent_set_rate_limit() 576 rlim->cfg = NULL; in bufferevent_set_rate_limit() 579 if (event_initialized(&rlim->refill_bucket_event)) in bufferevent_set_rate_limit() 580 event_del(&rlim->refill_bucket_event); in bufferevent_set_rate_limit() 595 rlim = mm_calloc(1, sizeof(struct bufferevent_rate_limit)); in bufferevent_set_rate_limit() 596 if (!rlim) in bufferevent_set_rate_limit() 598 bevp->rate_limiting = rlim; in bufferevent_set_rate_limit() 600 rlim = bevp->rate_limiting; in bufferevent_set_rate_limit() 602 reinit = rlim->cfg != NULL; in bufferevent_set_rate_limit() [all …]
|
/external/compiler-rt/test/asan/TestCases/Posix/ |
D | stack-overflow.cc | 91 struct rlimit rlim; in LimitStackAndReexec() local 92 int res = getrlimit(RLIMIT_STACK, &rlim); in LimitStackAndReexec() 94 if (rlim.rlim_cur == RLIM_INFINITY) { in LimitStackAndReexec() 95 rlim.rlim_cur = 256 * 1024; in LimitStackAndReexec() 96 res = setrlimit(RLIMIT_STACK, &rlim); in LimitStackAndReexec()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_posix_libcdep.cc | 73 rlimit rlim; in getlim() local 74 CHECK_EQ(0, getrlimit(res, &rlim)); in getlim() 75 return rlim.rlim_cur; in getlim() 80 volatile struct rlimit rlim; in setlim() local 81 rlim.rlim_cur = lim; in setlim() 82 rlim.rlim_max = lim; in setlim() 83 if (setrlimit(res, const_cast<struct rlimit *>(&rlim))) { in setlim()
|
D | sanitizer_common_syscalls.inc | 2021 PRE_SYSCALL(getrlimit)(long resource, void *rlim) {} 2023 POST_SYSCALL(getrlimit)(long res, long resource, void *rlim) { 2025 if (rlim) POST_WRITE(rlim, struct_rlimit_sz); 2029 PRE_SYSCALL(old_getrlimit)(long resource, void *rlim) {} 2031 POST_SYSCALL(old_getrlimit)(long res, long resource, void *rlim) { 2033 if (rlim) POST_WRITE(rlim, struct_rlimit_sz); 2037 PRE_SYSCALL(setrlimit)(long resource, void *rlim) {} 2039 POST_SYSCALL(setrlimit)(long res, long resource, void *rlim) { 2041 if (rlim) POST_WRITE(rlim, struct_rlimit_sz);
|
/external/v8/src/base/ |
D | sys-info.cc | 110 struct rlimit rlim; in AmountOfVirtualMemory() 111 int result = getrlimit(RLIMIT_DATA, &rlim); in AmountOfVirtualMemory() 115 return (rlim.rlim_cur == RLIM_INFINITY) ? 0 : rlim.rlim_cur; in AmountOfVirtualMemory()
|
/external/e2fsprogs/lib/ext2fs/ |
D | unix_io.c | 609 struct rlimit rlim; in unix_open() local 611 rlim.rlim_cur = rlim.rlim_max = (unsigned long) RLIM_INFINITY; in unix_open() 612 setrlimit(RLIMIT_FSIZE, &rlim); in unix_open() 613 getrlimit(RLIMIT_FSIZE, &rlim); in unix_open() 614 if (((unsigned long) rlim.rlim_cur) < in unix_open() 615 ((unsigned long) rlim.rlim_max)) { in unix_open() 616 rlim.rlim_cur = rlim.rlim_max; in unix_open() 617 setrlimit(RLIMIT_FSIZE, &rlim); in unix_open()
|
/external/valgrind/include/ |
D | 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/valgrind/memcheck/tests/x86-solaris/ |
D | 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/ |
D | syswrap-x86-solaris.c | 836 PRE_REG_READ2(long, "setrlimit64", int, resource, struct rlimit64 *, rlim); in PRE() 886 int, resource, struct rlimit64 *, rlim); in PRE() 893 struct vki_rlimit64 *rlim = (struct vki_rlimit64*)ARG2; in POST() local 899 rlim->rlim_cur = VG_(fd_soft_limit); in POST() 900 rlim->rlim_max = VG_(fd_hard_limit); in POST() 903 rlim->rlim_cur = VG_(client_rlimit_data).rlim_cur; in POST() 904 rlim->rlim_max = VG_(client_rlimit_data).rlim_max; in POST() 907 rlim->rlim_cur = VG_(client_rlimit_stack).rlim_cur; in POST() 908 rlim->rlim_max = VG_(client_rlimit_stack).rlim_max; in POST()
|
/external/compiler-rt/test/dfsan/ |
D | custom.cc | 433 struct rlimit rlim; in test_getrlimit() local 434 dfsan_set_label(i_label, &rlim, sizeof(rlim)); in test_getrlimit() 435 assert(getrlimit(RLIMIT_CPU, &rlim) == 0); in test_getrlimit() 436 ASSERT_READ_ZERO_LABEL(&rlim, sizeof(rlim)); in test_getrlimit()
|
/external/libchrome/sandbox/linux/syscall_broker/ |
D | broker_process_unittest.cc | 522 struct rlimit rlim; in SANDBOX_TEST_ALLOW_NOISE() local 523 SANDBOX_ASSERT(0 == getrlimit(RLIMIT_NOFILE, &rlim)); in SANDBOX_TEST_ALLOW_NOISE() 524 SANDBOX_ASSERT(fd_limit <= rlim.rlim_cur); in SANDBOX_TEST_ALLOW_NOISE() 525 rlim.rlim_cur = fd_limit; in SANDBOX_TEST_ALLOW_NOISE() 526 SANDBOX_ASSERT(0 == setrlimit(RLIMIT_NOFILE, &rlim)); in SANDBOX_TEST_ALLOW_NOISE()
|
/external/valgrind/coregrind/ |
D | m_libcproc.c | 614 Int VG_(getrlimit) (Int resource, struct vki_rlimit *rlim) in VG_() 619 res = VG_(do_syscall2)(__NR_ugetrlimit, resource, (UWord)rlim); in VG_() 622 res = VG_(do_syscall2)(__NR_getrlimit, resource, (UWord)rlim); in VG_() 628 Int VG_(setrlimit) (Int resource, const struct vki_rlimit *rlim) in VG_() 632 res = VG_(do_syscall2)(__NR_setrlimit, resource, (UWord)rlim); in VG_()
|
/external/compiler-rt/lib/msan/ |
D | msan_interceptors.cc | 865 INTERCEPTOR(int, getrlimit, int resource, void *rlim) { in INTERCEPTOR() argument 867 return REAL(getrlimit)(resource, rlim); in INTERCEPTOR() 869 int res = REAL(getrlimit)(resource, rlim); in INTERCEPTOR() 871 __msan_unpoison(rlim, __sanitizer::struct_rlimit_sz); in INTERCEPTOR() 876 INTERCEPTOR(int, getrlimit64, int resource, void *rlim) { in INTERCEPTOR() argument 878 return REAL(getrlimit64)(resource, rlim); in INTERCEPTOR() 880 int res = REAL(getrlimit64)(resource, rlim); in INTERCEPTOR() 882 __msan_unpoison(rlim, __sanitizer::struct_rlimit64_sz); in INTERCEPTOR()
|
/external/llvm/lib/Support/Unix/ |
D | Process.inc | 139 struct rlimit rlim; 140 rlim.rlim_cur = rlim.rlim_max = 0; 141 setrlimit(RLIMIT_CORE, &rlim);
|
/external/compiler-rt/include/sanitizer/ |
D | linux_syscall_hooks.h | 1254 #define __sanitizer_syscall_pre_getrlimit(resource, rlim) \ argument 1255 __sanitizer_syscall_pre_impl_getrlimit((long)(resource), (long)(rlim)) 1256 #define __sanitizer_syscall_post_getrlimit(res, resource, rlim) \ argument 1257 __sanitizer_syscall_post_impl_getrlimit(res, (long)(resource), (long)(rlim)) 1258 #define __sanitizer_syscall_pre_old_getrlimit(resource, rlim) \ argument 1259 __sanitizer_syscall_pre_impl_old_getrlimit((long)(resource), (long)(rlim)) 1260 #define __sanitizer_syscall_post_old_getrlimit(res, resource, rlim) \ argument 1262 (long)(rlim)) 1263 #define __sanitizer_syscall_pre_setrlimit(resource, rlim) \ argument 1264 __sanitizer_syscall_pre_impl_setrlimit((long)(resource), (long)(rlim)) [all …]
|
/external/blktrace/ |
D | blktrace.c | 624 struct rlimit rlim; in increase_limit() local 627 if (!getrlimit(resource, &rlim)) { in increase_limit() 628 rlim.rlim_cur += increase; in increase_limit() 629 if (rlim.rlim_cur >= rlim.rlim_max) in increase_limit() 630 rlim.rlim_max = rlim.rlim_cur + increase; in increase_limit() 632 if (!setrlimit(resource, &rlim)) in increase_limit()
|
/external/squashfs-tools/squashfs-tools/ |
D | unsquashfs.c | 2174 struct rlimit rlim; in initialise_threads() local 2268 res = getrlimit(RLIMIT_NOFILE, &rlim); in initialise_threads() 2271 rlim.rlim_cur = 1; in initialise_threads() 2274 if (rlim.rlim_cur != RLIM_INFINITY) { in initialise_threads() 2279 if (rlim.rlim_cur <= OPEN_FILE_MARGIN) in initialise_threads() 2283 max_files = rlim.rlim_cur - OPEN_FILE_MARGIN; in initialise_threads()
|
/external/compiler-rt/lib/dfsan/ |
D | dfsan_custom.cc | 484 int __dfsw_getrlimit(int resource, struct rlimit *rlim, in __dfsw_getrlimit() argument 487 int ret = getrlimit(resource, rlim); in __dfsw_getrlimit() 489 dfsan_set_label(0, rlim, sizeof(struct rlimit)); in __dfsw_getrlimit()
|