Home
last modified time | relevance | path

Searched refs:lim (Results 1 – 3 of 3) sorted by relevance

/libuv/test/
H A Dtest-thread.c228 struct rlimit lim; in thread_check_stack()
231 ASSERT_OK(getrlimit(RLIMIT_STACK, &lim)); in thread_check_stack()
232 if (lim.rlim_cur == RLIM_INFINITY) in thread_check_stack()
233 lim.rlim_cur = 2 << 20; /* glibc default. */ in thread_check_stack()
238 expected = (size_t)lim.rlim_cur; in thread_check_stack()
H A Dtask.h302 struct rlimit lim; \
303 lim.rlim_cur = (num); \
304 lim.rlim_max = lim.rlim_cur; \
305 if (setrlimit(RLIMIT_NOFILE, &lim)) \
/libuv/src/unix/
H A Dthread.c103 struct rlimit lim; in uv__thread_stack_size() local
109 if (getrlimit(RLIMIT_STACK, &lim)) in uv__thread_stack_size()
112 if (lim.rlim_cur == RLIM_INFINITY) in uv__thread_stack_size()
116 lim.rlim_cur -= lim.rlim_cur % (rlim_t) getpagesize(); in uv__thread_stack_size()
118 if (lim.rlim_cur >= (rlim_t) uv__min_stack_size()) in uv__thread_stack_size()
119 return lim.rlim_cur; in uv__thread_stack_size()

Completed in 15 milliseconds