Home
last modified time | relevance | path

Searched refs:rlim (Results 1 – 25 of 28) sorted by relevance

12

/external/blktrace/btt/
Dmisc.c89 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/
Dstack-overflow-sigbus.cc29 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/
Dtest-mem.c89 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()
DGperf-trace.c221 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()
DGperf-simple.c235 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()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_posix_libcdep.cc63 rlimit rlim; in getlim() local
64 CHECK_EQ(0, getrlimit(res, &rlim)); in getlim()
65 return rlim.rlim_cur; in getlim()
70 volatile struct rlimit rlim; in setlim() local
71 rlim.rlim_cur = lim; in setlim()
72 rlim.rlim_max = lim; in setlim()
73 if (setrlimit(res, const_cast<struct rlimit *>(&rlim))) { in setlim()
Dsanitizer_common_syscalls.inc2021 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/compiler-rt/test/asan/TestCases/
Dstack-overflow.cc91 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/strace/
Dresource.c59 } rlim; in print_rlimit64() local
61 if (umove(tcp, addr, &rlim) < 0) in print_rlimit64()
64 tprintf("{rlim_cur=%s,", sprint_rlim64(rlim.rlim_cur)); in print_rlimit64()
65 tprintf(" rlim_max=%s}", sprint_rlim64(rlim.rlim_max)); in print_rlimit64()
104 } rlim; in print_rlimit32() local
106 if (umove(tcp, addr, &rlim) < 0) in print_rlimit32()
109 tprintf("{rlim_cur=%s,", sprint_rlim32(rlim.rlim_cur)); in print_rlimit32()
110 tprintf(" rlim_max=%s}", sprint_rlim32(rlim.rlim_max)); in print_rlimit32()
Dstrace.c2304 struct_rlimit rlim = {0, 0}; in main() local
2305 set_rlimit(RLIMIT_CORE, &rlim); in main()
/external/v8/src/base/
Dsys-info.cc114 struct rlimit rlim; in AmountOfVirtualMemory()
115 int result = getrlimit(RLIMIT_DATA, &rlim); in AmountOfVirtualMemory()
120 return (rlim.rlim_cur == RLIM_INFINITY) ? 0 : rlim.rlim_cur; in AmountOfVirtualMemory()
/external/e2fsprogs/lib/ext2fs/
Dunix_io.c609 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/
Dpub_tool_libcproc.h68 extern Int VG_(getrlimit) ( Int resource, struct vki_rlimit *rlim );
69 extern Int VG_(setrlimit) ( Int resource, const struct vki_rlimit *rlim );
/external/compiler-rt/test/dfsan/
Dcustom.cc433 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/valgrind/coregrind/
Dm_libcproc.c407 Int VG_(getrlimit) (Int resource, struct vki_rlimit *rlim) in VG_()
412 res = VG_(do_syscall2)(__NR_ugetrlimit, resource, (UWord)rlim); in VG_()
415 res = VG_(do_syscall2)(__NR_getrlimit, resource, (UWord)rlim); in VG_()
421 Int VG_(setrlimit) (Int resource, const struct vki_rlimit *rlim) in VG_()
425 res = VG_(do_syscall2)(__NR_setrlimit, resource, (UWord)rlim); in VG_()
/external/compiler-rt/lib/msan/
Dmsan_interceptors.cc859 INTERCEPTOR(int, getrlimit, int resource, void *rlim) { in INTERCEPTOR() argument
861 return REAL(getrlimit)(resource, rlim); in INTERCEPTOR()
863 int res = REAL(getrlimit)(resource, rlim); in INTERCEPTOR()
865 __msan_unpoison(rlim, __sanitizer::struct_rlimit_sz); in INTERCEPTOR()
870 INTERCEPTOR(int, getrlimit64, int resource, void *rlim) { in INTERCEPTOR() argument
872 return REAL(getrlimit64)(resource, rlim); in INTERCEPTOR()
874 int res = REAL(getrlimit64)(resource, rlim); in INTERCEPTOR()
876 __msan_unpoison(rlim, __sanitizer::struct_rlimit64_sz); in INTERCEPTOR()
/external/llvm/lib/Support/Unix/
DProcess.inc139 struct rlimit rlim;
140 rlim.rlim_cur = rlim.rlim_max = 0;
141 setrlimit(RLIMIT_CORE, &rlim);
/external/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h1254 #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/
Dblktrace.c624 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/openssh/
Dssh-agent.c1155 struct rlimit rlim; in main() local
1348 rlim.rlim_cur = rlim.rlim_max = 0; in main()
1349 if (setrlimit(RLIMIT_CORE, &rlim) < 0) { in main()
Dssh.c563 struct rlimit rlim; in main() local
564 rlim.rlim_cur = rlim.rlim_max = 0; in main()
565 if (setrlimit(RLIMIT_CORE, &rlim) < 0) in main()
/external/squashfs-tools/squashfs-tools/
Dunsquashfs.c2169 struct rlimit rlim; in initialise_threads() local
2262 res = getrlimit(RLIMIT_NOFILE, &rlim); in initialise_threads()
2265 rlim.rlim_cur = 1; in initialise_threads()
2268 if (rlim.rlim_cur != RLIM_INFINITY) { in initialise_threads()
2273 if (rlim.rlim_cur <= OPEN_FILE_MARGIN) in initialise_threads()
2277 max_files = rlim.rlim_cur - OPEN_FILE_MARGIN; in initialise_threads()
/external/compiler-rt/lib/dfsan/
Ddfsan_custom.cc455 int __dfsw_getrlimit(int resource, struct rlimit *rlim, in __dfsw_getrlimit() argument
458 int ret = getrlimit(resource, rlim); in __dfsw_getrlimit()
460 dfsan_set_label(0, rlim, sizeof(struct rlimit)); in __dfsw_getrlimit()
/external/mdnsresponder/mDNSShared/
Ddnsextd.c3029 struct rlimit rlim; in main() local
3054 rlim.rlim_max = RLIM_INFINITY; in main()
3055 rlim.rlim_cur = RLIM_INFINITY; in main()
3056 if (setrlimit(RLIMIT_NOFILE, &rlim) < 0) in main()
/external/pcre/dist/
Dpcretest.c3165 struct rlimit rlim; in main()
3166 getrlimit(RLIMIT_STACK, &rlim); in main()
3167 rlim.rlim_cur = stack_size * 1024 * 1024; in main()
3168 rc = setrlimit(RLIMIT_STACK, &rlim); in main()

12