Home
last modified time | relevance | path

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

12345678910>>...20

/third_party/musl/libc-test/src/functionalext/supplement/conf/conf_gtest/
Dconf_sysconf_test.cpp22 int result = sysconf(_SC_TRACE_USER_EVENT_MAX);
34 int pthreadKeyMax = sysconf(_SC_THREAD_KEYS_MAX);
46 int result = sysconf(_SC_CLK_TCK);
58 int result = sysconf(_SC_TZNAME_MAX);
70 int result = sysconf(_SC_PRIORITY_SCHEDULING);
82 int result = sysconf(_SC_SIGQUEUE_MAX);
94 int result = sysconf(_SC_PAGE_SIZE);
107 int result = sysconf(_SC_SEM_NSEMS_MAX);
120 int result = sysconf(_SC_COLL_WEIGHTS_MAX);
133 int result = sysconf(_SC_NPROCESSORS_CONF);
/third_party/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()
/third_party/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()
/third_party/node/deps/v8/src/base/
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/musl/libc-test/src/functionalext/supplement/sched/
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/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()
/third_party/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()
/third_party/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()
/third_party/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()
/third_party/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()
/third_party/musl/libc-test/src/functionalext/supplement/conf/
Dsysconf.c27 long result = sysconf(_SC_CHILD_MAX); in sysconf_0100()
40 long result = sysconf(_SC_OPEN_MAX); in sysconf_0200()
/third_party/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()
/third_party/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()
/third_party/musl/libc-test/src/gwp_asan/
Dbuffer_overflow.c47 char *ptr = (char *)malloc(sysconf(_SC_PAGE_SIZE)); in main()
51 char c = *(ptr + sysconf(_SC_PAGE_SIZE) + 1); in main()
/third_party/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()
/third_party/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()
/third_party/python/Lib/test/
Dmemory_watchdog.py14 page_size = os.sysconf('SC_PAGESIZE')
17 page_size = os.sysconf('SC_PAGE_SIZE')
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/
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()
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()
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()
/third_party/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()
/third_party/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()
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_create/
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()

12345678910>>...20