Home
last modified time | relevance | path

Searched refs:cur_limits (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/tools/testing/selftests/mqueue/
Dmq_open_tests.c53 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()
[all …]
Dmq_perf_tests.c93 struct rlimit saved_limits, cur_limits; variable
527 cur_limits.rlim_cur = RLIM_INFINITY; in increase_limits()
528 cur_limits.rlim_max = RLIM_INFINITY; in increase_limits()
529 setr(RLIMIT_MSGQUEUE, &cur_limits); in increase_limits()
649 cur_limits = saved_limits; in main()
672 if (cur_limits.rlim_cur == RLIM_INFINITY) { in main()
677 (long) cur_limits.rlim_cur); in main()
679 (long) cur_limits.rlim_max); in main()