Searched refs:cur_limits (Results 1 – 2 of 2) sorted by relevance
53 struct rlimit saved_limits, cur_limits; variable157 if (cur_limits.rlim_cur < 4096) { in validate_current_settings()160 cur_limits.rlim_cur = 8192; in validate_current_settings()161 cur_limits.rlim_max = 16384; in validate_current_settings()162 setr(RLIMIT_MSGQUEUE, &cur_limits); in validate_current_settings()168 if (rlim_needed > cur_limits.rlim_cur) { in validate_current_settings()180 if (rlim_needed > cur_limits.rlim_cur) { in validate_current_settings()287 cur_limits = saved_limits; in main()316 printf("\tRLIMIT_MSGQUEUE(soft):\t\t%ld\n", (long) cur_limits.rlim_cur); in main()317 printf("\tRLIMIT_MSGQUEUE(hard):\t\t%ld\n", (long) cur_limits.rlim_max); in main()[all …]
93 struct rlimit saved_limits, cur_limits; variable524 cur_limits.rlim_cur = RLIM_INFINITY; in increase_limits()525 cur_limits.rlim_max = RLIM_INFINITY; in increase_limits()526 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()