Home
last modified time | relevance | path

Searched refs:nbuf (Results 1 – 25 of 53) sorted by relevance

123

/third_party/minimp3/fuzzing/
Dfuzz.c16 int nbuf = 0; in main() local
21 nbuf += fread(buf + nbuf, 1, sizeof(buf) - nbuf, stdin); in main()
22 mp3dec_decode_frame(&mp3d, buf, nbuf, pcm, &info); in main()
23 nbuf -= info.frame_bytes; in main()
/third_party/boost/libs/regex/test/c_compiler_checks/
Dwide_posix_api_check.cpp51 char nbuf[256]; in main() local
53 nbuf[i] = static_cast<char>(buf[i]); in main()
54 printf("%s", nbuf); in main()
69 char nbuf[256]; in main() local
71 nbuf[i] = static_cast<char>(buf[i]); in main()
72 printf("%s", nbuf); in main()
Dwide_posix_api_check.c45 char nbuf[256]; in main() local
52 nbuf[i] = (char)(buf[i]); in main()
53 puts(nbuf); in main()
68 nbuf[i] = (char)(buf[i]); in main()
69 puts(nbuf); in main()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
Dwpabuf.c70 unsigned char *nbuf; in wpabuf_resize() local
72 nbuf = os_realloc(buf->buf, buf->used + add_len); in wpabuf_resize()
73 if (nbuf == NULL) in wpabuf_resize()
75 os_memset(nbuf + buf->used, 0, add_len); in wpabuf_resize()
76 buf->buf = nbuf; in wpabuf_resize()
79 nbuf = os_realloc(trace, sizeof(struct wpabuf_trace) + in wpabuf_resize()
82 if (nbuf == NULL) in wpabuf_resize()
84 trace = (struct wpabuf_trace *) nbuf; in wpabuf_resize()
86 os_memset(nbuf + sizeof(struct wpabuf_trace) + in wpabuf_resize()
90 nbuf = os_realloc(buf, sizeof(struct wpabuf) + in wpabuf_resize()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
Dwpabuf.c70 unsigned char *nbuf; in wpabuf_resize() local
72 nbuf = os_realloc(buf->buf, buf->used + add_len); in wpabuf_resize()
73 if (nbuf == NULL) in wpabuf_resize()
75 os_memset(nbuf + buf->used, 0, add_len); in wpabuf_resize()
76 buf->buf = nbuf; in wpabuf_resize()
79 nbuf = os_realloc(trace, sizeof(struct wpabuf_trace) + in wpabuf_resize()
82 if (nbuf == NULL) in wpabuf_resize()
84 trace = (struct wpabuf_trace *) nbuf; in wpabuf_resize()
86 os_memset(nbuf + sizeof(struct wpabuf_trace) + in wpabuf_resize()
90 nbuf = os_realloc(buf, sizeof(struct wpabuf) + in wpabuf_resize()
[all …]
/third_party/libwebsockets/lib/core/
Dbuflist.c37 struct lws_buflist *nbuf; in lws_buflist_append_segment() local
62 nbuf = (struct lws_buflist *)lws_malloc(sizeof(struct lws_buflist) + in lws_buflist_append_segment()
64 if (!nbuf) { in lws_buflist_append_segment()
69 nbuf->len = len; in lws_buflist_append_segment()
70 nbuf->pos = 0; in lws_buflist_append_segment()
71 nbuf->next = NULL; in lws_buflist_append_segment()
74 p = (uint8_t *)nbuf + sizeof(*nbuf) + LWS_PRE; in lws_buflist_append_segment()
77 *head = nbuf; in lws_buflist_append_segment()
/third_party/libunwind/src/arm/
DGex_tables.c292 int nbuf = 0; in arm_exidx_extract() local
312 nbuf = -UNW_ESTOPUNWIND; in arm_exidx_extract()
318 buf[nbuf++] = data >> 16; in arm_exidx_extract()
319 buf[nbuf++] = data >> 8; in arm_exidx_extract()
320 buf[nbuf++] = data; in arm_exidx_extract()
343 buf[nbuf++] = data >> 16; in arm_exidx_extract()
344 buf[nbuf++] = data >> 8; in arm_exidx_extract()
345 buf[nbuf++] = data; in arm_exidx_extract()
358 buf[nbuf++] = data >> 16; in arm_exidx_extract()
359 buf[nbuf++] = data >> 8; in arm_exidx_extract()
[all …]
/third_party/uboot/u-boot-2020.01/cmd/
Dsetexpr.c177 char nbuf[SLRE_PATSZ]; in regex_sub() local
219 strcpy(nbuf, s); in regex_sub()
221 debug("## SUBST(1) ## %s\n", nbuf); in regex_sub()
252 nbuf); in regex_sub()
254 for (np = nbuf;;) { in regex_sub()
269 debug("## SUBST(2) ## %s\n", nbuf); in regex_sub()
273 nbuf, nlen); in regex_sub()
/third_party/ltp/testcases/network/tcp_cmds/sendfile/
Dtestsf_s.c43 char nbuf[PATH_MAX]; in main() local
131 number = &nbuf[0]; in main()
133 nbuf[count] = *lp; in main()
137 nbuf[count] = '\0'; in main()
/third_party/ejdb/src/jbr/
Djbr.c113 char nbuf[JBNUMBUF_SIZE + 2]; // + \r\n in _jbr_flush_chunk() local
130 int sz = snprintf(nbuf, JBNUMBUF_SIZE, "%zX\r\n", iwxstr_size(wbuf)); in _jbr_flush_chunk()
131 if (fio_write(uuid, nbuf, sz) < 0) { in _jbr_flush_chunk()
267 char nbuf[JBNUMBUF_SIZE]; in _jbr_on_query() local
268 snprintf(nbuf, sizeof(nbuf), "%" PRId64, ux.cnt); in _jbr_on_query()
269 _jbr_http_send(req, 200, "text/plain", nbuf, (int) strlen(nbuf)); in _jbr_on_query()
399 char nbuf[JBNUMBUF_SIZE]; in _jbr_on_post() local
400 int len = iwitoa(id, nbuf, sizeof(nbuf)); in _jbr_on_post()
401 _jbr_http_send(req, 200, "text/plain", nbuf, len); in _jbr_on_post()
560 char nbuf[JBNUMBUF_SIZE]; in _jbr_fill_ctx() local
[all …]
/third_party/ejdb/src/jql/
Djql.c79 char nbuf[JBNUMBUF_SIZE]; in _jql_set_placeholder() local
80 iwitoa(index, nbuf, JBNUMBUF_SIZE); in _jql_set_placeholder()
82 if ((pv->value[0] == '?') && !strcmp(pv->value + 1, nbuf)) { in _jql_set_placeholder()
540 char nbuf[JBNUMBUF_SIZE]; in _jql_cmp_jqval_pair() local
541 iwitoa(rv->vi64, nbuf, JBNUMBUF_SIZE); in _jql_cmp_jqval_pair()
542 return strcmp(lv->vstr, nbuf); in _jql_cmp_jqval_pair()
546 char nbuf[JBNUMBUF_SIZE]; in _jql_cmp_jqval_pair() local
547 jbi_ftoa(rv->vf64, nbuf, &osz); in _jql_cmp_jqval_pair()
548 return strcmp(lv->vstr, nbuf); in _jql_cmp_jqval_pair()
658 char nbuf[JBNUMBUF_SIZE]; in _jql_match_regexp() local
[all …]
/third_party/ejdb/src/jbi/
Djbi_sorter_consumer.c214 void *nbuf = realloc(ctx->jblbuf, nsize); in jbi_sorter_consumer() local
215 if (!nbuf) { in jbi_sorter_consumer()
218 ctx->jblbuf = nbuf; in jbi_sorter_consumer()
272 void *nbuf = realloc(ssc->docs, ssc->docs_asz); in jbi_sorter_consumer() local
273 if (!nbuf) { in jbi_sorter_consumer()
276 ssc->docs = nbuf; in jbi_sorter_consumer()
Djbi_consumer.c42 void *nbuf = realloc(ctx->jblbuf, nsize); in jbi_consumer() local
43 if (!nbuf) { in jbi_consumer()
47 ctx->jblbuf = nbuf; in jbi_consumer()
/third_party/ffmpeg/libavfilter/
Daf_stereotools.c162 int nbuf = inlink->sample_rate * (fabs(delay) / 1000.); in filter_frame() local
165 nbuf -= nbuf % 2; in filter_frame()
274 R = buffer[(s->pos - (int)nbuf + 1 + length) % length]; in filter_frame()
276 L = buffer[(s->pos - (int)nbuf + length) % length]; in filter_frame()
/third_party/uboot/u-boot-2020.01/fs/ubifs/
Dreplay.c402 char *nbuf; in insert_dent() local
412 nbuf = kmalloc(nlen + 1, GFP_KERNEL); in insert_dent()
413 if (!nbuf) { in insert_dent()
427 memcpy(nbuf, name, nlen); in insert_dent()
428 nbuf[nlen] = '\0'; in insert_dent()
429 r->nm.name = nbuf; in insert_dent()
/third_party/uboot/u-boot-2020.01/doc/
DREADME.440-DDR-performance43 ttcp-t: buflen=8192, nbuf=2048, align=16384/0, port=5000 tcp ->
83 ttcp-t: buflen=8192, nbuf=2048, align=16384/0, port=5000 tcp ->
/third_party/ejdb/src/jql/inc/
Djqpx.c216 char nbuf[JBNUMBUF_SIZE + 1]; in _jqp_placeholder() local
217 nbuf[0] = '?'; in _jqp_placeholder()
218 int len = iwitoa(aux->num_placeholders++, nbuf + 1, JBNUMBUF_SIZE); in _jqp_placeholder()
219 nbuf[len + 1] = '\0'; in _jqp_placeholder()
220 unit->string.value = _jqp_strdup(yy, nbuf); in _jqp_placeholder()
1378 char nbuf[JBNUMBUF_SIZE]; in _jqp_print_opts() local
1379 iwitoa(aux->skip->intval.value, nbuf, JBNUMBUF_SIZE); in _jqp_print_opts()
1380 PT(nbuf, -1, 0, 0); in _jqp_print_opts()
1393 char nbuf[JBNUMBUF_SIZE]; in _jqp_print_opts() local
1394 iwitoa(aux->limit->intval.value, nbuf, JBNUMBUF_SIZE); in _jqp_print_opts()
[all …]
/third_party/freetype/src/bdf/
Dbdflib.c1777 char nbuf[128]; in _bdf_parse_properties() local
1798 ft_sprintf( nbuf, "%hd", p->font->bbx.ascent ); in _bdf_parse_properties()
1800 nbuf, lineno ); in _bdf_parse_properties()
1810 ft_sprintf( nbuf, "%hd", p->font->bbx.descent ); in _bdf_parse_properties()
1812 nbuf, lineno ); in _bdf_parse_properties()
2124 char nbuf[128]; in _bdf_parse_start() local
2138 ft_sprintf( nbuf, "%hd", p->font->bbx.ascent ); in _bdf_parse_start()
2140 nbuf, lineno ); in _bdf_parse_start()
2146 ft_sprintf( nbuf, "%hd", p->font->bbx.descent ); in _bdf_parse_start()
2148 nbuf, lineno ); in _bdf_parse_start()
/third_party/flutter/skia/third_party/externals/freetype/src/bdf/
Dbdflib.c1778 char nbuf[128]; in _bdf_parse_properties() local
1799 ft_sprintf( nbuf, "%hd", p->font->bbx.ascent ); in _bdf_parse_properties()
1801 nbuf, lineno ); in _bdf_parse_properties()
1811 ft_sprintf( nbuf, "%hd", p->font->bbx.descent ); in _bdf_parse_properties()
1813 nbuf, lineno ); in _bdf_parse_properties()
2125 char nbuf[128]; in _bdf_parse_start() local
2139 ft_sprintf( nbuf, "%hd", p->font->bbx.ascent ); in _bdf_parse_start()
2141 nbuf, lineno ); in _bdf_parse_start()
2147 ft_sprintf( nbuf, "%hd", p->font->bbx.descent ); in _bdf_parse_start()
2149 nbuf, lineno ); in _bdf_parse_start()
/third_party/skia/third_party/externals/freetype/src/bdf/
Dbdflib.c1782 char nbuf[128]; in _bdf_parse_properties() local
1803 ft_sprintf( nbuf, "%hd", p->font->bbx.ascent ); in _bdf_parse_properties()
1805 nbuf, lineno ); in _bdf_parse_properties()
1815 ft_sprintf( nbuf, "%hd", p->font->bbx.descent ); in _bdf_parse_properties()
1817 nbuf, lineno ); in _bdf_parse_properties()
2123 char nbuf[128]; in _bdf_parse_start() local
2137 ft_sprintf( nbuf, "%hd", p->font->bbx.ascent ); in _bdf_parse_start()
2139 nbuf, lineno ); in _bdf_parse_start()
2145 ft_sprintf( nbuf, "%hd", p->font->bbx.descent ); in _bdf_parse_start()
2147 nbuf, lineno ); in _bdf_parse_start()
/third_party/gstreamer/gstplugins_base/gst-libs/gst/fft/
Dkiss_fft_s16.c28 #define CHECKBUF(buf,nbuf,n) \ argument
30 if ( nbuf < (size_t)(n) ) {\
33 nbuf = (size_t)(n); \
Dkiss_fft_f32.c28 #define CHECKBUF(buf,nbuf,n) \ argument
30 if ( nbuf < (size_t)(n) ) {\
33 nbuf = (size_t)(n); \
Dkiss_fft_s32.c28 #define CHECKBUF(buf,nbuf,n) \ argument
30 if ( nbuf < (size_t)(n) ) {\
33 nbuf = (size_t)(n); \
Dkiss_fft_f64.c28 #define CHECKBUF(buf,nbuf,n) \ argument
30 if ( nbuf < (size_t)(n) ) {\
33 nbuf = (size_t)(n); \
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/
Deap_fast_pac.c494 char *nbuf = os_realloc(*buf, *buf_len + need); in eap_fast_write() local
495 if (nbuf == NULL) { in eap_fast_write()
500 *pos = nbuf + (*pos - *buf); in eap_fast_write()
501 *buf = nbuf; in eap_fast_write()

123