Lines Matching refs:cur_limits
53 struct rlimit saved_limits, cur_limits; variable
157 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()
388 cur_limits.rlim_cur) { in main()
389 cur_limits.rlim_cur = (cur_def_msgs + 2) * in main()
391 cur_limits.rlim_max = 2 * cur_limits.rlim_cur; in main()
392 setr(RLIMIT_MSGQUEUE, &cur_limits); in main()
408 cur_limits.rlim_cur = cur_limits.rlim_max = cur_def_msgs * in main()
410 setr(RLIMIT_MSGQUEUE, &cur_limits); in main()
427 cur_max_msgsize = cur_limits.rlim_max >> 4; in main()