Home
last modified time | relevance | path

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

/frameworks/native/services/vr/bufferhubd/
Dbufferhubd.cpp21 struct rlimit64 rlim; in main() local
22 ret = getrlimit64(RLIMIT_NOFILE, &rlim); in main()
25 ALOGI("Current nofile limit is %llu/%llu.", rlim.rlim_cur, rlim.rlim_max); in main()
26 rlim.rlim_cur = rlim.rlim_max; in main()
27 ret = setrlimit64(RLIMIT_NOFILE, &rlim); in main()
30 rlim.rlim_cur = -1; in main()
31 rlim.rlim_max = -1; in main()
32 if (getrlimit64(RLIMIT_NOFILE, &rlim) < 0) in main()
35 ALOGI("New nofile limit is %llu/%llu.", rlim.rlim_cur, rlim.rlim_max); in main()
/frameworks/base/core/jni/
Dcom_android_internal_os_Zygote.cpp203 rlimit rlim; in SetRLimits() local
204 memset(&rlim, 0, sizeof(rlim)); in SetRLimits()
213 rlim.rlim_cur = javaRlimit[1]; in SetRLimits()
214 rlim.rlim_max = javaRlimit[2]; in SetRLimits()
216 int rc = setrlimit(javaRlimit[0], &rlim); in SetRLimits()
218 ALOGE("setrlimit(%d, {%ld, %ld}) failed", javaRlimit[0], rlim.rlim_cur, in SetRLimits()
219 rlim.rlim_max); in SetRLimits()