Home
last modified time | relevance | path

Searched refs:_SC_PAGESIZE (Results 1 – 25 of 142) sorted by relevance

123456

/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()
/third_party/ltp/libs/libltpswap/
Dlibswap.c20 if (!tst_fs_has_free(".", sysconf(_SC_PAGESIZE) * 10, TST_BYTES)) in make_swapfile()
24 if (tst_fill_file(swapfile, 0, sysconf(_SC_PAGESIZE), 10) != 0) in make_swapfile()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_init/
D3-2.c106 ret = ftruncate(fd, sysconf(_SC_PAGESIZE)); in main()
114 mmap(NULL, sysconf(_SC_PAGESIZE), PROT_READ | PROT_WRITE, in main()
D3-3.c106 ret = ftruncate(fd, sysconf(_SC_PAGESIZE)); in main()
114 mmap(NULL, sysconf(_SC_PAGESIZE), PROT_READ | PROT_WRITE, in main()
/third_party/e2fsprogs/lib/ext2fs/
Dgetsectsize.c101 #ifdef _SC_PAGESIZE in ext2fs_get_dio_alignment()
103 align = sysconf(_SC_PAGESIZE); in ext2fs_get_dio_alignment()
/third_party/python/Modules/_ctypes/
Dmalloc_closure.c47 #ifdef _SC_PAGESIZE in more_core()
48 _pagesize = sysconf(_SC_PAGESIZE); in more_core()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/getpid/
D1-1.c133 ret = ftruncate(fd, sysconf(_SC_PAGESIZE)); in main()
140 mmap(NULL, sysconf(_SC_PAGESIZE), PROT_READ | PROT_WRITE, in main()
/third_party/mksh/
Dlalloc.c88 if (sysconf(_SC_PAGESIZE) != 4096) { in ainit()
90 sysconf(_SC_PAGESIZE)); in ainit()
/third_party/selinux/libselinux/src/
Dsestatus.c294 pagesize = sysconf(_SC_PAGESIZE); in selinux_status_open()
386 pagesize = sysconf(_SC_PAGESIZE); in selinux_status_close()
/third_party/ltp/testcases/kernel/syscalls/sendto/
Dsendto03.c78 tpreq.tp_block_size = SAFE_SYSCONF(_SC_PAGESIZE); in check_tiny_frame()
138 size_t blocksize = 0x800000, pagesize = SAFE_SYSCONF(_SC_PAGESIZE); in check_vnet_hdr()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/munlock/
D10-1.c40 page_size = sysconf(_SC_PAGESIZE); in main()
D11-1.c28 page_size = sysconf(_SC_PAGESIZE); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlock/
D8-1.c40 page_size = sysconf(_SC_PAGESIZE); in main()
D10-1.c28 page_size = sysconf(_SC_PAGESIZE); in main()
/third_party/e2fsprogs/resize/
Dmain.c486 #if (!defined(_SC_PAGESIZE) && defined(_SC_PAGE_SIZE)) in main()
487 #define _SC_PAGESIZE _SC_PAGE_SIZE in main() macro
489 #ifdef _SC_PAGESIZE in main()
490 sysval = sysconf(_SC_PAGESIZE); in main()
/third_party/ltp/testcases/kernel/syscalls/copy_file_range/
Dcopy_file_range02.c231 if (!tst_fs_has_free(".", sysconf(_SC_PAGESIZE) * 10, TST_BYTES)) { in setup()
237 if (tst_fill_file(FILE_SWAP_PATH, 0, sysconf(_SC_PAGESIZE), 10) != 0) { in setup()
/third_party/ltp/testcases/kernel/syscalls/getpagesize/
Dgetpagesize01.c76 ret_sysconf = sysconf(_SC_PAGESIZE); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mlockall/
D3-7.c31 page_size = sysconf(_SC_PAGESIZE); in main()
D3-6.c34 page_size = sysconf(_SC_PAGESIZE); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/
D2-1.c35 map_size = sysconf(_SC_PAGESIZE); in main()
/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/
Dmemory.cpp29 const size_t kPageSize = sysconf(_SC_PAGESIZE);
61 const size_t kPageSize = sysconf(_SC_PAGESIZE);
/third_party/ltp/testcases/kernel/mem/thp/
Dthp03.c89 page_size = SAFE_SYSCONF(_SC_PAGESIZE); in setup()
/third_party/libdrm/amdgpu/
Dhandle_table.c35 uint32_t alignment = sysconf(_SC_PAGESIZE) / sizeof(void*); in handle_table_insert()
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_test/
Dcpuset_memory_test.c139 memsize = sysconf(_SC_PAGESIZE); in process_options()
148 int pagesize = sysconf(_SC_PAGESIZE); in touch_memory_and_echo_node()
/third_party/flutter/skia/tools/
DProcStats.cpp49 const long pageSize = sysconf(_SC_PAGESIZE); in getCurrResidentSetSizeMB()

123456