Home
last modified time | relevance | path

Searched refs:sysconf (Results 1 - 25 of 451) sorted by relevance

12345678910>>...19

/third_party/musl/libc-test/src/functionalext/supplement/conf/conf_gtest/
H A Dconf_sysconf_test.cpp16 * @tc.desc: Validate whether the sysconf interface correctly reports that the maximum number of user trace events is
17 * not available by checking if the value returned by sysconf(_SC_TRACE_USER_EVENT_MAX) is equal to -1.
22 int result = sysconf(_SC_TRACE_USER_EVENT_MAX); in HWTEST_F()
28 * @tc.desc: Validate whether the sysconf interface correctly returns the maximum number of thread-specific data keys by
29 * comparing the value returned by sysconf(_SC_THREAD_KEYS_MAX) with the predefined value PTHREAD_KEYS_MAX.
34 int pthreadKeyMax = sysconf(_SC_THREAD_KEYS_MAX); in HWTEST_F()
40 * @tc.desc: Validate whether the sysconf interface correctly returns the clock ticks per second by comparing the value
41 * returned by sysconf(_SC_CLK_TCK) with the predefined value 100.
46 int result = sysconf(_SC_CLK_TCK); in HWTEST_F()
52 * @tc.desc: Validate whether the sysconf interfac
[all...]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
H A D16-1.c82 ret = ftruncate(fd_s, sysconf(_SC_PAGESIZE)); in main()
88 ret = ftruncate(fd_ns, sysconf(_SC_PAGESIZE)); in main()
96 mmap(NULL, sysconf(_SC_PAGESIZE), PROT_READ | PROT_WRITE, in main()
104 mmap(NULL, sysconf(_SC_PAGESIZE), PROT_READ | PROT_WRITE, in main()
H A D8-1.c81 } while ((cur_time - st_time) < sysconf(_SC_CLK_TCK)); in main()
90 sysconf(_SC_CLK_TCK)); in main()
108 sysconf(_SC_CLK_TCK)) in main()
/third_party/node/deps/v8/src/base/
H A Dsys-info.cc49 long result = sysconf(_SC_NPROCESSORS_ONLN); // NOLINT(runtime/int) in NumberOfProcessors()
99 int64_t result = sysconf(_SC_AIX_REALMEM); in AmountOfPhysicalMemory()
102 long pages = sysconf(_SC_PHYS_PAGES); // NOLINT(runtime/int) in AmountOfPhysicalMemory()
103 long page_size = sysconf(_SC_PAGESIZE); // NOLINT(runtime/int) in AmountOfPhysicalMemory()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/getpid/
H A D1-1.c101 mf = sysconf(_SC_MAPPED_FILES); in main()
133 ret = ftruncate(fd, sysconf(_SC_PAGESIZE)); in main()
140 mmap(NULL, sysconf(_SC_PAGESIZE), PROT_READ | PROT_WRITE, in main()
/third_party/musl/libc-test/src/functionalext/supplement/sched/
H A D__sched_cpucount.c35 num_cpus = sysconf(_SC_NPROCESSORS_CONF); in __sched_cpucount_0100()
61 num_cpus = sysconf(_SC_NPROCESSORS_CONF); in __sched_cpucount_0200()
87 num_cpus = sysconf(_SC_NPROCESSORS_CONF); in __sched_cpucount_0300()
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_wait/
H A Dstress1.c389 pshared = sysconf(_SC_THREAD_PROCESS_SHARED); in main()
390 cs = sysconf(_SC_CLOCK_SELECTION); in main()
391 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
392 mf = sysconf(_SC_MAPPED_FILES); in main()
449 ps = (size_t) sysconf(_SC_PAGESIZE); in main()
619 ret = pthread_attr_setstacksize(&ta, sysconf(_SC_THREAD_STACK_MIN)); in main()
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_timedwait/
H A Dstress1.c395 pshared = sysconf(_SC_THREAD_PROCESS_SHARED); in main()
396 cs = sysconf(_SC_CLOCK_SELECTION); in main()
397 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
398 mf = sysconf(_SC_MAPPED_FILES); in main()
455 ps = (size_t) sysconf(_SC_PAGESIZE); in main()
625 ret = pthread_attr_setstacksize(&ta, sysconf(_SC_THREAD_STACK_MIN)); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/
H A D5-1.c26 if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L || in main()
27 sysconf(_SC_MONOTONIC_CLOCK) < 200112L) in main()
/third_party/musl/libc-test/src/functionalext/supplement/conf/
H A Dsysconf.c27 long result = sysconf(_SC_CHILD_MAX); in sysconf_0100()
29 t_error("%s sysconf want get result is not zero", __func__); in sysconf_0100()
40 long result = sysconf(_SC_OPEN_MAX); in sysconf_0200()
42 t_error("%s sysconf want get result is not zero", __func__); in sysconf_0200()
/third_party/python/Lib/test/
H A Dmemory_watchdog.py14 page_size = os.sysconf('SC_PAGESIZE')
17 page_size = os.sysconf('SC_PAGE_SIZE')
/third_party/ltp/testcases/lib/
H A Dtst_getconf.c40 printf("%ld\n", sysconf(_SC_NPROCESSORS_ONLN)); in main()
43 printf("%ld\n", sysconf(_SC_PAGE_SIZE)); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_read/
H A D8-1.c41 if (sysconf(_SC_ASYNCHRONOUS_IO) < 200112L) in main()
44 if (sysconf(_SC_PRIORITIZED_IO) < 200112L) in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_write/
H A D6-1.c41 if (sysconf(_SC_ASYNCHRONOUS_IO) < 200112L) in main()
44 if (sysconf(_SC_PRIORITIZED_IO) < 200112L) in main()
/third_party/vk-gl-cts/framework/delibs/dethread/unix/
H A DdeThreadUnix.c184 const long count = sysconf(_SC_NPROCESSORS_ONLN); in deGetNumAvailableLogicalCores()
204 const long count = sysconf(_SC_NPROCESSORS_ONLN); in deGetNumAvailableLogicalCores()
220 const long count = sysconf(_SC_NPROCESSORS_CONF); in deGetNumTotalLogicalCores()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/
H A D1-2.c268 min_stack = sysconf(_SC_THREAD_STACK_MIN); in children_number()
323 pshared = sysconf(_SC_THREAD_PROCESS_SHARED); in main()
324 cs = sysconf(_SC_CLOCK_SELECTION); in main()
325 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
326 mf = sysconf(_SC_MAPPED_FILES); in main()
382 ps = (size_t) sysconf(_SC_PAGESIZE); in main()
415 ret = pthread_attr_setstacksize(&ta, sysconf(_SC_THREAD_STACK_MIN)); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/
H A D2-4.c258 pshared = sysconf(_SC_THREAD_PROCESS_SHARED); in main()
259 cs = sysconf(_SC_CLOCK_SELECTION); in main()
260 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
261 mf = sysconf(_SC_MAPPED_FILES); in main()
318 sz = (size_t) sysconf(_SC_PAGESIZE); in main()
H A D4-2.c212 pshared = sysconf(_SC_THREAD_PROCESS_SHARED); in main()
213 cs = sysconf(_SC_CLOCK_SELECTION); in main()
214 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
215 mf = sysconf(_SC_MAPPED_FILES); in main()
273 sz = (size_t) sysconf(_SC_PAGESIZE); in main()
H A D2-7.c267 pshared = sysconf(_SC_THREAD_PROCESS_SHARED); in main()
268 cs = sysconf(_SC_CLOCK_SELECTION); in main()
269 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
270 mf = sysconf(_SC_MAPPED_FILES); in main()
326 sz = (size_t) sysconf(_SC_PAGESIZE); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/
H A D2-2.c274 pshared = sysconf(_SC_THREAD_PROCESS_SHARED); in main()
275 cs = sysconf(_SC_CLOCK_SELECTION); in main()
276 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
277 mf = sysconf(_SC_MAPPED_FILES); in main()
334 sz = (size_t) sysconf(_SC_PAGESIZE); in main()
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_create/
H A Dthreads_scenarii.c149 pagesize = sysconf(_SC_PAGESIZE); in scenar_init()
150 minstacksize = sysconf(_SC_THREAD_STACK_MIN); in scenar_init()
151 tsa = sysconf(_SC_THREAD_ATTR_STACKADDR); in scenar_init()
152 tss = sysconf(_SC_THREAD_ATTR_STACKSIZE); in scenar_init()
153 tps = sysconf(_SC_THREAD_PRIORITY_SCHEDULING); in scenar_init()
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_exit/
H A Dthreads_scenarii.c149 pagesize = sysconf(_SC_PAGESIZE); in scenar_init()
150 minstacksize = sysconf(_SC_THREAD_STACK_MIN); in scenar_init()
151 tsa = sysconf(_SC_THREAD_ATTR_STACKADDR); in scenar_init()
152 tss = sysconf(_SC_THREAD_ATTR_STACKSIZE); in scenar_init()
153 tps = sysconf(_SC_THREAD_PRIORITY_SCHEDULING); in scenar_init()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/
H A D1-2.c306 pshared = sysconf(_SC_THREAD_PROCESS_SHARED); in main()
307 cs = sysconf(_SC_CLOCK_SELECTION); in main()
308 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
309 mf = sysconf(_SC_MAPPED_FILES); in main()
366 ps = (size_t) sysconf(_SC_PAGESIZE); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/testfrmw/
H A Dthreads_scenarii.c202 pagesize = sysconf(_SC_PAGESIZE); in scenar_init()
203 minstacksize = sysconf(_SC_THREAD_STACK_MIN); in scenar_init()
204 tsa = sysconf(_SC_THREAD_ATTR_STACKADDR); in scenar_init()
205 tss = sysconf(_SC_THREAD_ATTR_STACKSIZE); in scenar_init()
206 tps = sysconf(_SC_THREAD_PRIORITY_SCHEDULING); in scenar_init()
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_self/
H A Dthreads_scenarii.c216 pagesize = sysconf(_SC_PAGESIZE); in scenar_init()
217 minstacksize = sysconf(_SC_THREAD_STACK_MIN); in scenar_init()
218 tsa = sysconf(_SC_THREAD_ATTR_STACKADDR); in scenar_init()
219 tss = sysconf(_SC_THREAD_ATTR_STACKSIZE); in scenar_init()
220 tps = sysconf(_SC_THREAD_PRIORITY_SCHEDULING); in scenar_init()

Completed in 12 milliseconds

12345678910>>...19