Searched refs:rlim_old (Results 1 – 2 of 2) sorted by relevance
438 static struct rlimit rlim_old; variable442 getrlimit(RLIMIT_MEMLOCK, &rlim_old); in main_ctor()444 if (rlim_old.rlim_cur != RLIM_INFINITY) { in main_ctor()447 rlim_new.rlim_cur = rlim_old.rlim_cur + (1UL << 20); in main_ctor()448 rlim_new.rlim_max = rlim_old.rlim_max + (1UL << 20); in main_ctor()455 setrlimit(RLIMIT_MEMLOCK, &rlim_old); in main_dtor()
398 struct rlimit rlim_old, rlim_new = {}; in test_sk_storage_map_stress_free() local401 getrlimit(RLIMIT_NOFILE, &rlim_old); in test_sk_storage_map_stress_free()410 if (rlim_old.rlim_cur < nr_sk_threads * nr_sk_per_thread) { in test_sk_storage_map_stress_free()428 setrlimit(RLIMIT_NOFILE, &rlim_old); in test_sk_storage_map_stress_free()