Home
last modified time | relevance | path

Searched refs:sysconf (Results 1 – 25 of 813) sorted by relevance

12345678910>>...33

/external/musl/src/conf/
Dlegacy.c6 return sysconf(_SC_NPROCESSORS_CONF); in get_nprocs_conf()
11 return sysconf(_SC_NPROCESSORS_ONLN); in get_nprocs()
16 return sysconf(_SC_PHYS_PAGES); in get_phys_pages()
21 return sysconf(_SC_AVPHYS_PAGES); in get_avphys_pages()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
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()
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()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/getpid/
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()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_suspend/
D5-1.c26 if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L || in main()
27 sysconf(_SC_MONOTONIC_CLOCK) < 200112L) in main()
/external/linux-kselftest/tools/testing/selftests/mincore/
Dmincore_selftest.c37 page_size = sysconf(_SC_PAGESIZE); in TEST()
90 page_size = sysconf(_SC_PAGESIZE); in TEST()
146 page_size = sysconf(_SC_PAGESIZE); in TEST()
198 page_size = sysconf(_SC_PAGESIZE); in TEST()
303 page_size = sysconf(_SC_PAGESIZE); in TEST()
/external/igt-gpu-tools/lib/
Dintel_os.c76 pagesize = sysconf(_SC_PAGESIZE); in intel_get_total_ram_mb()
77 npages = sysconf(_SC_PHYS_PAGES); in intel_get_total_ram_mb()
147 pagesize = sysconf(_SC_PAGESIZE); in intel_get_avail_ram_mb()
148 npages = sysconf(_SC_AVPHYS_PAGES); in intel_get_avail_ram_mb()
176 long pagesize = sysconf(_SC_PAGESIZE); in intel_get_total_swap_mb()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/
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()
D2-3.c265 pshared = sysconf(_SC_THREAD_PROCESS_SHARED); in main()
266 cs = sysconf(_SC_CLOCK_SELECTION); in main()
267 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
268 mf = sysconf(_SC_MAPPED_FILES); in main()
317 ps = (size_t) sysconf(_SC_PAGESIZE); in main()
347 ret = pthread_attr_setstacksize(&ta, sysconf(_SC_THREAD_STACK_MIN)); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_read/
D8-1.c41 if (sysconf(_SC_ASYNCHRONOUS_IO) < 200112L) in main()
44 if (sysconf(_SC_PRIORITIZED_IO) < 200112L) in main()
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_timedwait/
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()
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_wait/
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()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_write/
D6-1.c42 if (sysconf(_SC_ASYNCHRONOUS_IO) < 200112L) in main()
45 if (sysconf(_SC_PRIORITIZED_IO) < 200112L) in main()
/external/rust/crates/userfaultfd/examples/
Dmanpage.rs5 use nix::unistd::{sysconf, SysconfVar};
11 let page_size = sysconf(SysconfVar::PAGE_SIZE).unwrap().unwrap() as usize; in fault_handler_thread()
83 let page_size = sysconf(SysconfVar::PAGE_SIZE).unwrap().unwrap() as usize; in main()
/external/ltp/testcases/lib/
Dtst_getconf.c40 printf("%ld\n", sysconf(_SC_NPROCESSORS_ONLN)); in main()
43 printf("%ld\n", sysconf(_SC_PAGE_SIZE)); in main()
/external/python/cpython3/Lib/test/
Dmemory_watchdog.py14 page_size = os.sysconf('SC_PAGESIZE')
17 page_size = os.sysconf('SC_PAGE_SIZE')
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/
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()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstacksize/
D4-1.c29 #define STACKSIZE PTHREAD_STACK_MIN - sysconf(_SC_PAGE_SIZE)
47 if (posix_memalign(&saddr, sysconf(_SC_PAGE_SIZE), stack_size) != 0) { in main()
/external/ltp/android/include/
Dbionic-compat.h25 #define SHMLBA sysconf(_SC_PAGESIZE)
48 return memalign(sysconf(_SC_PAGESIZE), size); in valloc()
/external/linux-kselftest/tools/testing/selftests/vm/
Dtranshuge-stress.c67 ram = sysconf(_SC_PHYS_PAGES); in main()
68 if (ram > SIZE_MAX / sysconf(_SC_PAGESIZE) / 4) in main()
71 ram *= sysconf(_SC_PAGESIZE); in main()
/external/deqp/framework/delibs/dethread/unix/
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()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/
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()
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()
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_exit/
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()
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_self/
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()

12345678910>>...33