Home
last modified time | relevance | path

Searched refs:str_buf (Results 1 – 6 of 6) sorted by relevance

/external/libselinux/src/
Dlabel_file.c107 char *addr, *str_buf; in load_mmap() local
188 str_buf = malloc(entry_len + 1); in load_mmap()
189 if (!str_buf) in load_mmap()
192 rc = next_entry(str_buf, mmap_area, entry_len); in load_mmap()
194 free(str_buf); in load_mmap()
198 str_buf[entry_len] = '\0'; in load_mmap()
199 if ((strcmp(str_buf, pcre_version()) != 0)) { in load_mmap()
200 free(str_buf); in load_mmap()
203 free(str_buf); in load_mmap()
288 str_buf = malloc(entry_len); in load_mmap()
[all …]
/external/selinux/libselinux/src/
Dlabel_file.c109 char *addr, *str_buf; in load_mmap() local
190 str_buf = malloc(entry_len + 1); in load_mmap()
191 if (!str_buf) in load_mmap()
194 rc = next_entry(str_buf, mmap_area, entry_len); in load_mmap()
196 free(str_buf); in load_mmap()
200 str_buf[entry_len] = '\0'; in load_mmap()
201 if ((strcmp(str_buf, pcre_version()) != 0)) { in load_mmap()
202 free(str_buf); in load_mmap()
205 free(str_buf); in load_mmap()
290 str_buf = malloc(entry_len); in load_mmap()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dputiltst.c482 …uint8_t str_buf[AESTRNCPY_SIZE] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x… in Test_aestrncpy() local
486 ret = uprv_aestrncpy(str_buf, src, len); in Test_aestrncpy()
487 if(ret != str_buf) { in Test_aestrncpy()
488 …s:%d: FAIL: uprv_aestrncpy returned %p expected %p\n", __FILE__, line, (void*)ret, (void*)str_buf); in Test_aestrncpy()
490 if(!uprv_memcmp(str_buf, expect, AESTRNCPY_SIZE)) { in Test_aestrncpy()
493 log_verbose("\n%s:%d: got : %s\n", __FILE__, line, dump_binline(str_buf)); in Test_aestrncpy()
497 log_err ("\n%s:%d: got : %s\n", __FILE__, line, dump_binline(str_buf)); in Test_aestrncpy()
/external/chromium-trace/catapult/third_party/mapreduce/mapreduce/
Doutput_writers.py381 str_buf = buf.getvalue()
384 if not self._exclusive and len(str_buf) > _FILE_POOL_MAX_SIZE:
389 (_FILE_POOL_MAX_SIZE, len(str_buf)))
393 self._write(str_buf)
396 COUNTER_IO_WRITE_BYTES, len(str_buf))(self._ctx)
406 def _write(self, str_buf): argument
432 def _write(self, str_buf): argument
434 self._filehandle.write(str_buf)
435 self._buf_size += len(str_buf)
/external/wpa_supplicant_8/src/utils/
Dxml_libxml2.c24 struct str_buf { struct
33 struct str_buf *str = ctx_ptr; in add_str() argument
62 struct str_buf errors; in xml_validate()
123 struct str_buf errors; in xml_validate_dtd()
/external/wpa_supplicant_8/src/p2p/
Dp2p.c1120 char str_buf[256]; in p2ps_gen_hash() local
1132 adv_array = (u8 *) str_buf; in p2ps_gen_hash()
1134 if (adv_len >= sizeof(str_buf)) in p2ps_gen_hash()
1139 str_buf[i] = str[i] - 'A' + 'a'; in p2ps_gen_hash()
1141 str_buf[i] = str[i]; in p2ps_gen_hash()