Searched refs:rlim (Results 1 - 24 of 24) sorted by relevance

/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_posix_libcdep.cc52 struct rlimit rlim; local
53 CHECK_EQ(0, getrlimit(RLIMIT_STACK, &rlim));
54 return (rlim.rlim_cur == (uptr)-1);
58 struct rlimit rlim; local
59 rlim.rlim_cur = limit;
60 rlim.rlim_max = limit;
61 if (setrlimit(RLIMIT_STACK, &rlim)) {
/external/blktrace/btt/
H A Dmisc.c89 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/
H A Dresource.c132 } rlim; local
134 if (umove(tcp, tcp->u_arg[1], &rlim) < 0)
138 sprintrlim(rlim.rlim_cur == -1 ? RLIM_INFINITY
139 : rlim.rlim_cur));
141 sprintrlim(rlim.rlim_max == -1 ? RLIM_INFINITY
142 : rlim.rlim_max));
150 struct rlimit rlim; local
163 else if (umove(tcp, tcp->u_arg[1], &rlim) < 0)
166 tprintf("{rlim_cur=%s,", sprintrlim(rlim.rlim_cur));
167 tprintf(" rlim_max=%s}", sprintrlim(rlim
176 struct rlimit rlim; local
216 struct rlimit64 rlim; local
238 struct rlimit64 rlim; local
[all...]
/external/chromium/base/
H A Dprocess_linux.cc94 struct rlimit rlim; local
95 if (getrlimit(RLIMIT_NICE, &rlim) != 0) {
108 if ((20 - current_priority) > static_cast<int>(rlim.rlim_cur)) {
H A Dprocess_util_unittest.cc379 struct rlimit rlim; local
380 if (getrlimit(RLIMIT_NOFILE, &rlim) != 0) {
387 if (rlim.rlim_cur > max_int) {
391 return rlim.rlim_cur;
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/
H A Dtestutil.cc67 struct rlimit rlim; local
68 if (getrlimit(USE_RESOURCE, &rlim) == 0) {
69 if (rlim.rlim_cur == RLIM_INFINITY || rlim.rlim_cur > kMaxMem) {
70 rlim.rlim_cur = kMaxMem;
71 setrlimit(USE_RESOURCE, &rlim); // ignore result
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/
H A Dtestutil.cc67 struct rlimit rlim; local
68 if (getrlimit(USE_RESOURCE, &rlim) == 0) {
69 if (rlim.rlim_cur == RLIM_INFINITY || rlim.rlim_cur > kMaxMem) {
70 rlim.rlim_cur = kMaxMem;
71 setrlimit(USE_RESOURCE, &rlim); // ignore result
/external/valgrind/main/include/
H A Dpub_tool_libcproc.h64 extern Int VG_(getrlimit) ( Int resource, struct vki_rlimit *rlim );
65 extern Int VG_(setrlimit) ( Int resource, const struct vki_rlimit *rlim );
/external/chromium_org/base/process/
H A Dprocess_linux.cc115 struct rlimit rlim; local
116 if ((getrlimit(RLIMIT_NICE, &rlim) == 0) &&
117 (20 - kForegroundPriority) <= static_cast<int>(rlim.rlim_cur)) {
H A Dprocess_util_unittest.cc457 struct rlimit rlim; local
458 if (getrlimit(RLIMIT_NOFILE, &rlim) != 0) {
465 if (rlim.rlim_cur > max_int) {
469 return rlim.rlim_cur;
/external/llvm/lib/Support/Unix/
H A DProcess.inc179 struct rlimit rlim;
180 rlim.rlim_cur = rlim.rlim_max = 0;
181 setrlimit(RLIMIT_CORE, &rlim);
/external/compiler-rt/lib/tsan/rtl/
H A Dtsan_platform_linux.cc303 rlimit rlim; local
304 CHECK_EQ(0, getrlimit(res, &rlim));
305 return rlim.rlim_cur;
310 volatile rlimit rlim; local
311 rlim.rlim_cur = lim;
312 rlim.rlim_max = lim;
313 setrlimit(res, (rlimit*)&rlim);
/external/e2fsprogs/lib/ext2fs/
H A Dunix_io.c548 struct rlimit rlim; local
550 rlim.rlim_cur = rlim.rlim_max = (unsigned long) RLIM_INFINITY;
551 setrlimit(RLIMIT_FSIZE, &rlim);
552 getrlimit(RLIMIT_FSIZE, &rlim);
553 if (((unsigned long) rlim.rlim_cur) <
554 ((unsigned long) rlim.rlim_max)) {
555 rlim.rlim_cur = rlim.rlim_max;
556 setrlimit(RLIMIT_FSIZE, &rlim);
[all...]
/external/valgrind/main/coregrind/
H A Dm_libcproc.c398 Int VG_(getrlimit) (Int resource, struct vki_rlimit *rlim) argument
401 /* res = getrlimit( resource, rlim ); */
403 res = VG_(do_syscall2)(__NR_ugetrlimit, resource, (UWord)rlim);
406 res = VG_(do_syscall2)(__NR_getrlimit, resource, (UWord)rlim);
412 Int VG_(setrlimit) (Int resource, const struct vki_rlimit *rlim) argument
415 /* res = setrlimit( resource, rlim ); */
416 res = VG_(do_syscall2)(__NR_setrlimit, resource, (UWord)rlim);
/external/compiler-rt/lib/msan/
H A Dmsan_interceptors.cc648 INTERCEPTOR(int, getrlimit, int resource, void *rlim) { argument
650 return REAL(getrlimit)(resource, rlim);
652 int res = REAL(getrlimit)(resource, rlim);
654 __msan_unpoison(rlim, __sanitizer::struct_rlimit_sz);
658 INTERCEPTOR(int, getrlimit64, int resource, void *rlim) { argument
660 return REAL(getrlimit64)(resource, rlim);
662 int res = REAL(getrlimit64)(resource, rlim);
664 __msan_unpoison(rlim, __sanitizer::struct_rlimit64_sz);
/external/oprofile/daemon/
H A Doprofiled.c501 struct rlimit rlim = { 2048, 2048 }; local
508 err = setrlimit(RLIMIT_NOFILE, &rlim);
/external/openssh/
H A Dssh.c293 struct rlimit rlim; local
294 rlim.rlim_cur = rlim.rlim_max = 0;
295 if (setrlimit(RLIMIT_CORE, &rlim) < 0)
H A Dssh-agent.c1136 struct rlimit rlim; local
1335 rlim.rlim_cur = rlim.rlim_max = 0;
1336 if (setrlimit(RLIMIT_CORE, &rlim) < 0) {
/external/blktrace/
H A Dblktrace.c624 struct rlimit rlim; local
627 if (!getrlimit(resource, &rlim)) {
628 rlim.rlim_cur += increase;
629 if (rlim.rlim_cur >= rlim.rlim_max)
630 rlim.rlim_max = rlim.rlim_cur + increase;
632 if (!setrlimit(resource, &rlim))
/external/kernel-headers/original/linux/
H A Dmm.h692 if (current->signal->rlim[RLIMIT_MEMLOCK].rlim_cur != 0)
H A Dsched.h453 struct rlimit rlim[RLIM_NLIMITS]; member in struct:signal_struct
/external/mdnsresponder/mDNSShared/
H A Ddnsextd.c3029 struct rlimit rlim; local
3054 rlim.rlim_max = RLIM_INFINITY;
3055 rlim.rlim_cur = RLIM_INFINITY;
3056 if (setrlimit(RLIMIT_NOFILE, &rlim) < 0)
/external/valgrind/main/coregrind/m_syswrap/
H A Dsyswrap-generic.c3219 unsigned int, resource, struct rlimit *, rlim);
3220 PRE_MEM_WRITE( "old_getrlimit(rlim)", ARG2, sizeof(struct vki_rlimit) );
3232 unsigned int, resource, struct rlimit *, rlim);
3233 PRE_MEM_WRITE( "getrlimit(rlim)", ARG2, sizeof(struct vki_rlimit) );
3911 unsigned int, resource, struct rlimit *, rlim);
3912 PRE_MEM_READ( "setrlimit(rlim)", ARG2, sizeof(struct vki_rlimit) );
/external/valgrind/main/memcheck/tests/x86-linux/
H A Dscalar.stderr.exp768 Syscall param setrlimit(rlim) contains uninitialised byte(s)
772 Syscall param setrlimit(rlim) points to unaddressable byte(s)
784 Syscall param old_getrlimit(rlim) contains uninitialised byte(s)
788 Syscall param old_getrlimit(rlim) points to unaddressable byte(s)
2474 Syscall param getrlimit(rlim) contains uninitialised byte(s)
2478 Syscall param getrlimit(rlim) points to unaddressable byte(s)

Completed in 5260 milliseconds