Home
last modified time | relevance | path

Searched refs:sbrk (Results 1 – 25 of 62) sorted by relevance

123

/third_party/ltp/testcases/kernel/mem/mmapstress/
Dmmapstress03.c75 if ((brk_start = sbrk(0)) == NEG1) { in main()
80 if (sbrk(pagesize - ((u_long) brk_start % (u_long) pagesize)) in main()
88 if ((hole_addr = hole_start = sbrk(NUM_SEGS * 2 * pagesize)) == NEG1) { in main()
92 if ((brk_max_addr = sbrk(0)) == NEG1) { in main()
107 if (brk_max_addr != sbrk(0)) { in main()
114 if (sbrk(-NUM_SEGS * pagesize) == NEG1) { in main()
118 if ((brk_max_addr = sbrk(0)) == NEG1) { in main()
138 if (sbrk(pagesize) == NEG1 || sbrk(-pagesize) == NEG1) { in main()
182 if (sbrk(pagesize) == NEG1) { in do_test()
186 if (sbrk(-pagesize) == NEG1) { in do_test()
[all …]
Dmmapstress06.c79 if (sbrk(pagesize - ((ulong) sbrk(0) & (pagesize - 1))) == (char *)-1) { in main()
83 if ((mmapaddr = sbrk(0)) == (char *)-1) { in main()
Dmmapstress05.c121 if (sbrk(pagesize - ((ulong) sbrk(0) & (pagesize - 1))) == (char *)-1) { in main()
125 if ((buf = sbrk(pagesize)) == (char *)-1) { in main()
129 if ((mmapaddr = (caddr_t) sbrk(0)) == (caddr_t) - 1) { in main()
Dmmapstress08.c71 if (sbrk(pagesize - ((u_long) sbrk(0) % (u_long) pagesize)) == in main()
79 if ((munmap_begin = mmapaddr = (caddr_t) sbrk(0)) == (caddr_t) - 1) { in main()
Dmmapstress02.c111 if (sbrk(2 * pagesize - ((ulong) sbrk(0) & (pagesize - 1))) == in main()
116 if ((mmapaddr = sbrk(0)) == (caddr_t) - 1) { in main()
/third_party/ltp/testcases/kernel/mem/shmt/
Dshmt09.c82 if ((unsigned long)sbrk(16384) >= (-4095UL)) { in main()
88 if ((unsigned long)sbrk(-4097) >= (-4095UL)) { in main()
116 if ((unsigned long)sbrk(32 * K_1) >= (-4095UL)) { in main()
122 vp = (void *)((char *)sbrk(0) - 2 * K_1); in main()
136 if ((unsigned long)sbrk(-16000) >= (-4095UL)) { in main()
143 vp = (void *)((char *)sbrk(0) + 256 * K_1); in main()
145 vp = (void *)((char *)sbrk(0) + getpagesize()); in main()
148 vp = (void *)SHMALIGN((char *)sbrk(0) + 1); in main()
165 while ((vp = sbrk(INCREMENT)) != (void *)-1) ; in main()
172 if ((vp = sbrk(INCREMENT)) != (void *)-1) { in main()
[all …]
/third_party/ltp/testcases/kernel/syscalls/sbrk/
Dsbrk03.c49 tst_res(TINFO, "sbrk increm: %p", sbrk(0x10000000)); in sbrk_test()
50 ret1 = sbrk(0); in sbrk_test()
53 tst_res(TINFO, "sbrk increm: %p", sbrk(0x70000000)); in sbrk_test()
54 ret2 = sbrk(0); in sbrk_test()
Dsbrk02.c66 ret = sbrk(increment); in setup()
70 increment, ret, sbrk(0)); in setup()
79 tret = sbrk(increment); in sbrk_verify()
Dsbrk01.c97 tret = sbrk(test->increment); in sbrk_verify()
/third_party/musl/libc-test/src/functionalext/supplement/linux/
Dsbrk.c29 int *p = sbrk(0); in sbrk_0100()
46 int *p = sbrk(1); in sbrk_0200()
Dbrk.c22 return sbrk(0); in get_brk()
Dtest_src_functionalext_supplement_linux.gni30 "sbrk",
/third_party/ltp/testcases/kernel/syscalls/brk/
Dbrk01.c19 cur_brk = (uintptr_t)sbrk(0); in verify_brk()
38 cur_brk = (uintptr_t)sbrk(0); in verify_brk()
Dbrk02.c20 void *brk_addr = sbrk(0); in brk_down_vmas()
/third_party/ltp/testcases/kernel/mem/mtest05/
Dmmstress.c542 if (sbrk(BRKSZ) == (void *) - 1) { in test5()
561 if (sbrk(-BRKSZ) == (void *) - 1) { in test5()
593 if (sbrk(BRKSZ) == (void *) - 1) { in test6()
621 if (sbrk(-BRKSZ) == (void *) - 1) { in test6()
/third_party/ltp/lib/
Dparse_opts.c458 STD_start_break = sbrk(0); /* get original sbreak size */ in usc_global_setup_hook()
461 sbrk(STD_TP_sbrk); in usc_global_setup_hook()
545 sbrk(STD_LP_sbrk); in usc_test_looping()
/third_party/musl/src/linux/
Dsbrk.c7 void *sbrk(intptr_t inc) in sbrk() function
/third_party/ltp/testcases/kernel/syscalls/setgroups/
Dsetgroups04.c108 TEST(SETGROUPS(cleanup, gidsetsize, sbrk(0))); in main()
/third_party/ltp/testcases/kernel/syscalls/
DMakefile15 mincore mprotect nftw profil remap_file_pages sbrk
/third_party/ltp/testcases/kernel/syscalls/modify_ldt/
Dmodify_ldt01.c162 ptr = sbrk(0); in main()
/third_party/ltp/testcases/kernel/syscalls/msync/
Dmsync03.c134 addr4 = sbrk(0) + (4 * page_sz); in setup()
/third_party/ltp/testcases/kernel/syscalls/mbind/
Dmbind01.c168 TEST(mbind(p, MEM_LENGTH, tc->policy, sbrk(0) + 64*1024*1024, in test_invalid_nodemask()
/third_party/musl/ndk_musl_include/
Dunistd.h153 void *sbrk(intptr_t);
/third_party/musl/porting/liteos_m/user/include/
Dunistd.h183 void *sbrk(intptr_t);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
Dunistd.h158 void *sbrk(intptr_t);

123