Home
last modified time | relevance | path

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

12345678910>>...23

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
D16-1.c84 ret = ftruncate(fd_s, sysconf(_SC_PAGESIZE)); in main()
90 ret = ftruncate(fd_ns, sysconf(_SC_PAGESIZE)); in main()
98 mmap(NULL, sysconf(_SC_PAGESIZE), PROT_READ | PROT_WRITE, in main()
106 mmap(NULL, sysconf(_SC_PAGESIZE), PROT_READ | PROT_WRITE, in main()
D8-1.c84 } while ((cur_time - st_time) < sysconf(_SC_CLK_TCK)); in main()
93 sysconf(_SC_CLK_TCK)); in main()
111 sysconf(_SC_CLK_TCK)) in main()
/external/webrtc/webrtc/base/
Dsysteminfo.cc70 number_of_cores = static_cast<int>(sysconf(_SC_NPROCESSORS_ONLN)); in DetectNumberOfCores()
183 memory = static_cast<int64_t>(sysconf(_SC_PHYS_PAGES)) * in GetMemorySize()
184 static_cast<int64_t>(sysconf(_SC_PAGESIZE)); in GetMemorySize()
187 << "sysconf(_SC_PHYS_PAGES) " << sysconf(_SC_PHYS_PAGES) in GetMemorySize()
188 << "sysconf(_SC_PAGESIZE) " << sysconf(_SC_PAGESIZE); in GetMemorySize()
/external/v8/src/base/
Dsys-info.cc41 long result = sysconf(_SC_NPROCESSORS_ONLN); // NOLINT(runtime/int) in NumberOfProcessors()
89 int64_t result = sysconf(_SC_AIX_REALMEM); in AmountOfPhysicalMemory()
92 long pages = sysconf(_SC_PHYS_PAGES); // NOLINT(runtime/int) in AmountOfPhysicalMemory()
93 long page_size = sysconf(_SC_PAGESIZE); // NOLINT(runtime/int) in AmountOfPhysicalMemory()
/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.c27 if (sysconf(_SC_ASYNCHRONOUS_IO) != 200112L || in main()
28 sysconf(_SC_MONOTONIC_CLOCK) < 200112L) in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_read/
D8-1.c42 if (sysconf(_SC_ASYNCHRONOUS_IO) < 200112L) in main()
45 if (sysconf(_SC_PRIORITIZED_IO) < 200112L) in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/
D1-2.c272 min_stack = sysconf(_SC_THREAD_STACK_MIN); in children_number()
327 pshared = sysconf(_SC_THREAD_PROCESS_SHARED); in main()
328 cs = sysconf(_SC_CLOCK_SELECTION); in main()
329 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
330 mf = sysconf(_SC_MAPPED_FILES); in main()
386 ps = (size_t) sysconf(_SC_PAGESIZE); in main()
419 ret = pthread_attr_setstacksize(&ta, sysconf(_SC_THREAD_STACK_MIN)); in main()
D2-3.c271 pshared = sysconf(_SC_THREAD_PROCESS_SHARED); in main()
272 cs = sysconf(_SC_CLOCK_SELECTION); in main()
273 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
274 mf = sysconf(_SC_MAPPED_FILES); in main()
323 ps = (size_t) sysconf(_SC_PAGESIZE); in main()
353 ret = pthread_attr_setstacksize(&ta, sysconf(_SC_THREAD_STACK_MIN)); in main()
/external/ltp/testcases/kernel/syscalls/swapon/
Dlibswapon.c30 if (!tst_fs_has_free(NULL, ".", sysconf(_SC_PAGESIZE) * 10, in make_swapfile()
38 sysconf(_SC_PAGESIZE), 10) != 0) { in make_swapfile()
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_wait/
Dstress1.c397 pshared = sysconf(_SC_THREAD_PROCESS_SHARED); in main()
398 cs = sysconf(_SC_CLOCK_SELECTION); in main()
399 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
400 mf = sysconf(_SC_MAPPED_FILES); in main()
457 ps = (size_t) sysconf(_SC_PAGESIZE); in main()
627 ret = pthread_attr_setstacksize(&ta, sysconf(_SC_THREAD_STACK_MIN)); in main()
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_timedwait/
Dstress1.c412 pshared = sysconf(_SC_THREAD_PROCESS_SHARED); in main()
413 cs = sysconf(_SC_CLOCK_SELECTION); in main()
414 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
415 mf = sysconf(_SC_MAPPED_FILES); in main()
472 ps = (size_t) sysconf(_SC_PAGESIZE); in main()
642 ret = pthread_attr_setstacksize(&ta, sysconf(_SC_THREAD_STACK_MIN)); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_write/
D6-1.c43 if (sysconf(_SC_ASYNCHRONOUS_IO) < 200112L) in main()
46 if (sysconf(_SC_PRIORITIZED_IO) < 200112L) in main()
/external/deqp/framework/delibs/dethread/unix/
DdeThreadUnix.c180 const long count = sysconf(_SC_NPROCESSORS_ONLN); in deGetNumAvailableLogicalCores()
197 const long count = sysconf(_SC_NPROCESSORS_ONLN); in deGetNumAvailableLogicalCores()
213 const long count = sysconf(_SC_NPROCESSORS_CONF); in deGetNumTotalLogicalCores()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/
D2-2.c279 pshared = sysconf(_SC_THREAD_PROCESS_SHARED); in main()
280 cs = sysconf(_SC_CLOCK_SELECTION); in main()
281 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
282 mf = sysconf(_SC_MAPPED_FILES); in main()
339 sz = (size_t) sysconf(_SC_PAGESIZE); in main()
/external/ltp/android/include/
Dbionic-compat.h23 #define SHMLBA sysconf(_SC_PAGESIZE)
35 return memalign(sysconf(_SC_PAGESIZE), size); in valloc()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstacksize/
D4-1.c29 #define STACKSIZE PTHREAD_STACK_MIN - sysconf(_SC_PAGE_SIZE)
53 if (posix_memalign(&saddr, sysconf(_SC_PAGE_SIZE), stack_size) != 0) { in main()
/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/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/
D2-7.c272 pshared = sysconf(_SC_THREAD_PROCESS_SHARED); in main()
273 cs = sysconf(_SC_CLOCK_SELECTION); in main()
274 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
275 mf = sysconf(_SC_MAPPED_FILES); in main()
331 sz = (size_t) sysconf(_SC_PAGESIZE); in main()
D4-2.c221 pshared = sysconf(_SC_THREAD_PROCESS_SHARED); in main()
222 cs = sysconf(_SC_CLOCK_SELECTION); in main()
223 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
224 mf = sysconf(_SC_MAPPED_FILES); in main()
282 sz = (size_t) sysconf(_SC_PAGESIZE); in main()
D2-4.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()
325 sz = (size_t) sysconf(_SC_PAGESIZE); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/testfrmw/
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()
/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()
/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_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>>...23