Searched refs:rlim (Results 1 – 2 of 2) sorted by relevance
/frameworks/native/services/vr/bufferhubd/ |
D | bufferhubd.cpp | 19 struct rlimit64 rlim; in main() local 20 ret = getrlimit64(RLIMIT_NOFILE, &rlim); in main() 23 ALOGI("Current nofile limit is %llu/%llu.", rlim.rlim_cur, rlim.rlim_max); in main() 24 rlim.rlim_cur = rlim.rlim_max; in main() 25 ret = setrlimit64(RLIMIT_NOFILE, &rlim); in main() 28 rlim.rlim_cur = -1; in main() 29 rlim.rlim_max = -1; in main() 30 if (getrlimit64(RLIMIT_NOFILE, &rlim) < 0) in main() 33 ALOGI("New nofile limit is %llu/%llu.", rlim.rlim_cur, rlim.rlim_max); in main()
|
/frameworks/base/core/jni/ |
D | com_android_internal_os_Zygote.cpp | 584 rlimit rlim; in SetRLimits() local 585 memset(&rlim, 0, sizeof(rlim)); in SetRLimits() 596 rlim.rlim_cur = rlimit_handle[1]; in SetRLimits() 597 rlim.rlim_max = rlimit_handle[2]; in SetRLimits() 599 if (setrlimit(rlimit_handle[0], &rlim) == -1) { in SetRLimits() 601 rlimit_handle[0], rlim.rlim_cur, rlim.rlim_max)); in SetRLimits()
|