Home
last modified time | relevance | path

Searched refs:k_rlim (Results 1 – 4 of 4) sorted by relevance

/third_party/musl/src/misc/
Dgetrlimit.c9 unsigned long k_rlim[2]; in getrlimit() local
17 if (syscall(SYS_getrlimit, resource, k_rlim) < 0) in getrlimit()
19 rlim->rlim_cur = k_rlim[0] == -1UL ? RLIM_INFINITY : k_rlim[0]; in getrlimit()
20 rlim->rlim_max = k_rlim[1] == -1UL ? RLIM_INFINITY : k_rlim[1]; in getrlimit()
Dsetrlimit.c11 unsigned long k_rlim[2]; in __setrlimit() local
21 k_rlim[0] = MIN(rlim->rlim_cur, MIN(-1UL, SYSCALL_RLIM_INFINITY)); in __setrlimit()
22 k_rlim[1] = MIN(rlim->rlim_max, MIN(-1UL, SYSCALL_RLIM_INFINITY)); in __setrlimit()
23 return __syscall(SYS_setrlimit, resource, k_rlim); in __setrlimit()
/third_party/musl/porting/liteos_a/user/src/misc/
Dgetrlimit.c9 unsigned long long k_rlim[2]; in getrlimit() local
11 if (syscall(SYS_getrlimit, resource, k_rlim) < 0) in getrlimit()
14 rlim->rlim_cur = k_rlim[0]; in getrlimit()
15 rlim->rlim_max = k_rlim[1]; in getrlimit()
Dsetrlimit.c11 unsigned long long k_rlim[2]; in __setrlimit() local
20 k_rlim[0] = rlim->rlim_cur; in __setrlimit()
21 k_rlim[1] = rlim->rlim_max; in __setrlimit()
22 return __syscall(SYS_setrlimit, resource, k_rlim); in __setrlimit()