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

/frameworks/native/services/vr/bufferhubd/
H A Dbufferhubd.cpp21 struct rlimit64 rlim; local
22 ret = getrlimit64(RLIMIT_NOFILE, &rlim);
25 ALOGI("Current nofile limit is %llu/%llu.", rlim.rlim_cur, rlim.rlim_max);
26 rlim.rlim_cur = rlim.rlim_max;
27 ret = setrlimit64(RLIMIT_NOFILE, &rlim);
30 rlim.rlim_cur = -1;
31 rlim.rlim_max = -1;
32 if (getrlimit64(RLIMIT_NOFILE, &rlim) <
[all...]
/frameworks/base/core/jni/
H A Dcom_android_internal_os_Zygote.cpp220 rlimit rlim; local
221 memset(&rlim, 0, sizeof(rlim));
231 rlim.rlim_cur = javaRlimit[1];
232 rlim.rlim_max = javaRlimit[2];
234 int rc = setrlimit(javaRlimit[0], &rlim);
236 *error_msg = CREATE_ERROR("setrlimit(%d, {%ld, %ld}) failed", javaRlimit[0], rlim.rlim_cur,
237 rlim.rlim_max);

Completed in 10 milliseconds