Home
last modified time | relevance | path

Searched refs:ebuf (Results 1 – 25 of 35) sorted by relevance

12

/third_party/ltp/testcases/kernel/syscalls/nftw/
Dtools64.c32 extern char ebuf[ERR_BUF_SIZ];
72 sprintf(ebuf, "Can't mkdir ./tmp"); in setup_path()
73 perror(ebuf); in setup_path()
80 sprintf(ebuf, "Can't mkdir %s %d", in setup_path()
82 perror(ebuf); in setup_path()
90 sprintf(ebuf, "Can't symlink %s ", in setup_path()
92 perror(ebuf); in setup_path()
101 sprintf(ebuf, "Can't open %s", pathdat[i].name); in setup_path()
102 perror(ebuf); in setup_path()
123 sprintf(ebuf, "Can't chmod %s ", "./tmp/data/d333"); in setup_path()
[all …]
Dtools.c32 extern char ebuf[ERR_BUF_SIZ];
73 sprintf(ebuf, "Can't mkdir ./tmp"); in setup_path()
74 perror(ebuf); in setup_path()
81 sprintf(ebuf, "Can't mkdir %s %d", in setup_path()
83 perror(ebuf); in setup_path()
91 sprintf(ebuf, "Can't symlink %s ", in setup_path()
93 perror(ebuf); in setup_path()
102 sprintf(ebuf, "Can't open %s", pathdat[i].name); in setup_path()
103 perror(ebuf); in setup_path()
124 sprintf(ebuf, "Can't chmod %s ", "./tmp/data/d333"); in setup_path()
[all …]
/third_party/libwebsockets/lib/roles/mqtt/
Dops-mqtt.c32 struct lws_tokens ebuf; in rops_handle_POLLIN_mqtt() local
52 ebuf.token = NULL; in rops_handle_POLLIN_mqtt()
53 ebuf.len = 0; in rops_handle_POLLIN_mqtt()
93 ebuf.len = (int)lws_buflist_next_segment_len(&wsi->buflist, &ebuf.token); in rops_handle_POLLIN_mqtt()
94 if (ebuf.len) { in rops_handle_POLLIN_mqtt()
95 lwsl_info("draining buflist (len %d)\n", ebuf.len); in rops_handle_POLLIN_mqtt()
121 ebuf.token = pt->serv_buf; in rops_handle_POLLIN_mqtt()
122 ebuf.len = wsi->context->pt_serv_buf_size; in rops_handle_POLLIN_mqtt()
124 if ((unsigned int)ebuf.len > wsi->context->pt_serv_buf_size) in rops_handle_POLLIN_mqtt()
125 ebuf.len = wsi->context->pt_serv_buf_size; in rops_handle_POLLIN_mqtt()
[all …]
/third_party/libwebsockets/lib/roles/mqtt/client/
Dclient-mqtt.c177 struct lws_tokens ebuf; in lws_mqtt_client_socket_service() local
327 ebuf.token = pt->serv_buf; in lws_mqtt_client_socket_service()
328 ebuf.len = wsi->context->pt_serv_buf_size; in lws_mqtt_client_socket_service()
330 if ((unsigned int)ebuf.len > wsi->context->pt_serv_buf_size) in lws_mqtt_client_socket_service()
331 ebuf.len = wsi->context->pt_serv_buf_size; in lws_mqtt_client_socket_service()
333 if ((int)pending > ebuf.len) in lws_mqtt_client_socket_service()
334 pending = ebuf.len; in lws_mqtt_client_socket_service()
336 ebuf.len = lws_ssl_capable_read(wsi, ebuf.token, in lws_mqtt_client_socket_service()
338 ebuf.len); in lws_mqtt_client_socket_service()
339 switch (ebuf.len) { in lws_mqtt_client_socket_service()
[all …]
/third_party/libwebsockets/lib/core-net/
Dservice.c354 struct lws_tokens *ebuf, char fr, const char *hint) in lws_buflist_aware_read() argument
363 if (!ebuf->token) in lws_buflist_aware_read()
364 ebuf->token = pt->serv_buf + LWS_PRE; in lws_buflist_aware_read()
365 if (!ebuf->len || in lws_buflist_aware_read()
366 (unsigned int)ebuf->len > wsi->context->pt_serv_buf_size - LWS_PRE) in lws_buflist_aware_read()
367 ebuf->len = wsi->context->pt_serv_buf_size - LWS_PRE; in lws_buflist_aware_read()
369 e = ebuf->len; in lws_buflist_aware_read()
370 ep = ebuf->token; in lws_buflist_aware_read()
379 bns = (int)lws_buflist_next_segment_len(&wsi->buflist, &ebuf->token); in lws_buflist_aware_read()
380 b = ebuf->token; in lws_buflist_aware_read()
[all …]
/third_party/libwebsockets/lib/roles/raw-proxy/
Dops-raw-proxy.c31 struct lws_tokens ebuf; in rops_handle_POLLIN_raw_proxy() local
57 ebuf.token = NULL; in rops_handle_POLLIN_raw_proxy()
58 ebuf.len = 0; in rops_handle_POLLIN_raw_proxy()
59 buffered = lws_buflist_aware_read(pt, wsi, &ebuf, 1, __func__); in rops_handle_POLLIN_raw_proxy()
63 switch (ebuf.len) { in rops_handle_POLLIN_raw_proxy()
87 wsi->user_space, ebuf.token, in rops_handle_POLLIN_raw_proxy()
88 ebuf.len); in rops_handle_POLLIN_raw_proxy()
94 if (lws_buflist_aware_finished_consuming(wsi, &ebuf, ebuf.len, in rops_handle_POLLIN_raw_proxy()
/third_party/libwebsockets/lib/roles/raw-skt/
Dops-raw-skt.c34 struct lws_tokens ebuf; in rops_handle_POLLIN_raw_skt() local
116 ebuf.token = NULL; in rops_handle_POLLIN_raw_skt()
117 ebuf.len = 0; in rops_handle_POLLIN_raw_skt()
119 buffered = lws_buflist_aware_read(pt, wsi, &ebuf, 1, __func__); in rops_handle_POLLIN_raw_skt()
120 switch (ebuf.len) { in rops_handle_POLLIN_raw_skt()
153 n = ebuf.len; in rops_handle_POLLIN_raw_skt()
161 wsi->user_space, ebuf.token, in rops_handle_POLLIN_raw_skt()
162 ebuf.len); in rops_handle_POLLIN_raw_skt()
171 if (lws_buflist_aware_finished_consuming(wsi, &ebuf, ebuf.len, in rops_handle_POLLIN_raw_skt()
/third_party/libwebsockets/lib/roles/ws/ext/
Dextension.c249 struct lws_tokens ebuf; in lws_issue_raw_ext_access() local
252 ebuf.token = buf; in lws_issue_raw_ext_access()
253 ebuf.len = (int)len; in lws_issue_raw_ext_access()
269 &ebuf, 0); in lws_issue_raw_ext_access()
275 if (buf != ebuf.token) in lws_issue_raw_ext_access()
284 if (ebuf.len) { in lws_issue_raw_ext_access()
285 n = lws_issue_raw(wsi, ebuf.token, ebuf.len); in lws_issue_raw_ext_access()
306 ebuf.token = NULL; in lws_issue_raw_ext_access()
307 ebuf.len = 0; in lws_issue_raw_ext_access()
/third_party/openssl/test/
Dafalgtest.c57 unsigned char ebuf[BUFFER_SIZE + 32]; in test_afalg_aes_cbc() local
90 || !TEST_true(EVP_CipherUpdate(ctx, ebuf, &encl, in, BUFFER_SIZE)) in test_afalg_aes_cbc()
91 || !TEST_true(EVP_CipherFinal_ex(ctx, ebuf+encl, &encf))) in test_afalg_aes_cbc()
95 if (!TEST_mem_eq(enc_result, BUFFER_SIZE, ebuf, BUFFER_SIZE)) in test_afalg_aes_cbc()
100 || !TEST_true(EVP_CipherUpdate(ctx, dbuf, &decl, ebuf, encl)) in test_afalg_aes_cbc()
/third_party/libwebsockets/lib/roles/h2/
Dops-h2.c100 struct lws_tokens ebuf; in rops_handle_POLLIN_h2() local
187 ebuf.len = (int)lws_buflist_next_segment_len(&wsi->buflist, in rops_handle_POLLIN_h2()
188 &ebuf.token); in rops_handle_POLLIN_h2()
189 if (ebuf.len) { in rops_handle_POLLIN_h2()
190 lwsl_info("draining buflist (len %d)\n", ebuf.len); in rops_handle_POLLIN_h2()
203 ebuf.token = pt->serv_buf; in rops_handle_POLLIN_h2()
204 ebuf.len = lws_ssl_capable_read(wsi, in rops_handle_POLLIN_h2()
205 ebuf.token, in rops_handle_POLLIN_h2()
207 switch (ebuf.len) { in rops_handle_POLLIN_h2()
224 if (ebuf.len < 0) in rops_handle_POLLIN_h2()
[all …]
/third_party/libwebsockets/lib/roles/ws/
Dops-ws.c945 struct lws_tokens ebuf; in rops_handle_POLLIN_ws() local
971 ebuf.token = NULL; in rops_handle_POLLIN_ws()
972 ebuf.len = 0; in rops_handle_POLLIN_ws()
1090 ebuf.len = (int)lws_buflist_next_segment_len(&wsi->buflist, in rops_handle_POLLIN_ws()
1091 &ebuf.token); in rops_handle_POLLIN_ws()
1092 if (ebuf.len) { in rops_handle_POLLIN_ws()
1093 lwsl_info("draining buflist (len %d)\n", ebuf.len); in rops_handle_POLLIN_ws()
1122 ebuf.token = pt->serv_buf; in rops_handle_POLLIN_ws()
1124 ebuf.len = wsi->ws->rx_ubuf_alloc; in rops_handle_POLLIN_ws()
1126 ebuf.len = wsi->context->pt_serv_buf_size; in rops_handle_POLLIN_ws()
[all …]
/third_party/libwebsockets/lib/roles/h1/
Dops-h1.c305 struct lws_tokens ebuf; in lws_h1_server_socket_service() local
362 ebuf.token = NULL; in lws_h1_server_socket_service()
363 ebuf.len = 0; in lws_h1_server_socket_service()
364 buffered = lws_buflist_aware_read(pt, wsi, &ebuf, 0, __func__); in lws_h1_server_socket_service()
365 switch (ebuf.len) { in lws_h1_server_socket_service()
401 if (lws_buflist_aware_finished_consuming(wsi, &ebuf, 0, in lws_h1_server_socket_service()
414 n = lws_read_h2(wsi, ebuf.token, ebuf.len); in lws_h1_server_socket_service()
417 n = lws_read_h1(wsi, ebuf.token, ebuf.len); in lws_h1_server_socket_service()
423 if (lws_buflist_aware_finished_consuming(wsi, &ebuf, n, in lws_h1_server_socket_service()
/third_party/musl/porting/liteos_m/kernel/src/stdio/
Dvfprintf.c194 char ebuf0[3*sizeof(int)], *ebuf=&ebuf0[3*sizeof(int)]; in fmt_fp() local
243 estr=fmt_u(e2<0 ? -e2 : e2, ebuf); in fmt_fp()
244 if (estr==ebuf) *--estr='0'; in fmt_fp()
256 if (p > INT_MAX-2-(ebuf-estr)-pl) in fmt_fp()
259 l = (p+2) + (ebuf-estr); in fmt_fp()
261 l = (s-buf) + (ebuf-estr); in fmt_fp()
267 pad(f, '0', l-(ebuf-estr)-(s-buf), 0, 0); in fmt_fp()
268 out(f, estr, ebuf-estr); in fmt_fp()
377 estr=fmt_u(e<0 ? -e : e, ebuf); in fmt_fp()
378 while(ebuf-estr<2) *--estr='0'; in fmt_fp()
[all …]
/third_party/musl/porting/liteos_a/kernel/src/stdio/
Dvfprintf.c194 char ebuf0[3*sizeof(int)], *ebuf=&ebuf0[3*sizeof(int)], *estr; in fmt_fp() local
242 estr=fmt_u(e2<0 ? -e2 : e2, ebuf); in fmt_fp()
243 if (estr==ebuf) *--estr='0'; in fmt_fp()
255 if (p > INT_MAX-2-(ebuf-estr)-pl) in fmt_fp()
258 l = (p+2) + (ebuf-estr); in fmt_fp()
260 l = (s-buf) + (ebuf-estr); in fmt_fp()
266 pad(f, '0', l-(ebuf-estr)-(s-buf), 0, 0); in fmt_fp()
267 out(f, estr, ebuf-estr); in fmt_fp()
376 estr=fmt_u(e<0 ? -e : e, ebuf); in fmt_fp()
377 while(ebuf-estr<2) *--estr='0'; in fmt_fp()
[all …]
/third_party/musl/src/stdio/
Dvfprintf.c189 char ebuf0[3*sizeof(int)], *ebuf=&ebuf0[3*sizeof(int)], *estr; in fmt_fp() local
237 estr=fmt_u(e2<0 ? -e2 : e2, ebuf); in fmt_fp()
238 if (estr==ebuf) *--estr='0'; in fmt_fp()
250 if (p > INT_MAX-2-(ebuf-estr)-pl) in fmt_fp()
253 l = (p+2) + (ebuf-estr); in fmt_fp()
255 l = (s-buf) + (ebuf-estr); in fmt_fp()
261 pad(f, '0', l-(ebuf-estr)-(s-buf), 0, 0); in fmt_fp()
262 out(f, estr, ebuf-estr); in fmt_fp()
371 estr=fmt_u(e<0 ? -e : e, ebuf); in fmt_fp()
372 while(ebuf-estr<2) *--estr='0'; in fmt_fp()
[all …]
/third_party/iowow/src/log/
Diwlog.c318 char ebuf[EBUF_SZ]; in _default_logfn() local
327 int rci = strerror_r(errno_code, ebuf, EBUF_SZ); in _default_logfn()
329 errno_msg = ebuf; in _default_logfn()
332 int rci = strerror_s(ebuf, EBUF_SZ, errno_code); in _default_logfn()
334 errno_msg = ebuf; in _default_logfn()
337 errno_msg = strerror_r(errno_code, ebuf, EBUF_SZ); // NOLINT in _default_logfn()
/third_party/libwebsockets/lib/tls/mbedtls/
Dmbedtls-client.c198 lws_tls_client_confirm_peer_cert(struct lws *wsi, char *ebuf, int ebuf_len) in lws_tls_client_confirm_peer_cert() argument
207 lws_snprintf(ebuf, ebuf_len, "no peer cert"); in lws_tls_client_confirm_peer_cert()
238 lws_snprintf(ebuf, ebuf_len, in lws_tls_client_confirm_peer_cert()
241 lwsl_info("%s\n", ebuf); in lws_tls_client_confirm_peer_cert()
/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_info.cc689 char ebuf[52]; // covers entry.unused too in Open() local
692 const std::size_t zonecnt = index_size / sizeof(ebuf); in Open()
693 if (zonecnt * sizeof(ebuf) != index_size) continue; in Open()
695 if (fread(ebuf, 1, sizeof(ebuf), fp.get()) != sizeof(ebuf)) break; in Open()
696 const std::int_fast32_t start = data_offset + Decode32(ebuf + 40); in Open()
697 const std::int_fast32_t length = Decode32(ebuf + 44); in Open()
699 ebuf[40] = '\0'; // ensure zone name is NUL terminated in Open()
700 if (strcmp(name.c_str() + pos, ebuf) == 0) { in Open()
/third_party/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_info.cc692 char ebuf[52]; // covers entry.unused too in Open() local
695 const std::size_t zonecnt = index_size / sizeof(ebuf); in Open()
696 if (zonecnt * sizeof(ebuf) != index_size) continue; in Open()
698 if (fread(ebuf, 1, sizeof(ebuf), fp.get()) != sizeof(ebuf)) break; in Open()
699 const std::int_fast32_t start = data_offset + Decode32(ebuf + 40); in Open()
700 const std::int_fast32_t length = Decode32(ebuf + 44); in Open()
702 ebuf[40] = '\0'; // ensure zone name is NUL terminated in Open()
703 if (strcmp(name.c_str() + pos, ebuf) == 0) { in Open()
/third_party/libwebsockets/lib/misc/fts/
Dtrie-fd.c694 char ebuf[384]; in lws_fts_search() local
731 lws_json_purify(ebuf, (const char *)lbuf, in lws_fts_search()
732 sizeof(ebuf) - 1, NULL); in lws_fts_search()
733 m = (int)strlen(ebuf); in lws_fts_search()
741 memcpy(p, ebuf, m); in lws_fts_search()
/third_party/minimp3/player/
Dnuklear_sdl_gl3.h224 struct nk_buffer vbuf, ebuf; in nk_sdl_render() local
260 nk_buffer_init_fixed(&ebuf, elements, (nk_size)max_element_buffer); in nk_sdl_render()
261 nk_convert(&sdl.ctx, &dev->cmds, &vbuf, &ebuf, &config); in nk_sdl_render()
/third_party/libwebsockets/lib/tls/openssl/
Dopenssl-client.c444 lws_tls_client_confirm_peer_cert(struct lws *wsi, char *ebuf, int ebuf_len) in lws_tls_client_confirm_peer_cert() argument
479 lws_snprintf(ebuf, ebuf_len, in lws_tls_client_confirm_peer_cert()
482 lwsl_info("%s\n", ebuf); in lws_tls_client_confirm_peer_cert()
/third_party/libwebsockets/lib/roles/http/client/
Dclient-http.c102 char ebuf[128]; in lws_client_socket_service() local
227 n = lws_ssl_client_connect2(wsi, ebuf, sizeof(ebuf)); in lws_client_socket_service()
231 cce = ebuf; in lws_client_socket_service()
/third_party/libwebsockets/lib/tls/
Dprivate-network.h162 lws_tls_client_confirm_peer_cert(struct lws *wsi, char *ebuf, int ebuf_len);
/third_party/libwebsockets/lib/roles/http/server/
Dserver.c1781 struct lws_tokens ebuf; in lws_http_action() local
1784 ebuf.len = (int)lws_buflist_next_segment_len(&wsi->buflist, in lws_http_action()
1785 &ebuf.token); in lws_http_action()
1786 if (!ebuf.len) in lws_http_action()
1789 lwsl_debug("%s: consuming %d\n", __func__, (int)ebuf.len); in lws_http_action()
1790 m = lws_read_h1(wsi, ebuf.token, ebuf.len); in lws_http_action()
1794 if (lws_buflist_aware_finished_consuming(wsi, &ebuf, m, 1, in lws_http_action()

12