Home
last modified time | relevance | path

Searched refs:brk (Results 1 - 25 of 107) sorted by relevance

12345

/third_party/musl/src/malloc/
H A Dlite_malloc.c21 * buggy brk implementations that can cross the stack. */
44 static uintptr_t brk, cur, end; in __simple_malloc() local
66 brk = __syscall(SYS_brk, 0); in __simple_malloc()
67 brk += -brk & PAGE_SIZE-1; in __simple_malloc()
68 cur = end = brk; in __simple_malloc()
71 if (brk == end && req < SIZE_MAX-brk in __simple_malloc()
72 && !traverses_stack_p(brk, brk in __simple_malloc()
[all...]
/third_party/musl/porting/linux/user/src/malloc/
H A Dlite_malloc.c21 * buggy brk implementations that can cross the stack. */
44 static uintptr_t brk, cur, end; in __simple_malloc() local
66 brk = __syscall(SYS_brk, 0); in __simple_malloc()
67 brk += -brk & PAGE_SIZE-1; in __simple_malloc()
68 cur = end = brk; in __simple_malloc()
71 if (brk == end && req < SIZE_MAX-brk in __simple_malloc()
72 && !traverses_stack_p(brk, brk in __simple_malloc()
[all...]
/third_party/musl/src/network/
H A Dinet_pton.c19 int i, j, v, d, brk=-1, need_v4=0; in inet_pton() local
40 if (s[0]==':' && brk<0) { in inet_pton()
41 brk=i; in inet_pton()
51 if (!s[j] && (brk>=0 || i==7)) break; in inet_pton()
54 if (s[j]!='.' || (i<6 && brk<0)) return 0; in inet_pton()
62 if (brk>=0) { in inet_pton()
63 memmove(ip+brk+7-i, ip+brk, 2*(i+1-brk)); in inet_pton()
64 for (j=0; j<7-i; j++) ip[brk in inet_pton()
[all...]
/third_party/mesa3d/src/compiler/nir/
H A Dnir_lower_goto_ifs.c54 struct path brk; member
211 else if (_mesa_set_search(routing->brk.reachable, target)) { in route_to()
212 set_path_vars(b, routing->brk.fork, target); in route_to()
246 } else if (_mesa_set_search(routing->brk.reachable, then_block)) { in route_to_cond()
247 if (_mesa_set_search(routing->brk.reachable, else_block)) { in route_to_cond()
248 set_path_vars_cond(b, routing->brk.fork, condition, in route_to_cond()
304 printf(" routing->brk.reachable = "); in loop_routing_start()
305 print_block_set(routing->brk.reachable); in loop_routing_start()
321 if (_mesa_set_search(routing->brk.reachable, entry->key)) { in loop_routing_start()
329 routing->brk in loop_routing_start()
[all...]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/rbbi/
H A DBreakIteratorTest.java208 BreakIterator brk = BreakIterator.getBreakInstance(loc, type); in TestT5615()
209 if (brk == null) { in TestT5615()
226 BreakIterator brk = FilteredBreakIteratorBuilder in TestFilteredJapanese()
229 brk.setText("OKです。"); in TestFilteredJapanese()
230 assertEquals("Starting point", 0, brk.current()); in TestFilteredJapanese()
231 assertEquals("Next point", 5, brk.next()); in TestFilteredJapanese()
232 assertEquals("Last point", BreakIterator.DONE, brk.next()); in TestFilteredJapanese()
245 BreakIterator brk; in TestNullLocale()
249 brk = BreakIterator.getCharacterInstance(loc); in TestNullLocale()
253 brk in TestNullLocale()
[all...]
H A DRBBITest.java88 BreakIterator brk = BreakIterator.getWordInstance(new ULocale("th")); in TestThaiDictionaryBreakIterator()
89 brk.setText(new String(text2)); in TestThaiDictionaryBreakIterator()
91 while ((position = brk.next()) != BreakIterator.DONE && position < text2.length) { in TestThaiDictionaryBreakIterator()
97 brk = BreakIterator.getLineInstance(new ULocale("th")); in TestThaiDictionaryBreakIterator()
98 brk.setText(new String(text2)); in TestThaiDictionaryBreakIterator()
100 while ((position = brk.next()) != BreakIterator.DONE && position < text2.length) { in TestThaiDictionaryBreakIterator()
106 if (brk.preceding(expectedLineResult[1]) != expectedLineResult[0]) { in TestThaiDictionaryBreakIterator()
109 if (brk.following(expectedLineResult[1]) != expectedLineResult[2]) { in TestThaiDictionaryBreakIterator()
113 if (((RuleBasedBreakIterator)brk).getRuleStatusVec(fillInArray) != 1 || fillInArray[0] != 0) { in TestThaiDictionaryBreakIterator()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/
H A DBreakIteratorTest.java205 BreakIterator brk = BreakIterator.getBreakInstance(loc, type); in TestT5615()
206 if (brk == null) { in TestT5615()
223 BreakIterator brk = FilteredBreakIteratorBuilder in TestFilteredJapanese()
226 brk.setText("OKです。"); in TestFilteredJapanese()
227 assertEquals("Starting point", 0, brk.current()); in TestFilteredJapanese()
228 assertEquals("Next point", 5, brk.next()); in TestFilteredJapanese()
229 assertEquals("Last point", BreakIterator.DONE, brk.next()); in TestFilteredJapanese()
242 BreakIterator brk; in TestNullLocale()
246 brk = BreakIterator.getCharacterInstance(loc); in TestNullLocale()
250 brk in TestNullLocale()
[all...]
H A DRBBITest.java91 BreakIterator brk = BreakIterator.getWordInstance(new ULocale("th")); in TestThaiDictionaryBreakIterator()
92 brk.setText(new String(text2)); in TestThaiDictionaryBreakIterator()
94 while ((position = brk.next()) != BreakIterator.DONE && position < text2.length) { in TestThaiDictionaryBreakIterator()
100 brk = BreakIterator.getLineInstance(new ULocale("th")); in TestThaiDictionaryBreakIterator()
101 brk.setText(new String(text2)); in TestThaiDictionaryBreakIterator()
103 while ((position = brk.next()) != BreakIterator.DONE && position < text2.length) { in TestThaiDictionaryBreakIterator()
109 if (brk.preceding(expectedLineResult[1]) != expectedLineResult[0]) { in TestThaiDictionaryBreakIterator()
112 if (brk.following(expectedLineResult[1]) != expectedLineResult[2]) { in TestThaiDictionaryBreakIterator()
116 if (((RuleBasedBreakIterator)brk).getRuleStatusVec(fillInArray) != 1 || fillInArray[0] != 0) { in TestThaiDictionaryBreakIterator()
/third_party/icu/icu4c/source/test/cintltst/
H A Dcbiapts.c389 UBreakIterator * brk; in TestBreakIteratorSafeClone() local
435 if (NULL == (brk = ubrk_safeClone(someIterators[i], buffer[i], NULL, &status)) || U_FAILURE(status)) in TestBreakIteratorSafeClone()
439 ubrk_close(brk); in TestBreakIteratorSafeClone()
455 if (NULL == (brk = ubrk_safeClone(someIterators[i], buffer[i], &bufferSize, &status)) || U_FAILURE(status)) in TestBreakIteratorSafeClone()
459 if (brk) in TestBreakIteratorSafeClone()
460 ubrk_close(brk); in TestBreakIteratorSafeClone()
465 if (NULL == (brk = ubrk_safeClone(someIterators[i], NULL, &bufferSize, &status)) || status != U_SAFECLONE_ALLOCATED_WARNING) in TestBreakIteratorSafeClone()
469 if (brk) in TestBreakIteratorSafeClone()
470 ubrk_close(brk); in TestBreakIteratorSafeClone()
475 if (NULL == (brk in TestBreakIteratorSafeClone()
527 UBreakIterator * brk; TestBreakIteratorClone() local
1041 int32_t brk; TestBug11665() local
[all...]
/third_party/musl/src/malloc/mallocng/
H A Dmalloc.c117 if (!ctx.avail_meta_area_count && ctx.brk!=-1) { in alloc_meta()
118 uintptr_t new = ctx.brk + pagesize; in alloc_meta()
120 if (!ctx.brk) { in alloc_meta()
122 ctx.brk = brk(0); in alloc_meta()
124 // instead of next page as initial brk. in alloc_meta()
125 ctx.brk += -ctx.brk & (pagesize-1); in alloc_meta()
126 new = ctx.brk + 2*pagesize; in alloc_meta()
128 if (brk(ne in alloc_meta()
[all...]
/third_party/musl/porting/linux/user/src/malloc/mallocng/
H A Dmalloc.c115 if (!ctx.avail_meta_area_count && ctx.brk!=-1) { in alloc_meta()
116 uintptr_t new = ctx.brk + pagesize; in alloc_meta()
118 if (!ctx.brk) { in alloc_meta()
120 ctx.brk = brk(0); in alloc_meta()
122 // instead of next page as initial brk. in alloc_meta()
123 ctx.brk += -ctx.brk & (pagesize-1); in alloc_meta()
124 new = ctx.brk + 2*pagesize; in alloc_meta()
126 if (brk(ne in alloc_meta()
[all...]
/third_party/musl/src/malloc/oldmalloc/
H A Dmalloc.c140 * buggy brk implementations that can cross the stack. */
158 /* Expand the heap in-place if brk can be used, or otherwise via mmap,
172 static uintptr_t brk; in __expand_heap() local
182 if (!brk) { in __expand_heap()
183 brk = __syscall(SYS_brk, 0); in __expand_heap()
184 brk += -brk & PAGE_SIZE-1; in __expand_heap()
187 if (n < SIZE_MAX-brk && !traverses_stack_p(brk, brk in __expand_heap()
[all...]
/third_party/musl/porting/liteos_a/user/src/malloc/oldmalloc/
H A Dmalloc.c136 * buggy brk implementations that can cross the stack. */
154 /* Expand the heap in-place if brk can be used, or otherwise via mmap,
164 static uintptr_t brk; in __expand_heap() local
174 if (!brk) { in __expand_heap()
175 brk = __syscall(SYS_brk, 0); in __expand_heap()
176 brk += -brk & PAGE_SIZE-1; in __expand_heap()
179 if (n < SIZE_MAX-brk && !traverses_stack_p(brk, brk in __expand_heap()
[all...]
/third_party/musl/porting/liteos_a/user_debug/src/malloc/oldmalloc/
H A Dmalloc.c138 * buggy brk implementations that can cross the stack. */
156 /* Expand the heap in-place if brk can be used, or otherwise via mmap,
166 static uintptr_t brk; in __expand_heap() local
176 if (!brk) { in __expand_heap()
177 brk = __syscall(SYS_brk, 0); in __expand_heap()
178 brk += -brk & PAGE_SIZE-1; in __expand_heap()
181 if (n < SIZE_MAX-brk && !traverses_stack_p(brk, brk in __expand_heap()
[all...]
/third_party/icu/icu4c/source/test/perf/strsrchperf/
H A Dstrsrchperf.cpp33 UBreakIterator* brk = ubrk_open(UBRK_WORD, locale, src, srcLen, &status); in StringSearchPerformanceTest()
38 start = ubrk_preceding(brk, 1000); in StringSearchPerformanceTest()
39 end = ubrk_following(brk, start); in StringSearchPerformanceTest()
46 ubrk_close(brk); in StringSearchPerformanceTest()
/third_party/skia/third_party/externals/tint/src/resolver/
H A Dcontrol_block_validation_test.cc172 auto* brk = Break(); in TEST_F() local
176 Case(Expr(1), Block(decl_z, brk, assign_z)), // in TEST_F()
182 EXPECT_TRUE(Sem().Get(brk)->IsReachable()); in TEST_F()
194 auto* brk = Break(); in TEST_F() local
198 Case(Expr(1), Block(decl_z, Block(Block(Block(brk))), assign_z)), in TEST_F()
204 EXPECT_TRUE(Sem().Get(brk)->IsReachable()); in TEST_F()
/third_party/node/test/parallel/
H A Dtest-debugger-use-strict.js24 const brk = cli.breakInfo;
26 `${brk.line}`,
/third_party/node/deps/icu-small/source/tools/pkgdata/
H A Dpkgtypes.c30 const char *pkg_writeCharListWrap(FileStream *s, CharList *l, const char *delim, const char *brk, int32_t quote) in pkg_writeCharListWrap() argument
64 if(ln > 60 && brk) { in pkg_writeCharListWrap()
66 T_FileStream_write(s, brk, (int32_t)uprv_strlen(brk)); in pkg_writeCharListWrap()
/third_party/icu/icu4c/source/tools/pkgdata/
H A Dpkgtypes.c30 const char *pkg_writeCharListWrap(FileStream *s, CharList *l, const char *delim, const char *brk, int32_t quote) in pkg_writeCharListWrap() argument
64 if(ln > 60 && brk) { in pkg_writeCharListWrap()
66 T_FileStream_write(s, brk, (int32_t)uprv_strlen(brk)); in pkg_writeCharListWrap()
/third_party/skia/third_party/externals/icu/source/tools/pkgdata/
H A Dpkgtypes.c30 const char *pkg_writeCharListWrap(FileStream *s, CharList *l, const char *delim, const char *brk, int32_t quote) in pkg_writeCharListWrap() argument
64 if(ln > 60 && brk) { in pkg_writeCharListWrap()
66 T_FileStream_write(s, brk, (int32_t)uprv_strlen(brk)); in pkg_writeCharListWrap()
/third_party/ltp/testcases/kernel/syscalls/brk/
H A Dbrk01.c31 * Check if brk itself is implemented: updating to the current break in verify_brk()
34 if (brk(cur_brk) != 0) in verify_brk()
35 tst_brk(TCONF, "brk() not implemented"); in verify_brk()
54 TST_EXP_PASS_SILENT(brk(new_brk), "brk()"); in verify_brk()
60 "brk() failed to set address have %p expected %p", in verify_brk()
70 tst_res(TPASS, "brk() works fine"); in verify_brk()
H A Dbrk02.c9 * Expand brk() by at least 2 pages to ensure there is a newly created VMA
11 * new VMA then brk() back to the original address therefore causing a munmap of
27 TST_EXP_PASS_SILENT(brk(addr), "brk()"); in brk_variants()
49 * Check if brk itself is implemented: updating to the current break in brk_down_vmas()
52 if (brk(brk_addr) != 0) in brk_down_vmas()
53 tst_brk(TCONF, "brk() not implemented"); in brk_down_vmas()
60 tst_res(TFAIL | TERRNO, "Cannot expand brk() by page size"); in brk_down_vmas()
66 tst_res(TFAIL | TERRNO, "Cannot expand brk() by 2x page size"); in brk_down_vmas()
77 tst_res(TFAIL | TERRNO, "Cannot expand brk() afte in brk_down_vmas()
[all...]
/third_party/ffmpeg/libavformat/
H A Dutils.c362 const char *p, *ls, *at, *at2, *col, *brk; in av_url_split() local
403 if (*p == '[' && (brk = strchr(p, ']')) && brk < ls) { in av_url_split()
406 FFMIN(hostname_size, brk - p)); in av_url_split()
407 if (brk[1] == ':' && port_ptr) in av_url_split()
408 *port_ptr = atoi(brk + 2); in av_url_split()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/
H A Dhugemmap07.c10 * Certain kernels have a bug where brk() does not perform the same
11 * checks that a MAP_FIXED mmap() will, allowing brk() to create a
90 err = brk((void *)newbrk); in run_test()
92 /* Failing the brk() is an acceptable kernel response */ in run_test()
93 tst_res(TPASS, "Failing the brk at %p is an acceptable response", in run_test()
96 /* Suceeding the brk() is acceptable if the new memory is in run_test()
102 tst_res(TPASS, "memory is accessible, hence successful brk() is " in run_test()
107 err = brk(brk0); in run_test()
/third_party/musl/src/linux/
H A Dbrk.c6 int brk(void *end) in brk() function

Completed in 13 milliseconds

12345