Searched refs:cur_limits (Results 1 – 2 of 2) sorted by relevance
51 struct rlimit saved_limits, cur_limits; variable154 if (cur_limits.rlim_cur < 4096) { in validate_current_settings()157 cur_limits.rlim_cur = 8192; in validate_current_settings()158 cur_limits.rlim_max = 16384; in validate_current_settings()159 setr(RLIMIT_MSGQUEUE, &cur_limits); in validate_current_settings()165 if (rlim_needed > cur_limits.rlim_cur) { in validate_current_settings()177 if (rlim_needed > cur_limits.rlim_cur) { in validate_current_settings()286 cur_limits = saved_limits; in main()315 printf("\tRLIMIT_MSGQUEUE(soft):\t\t%ld\n", (long) cur_limits.rlim_cur); in main()316 printf("\tRLIMIT_MSGQUEUE(hard):\t\t%ld\n", (long) cur_limits.rlim_max); in main()[all …]
91 struct rlimit saved_limits, cur_limits; variable522 cur_limits.rlim_cur = RLIM_INFINITY; in increase_limits()523 cur_limits.rlim_max = RLIM_INFINITY; in increase_limits()524 setr(RLIMIT_MSGQUEUE, &cur_limits); in increase_limits()645 cur_limits = saved_limits; in main()668 if (cur_limits.rlim_cur == RLIM_INFINITY) { in main()673 (long) cur_limits.rlim_cur); in main()675 (long) cur_limits.rlim_max); in main()