Lines Matching refs:rlp
558 struct rlimit rlp; in mch_total_mem() local
560 if (getrlimit(RLIMIT_DATA, &rlp) == 0 in mch_total_mem()
561 && rlp.rlim_cur < ((rlim_t)1 << (sizeof(long_u) * 8 - 1)) in mch_total_mem()
563 && rlp.rlim_cur != RLIM_INFINITY in mch_total_mem()
565 && ((long_u)rlp.rlim_cur >> 10) < (mem >> shiftright) in mch_total_mem()
568 mem = (long_u)rlp.rlim_cur; in mch_total_mem()
710 struct rlimit rlp; in get_stack_limit() local
716 if (getrlimit(RLIMIT_STACK, &rlp) == 0 in get_stack_limit()
717 && rlp.rlim_cur < ((rlim_t)1 << (sizeof(long_u) * 8 - 1)) in get_stack_limit()
719 && rlp.rlim_cur != RLIM_INFINITY in get_stack_limit()
723 lim = (long)rlp.rlim_cur; in get_stack_limit()