Home
last modified time | relevance | path

Searched refs:wbuf (Results 1 – 19 of 19) sorted by relevance

/external/bison/lib/
Derror.c144 wchar_t *wbuf = (len < ALLOCA_LIMIT in error_tail() local
145 ? alloca (len * sizeof *wbuf) in error_tail()
146 : len <= SIZE_MAX / sizeof *wbuf in error_tail()
147 ? malloc (len * sizeof *wbuf) in error_tail()
150 if (wbuf) in error_tail()
156 res = mbsrtowcs (wbuf, &tmp, len, &st); in error_tail()
157 wmessage = res == (size_t) -1 ? L"???" : wbuf; in error_tail()
162 free (wbuf); in error_tail()
/external/openssl/ssl/
Ds2_lib.c334 if ((s2->wbuf=OPENSSL_malloc( in ssl2_new()
343 if (s2->wbuf != NULL) OPENSSL_free(s2->wbuf); in ssl2_new()
359 if (s2->wbuf != NULL) OPENSSL_free(s2->wbuf); in ssl2_free()
368 unsigned char *rbuf,*wbuf; in ssl2_clear() local
373 wbuf=s2->wbuf; in ssl2_clear()
378 s2->wbuf=wbuf; in ssl2_clear()
Ds3_both.c772 if (s->s3->wbuf.buf == NULL) in ssl3_setup_write_buffer()
794 s->s3->wbuf.buf = p; in ssl3_setup_write_buffer()
795 s->s3->wbuf.len = len; in ssl3_setup_write_buffer()
817 if (s->s3->wbuf.buf != NULL) in ssl3_release_write_buffer()
819 freelist_insert(s->ctx, 0, s->s3->wbuf.len, s->s3->wbuf.buf); in ssl3_release_write_buffer()
820 s->s3->wbuf.buf = NULL; in ssl3_release_write_buffer()
Dd1_pkt.c1367 if (s->s3->wbuf.left != 0) in do_dtls1_write()
1373 if (s->s3->wbuf.len < len_with_overhead) in do_dtls1_write()
1375 if ((p=OPENSSL_realloc(s->s3->wbuf.buf, len_with_overhead)) == NULL) { in do_dtls1_write()
1379 s->s3->wbuf.buf = p; in do_dtls1_write()
1380 s->s3->wbuf.len = len_with_overhead; in do_dtls1_write()
1396 wb= &(s->s3->wbuf); in do_dtls1_write()
1433 if (s->s3->wbuf.len < (size_t)prefix_len + SSL3_RT_MAX_PACKET_SIZE) in do_dtls1_write()
Dssl2.h179 unsigned char *wbuf; member
Ds3_lib.c2152 if (s->s3->wbuf.buf != NULL) in ssl3_free()
2209 wp = s->s3->wbuf.buf; in ssl3_clear()
2211 wlen = s->s3->wbuf.len; in ssl3_clear()
2221 s->s3->wbuf.buf = wp; in ssl3_clear()
2223 s->s3->wbuf.len = wlen; in ssl3_clear()
3325 (s->s3->wbuf.left == 0) && in ssl3_renegotiate_check()
Ds2_pkt.c608 s->s2->mac_data= &(s->s2->wbuf[3]); in n_do_ssl_write()
609 s->s2->wact_data= &(s->s2->wbuf[3+mac_size]); in n_do_ssl_write()
Ds3_pkt.c661 SSL3_BUFFER *wb=&(s->s3->wbuf); in do_ssl3_write()
857 SSL3_BUFFER *wb=&(s->s3->wbuf); in ssl3_write_pending()
1455 if (s->s3->wbuf.left == 0) /* data still being written out? */ in ssl3_send_alert()
Dssl3.h416 SSL3_BUFFER wbuf; /* write IO goes into here */ member
/external/stlport/test/unit/
Dcodecvt_test.cpp537 wchar_t wbuf[4096]; in special_encodings() local
539 …ngth(state, cp936_str.data(), cp936_str.data() + cp936_str.size(), sizeof(wbuf) / sizeof(wchar_t)); in special_encodings()
545 wbuf, wbuf + sizeof(wbuf) / sizeof(wchar_t), to_next); in special_encodings()
548 cp936_wstr.assign(wbuf, to_next); in special_encodings()
577 wchar_t wbuf[4096]; in special_encodings() local
579 …int len = cvt.length(state, utf8_str.data(), utf8_str.data() + utf8_str.size(), sizeof(wbuf) / siz… in special_encodings()
585 wbuf, wbuf + sizeof(wbuf) / sizeof(wchar_t), to_next); in special_encodings()
588 utf8_wstr.assign(wbuf, to_next); in special_encodings()
/external/stlport/src/c_locale_win32/
Dc_locale_win32.c241 …P(LCID lcid, const char* cp, LCTYPE lctype, char* buf, int buf_size, wchar_t* wbuf, int wbuf_size);
388 wchar_t wbuf[4]; in _Locale_numeric_create() local
402 __GetLocaleInfoUsingACP(lnum->lc.id, lnum->cp, LOCALE_SDECIMAL, lnum->decimal_point, 4, wbuf, 4); in _Locale_numeric_create()
403 __GetLocaleInfoUsingACP(lnum->lc.id, lnum->cp, LOCALE_STHOUSAND, lnum->thousands_sep, 4, wbuf, 4); in _Locale_numeric_create()
831 wchar_t wbuf[6]; in _Locale_monetary_create() local
842 … __GetLocaleInfoUsingACP(lmon->lc.id, lmon->cp, LOCALE_SDECIMAL, lmon->decimal_point, 4, wbuf, 6); in _Locale_monetary_create()
843 … __GetLocaleInfoUsingACP(lmon->lc.id, lmon->cp, LOCALE_STHOUSAND, lmon->thousands_sep, 4, wbuf, 6); in _Locale_monetary_create()
853 __GetLocaleInfoUsingACP(lmon->lc.id, lmon->cp, LOCALE_SCURRENCY, lmon->curr_symbol, 6, wbuf, 6); in _Locale_monetary_create()
854 …etLocaleInfoUsingACP(lmon->lc.id, lmon->cp, LOCALE_SNEGATIVESIGN, lmon->negative_sign, 5, wbuf, 6); in _Locale_monetary_create()
855 …etLocaleInfoUsingACP(lmon->lc.id, lmon->cp, LOCALE_SPOSITIVESIGN, lmon->positive_sign, 5, wbuf, 6); in _Locale_monetary_create()
[all …]
/external/chromium/third_party/libevent/test/
Dregress.c71 static char wbuf[4096]; variable
136 if (woff + len >= sizeof(wbuf)) in multiple_write_cb()
137 len = sizeof(wbuf) - woff; in multiple_write_cb()
139 len = write(fd, wbuf + woff, len); in multiple_write_cb()
149 if (woff >= sizeof(wbuf)) { in multiple_write_cb()
409 for (i = 0; i < sizeof(wbuf); i++) in test_multiple()
410 wbuf[i] = i; in test_multiple()
424 test_ok = memcmp(rbuf, wbuf, sizeof(wbuf)) == 0; in test_multiple()
438 for (i = 0; i < sizeof(wbuf); i++) in test_persistent()
439 wbuf[i] = i; in test_persistent()
[all …]
/external/openssl/patches/
Dsmall_records.patch40 + if (s->s3->wbuf.len < len_with_overhead)
42 + if ((p=OPENSSL_realloc(s->s3->wbuf.buf, len_with_overhead)) == NULL) {
46 + s->s3->wbuf.buf = p;
47 + s->s3->wbuf.len = len_with_overhead;
101 if (s->s3->wbuf.buf == NULL)
123 s->s3->wbuf.buf = p;
/external/openssl/apps/
Ds_server.c537 EBCDIC_OUTBUFF *wbuf; in ebcdic_new() local
539 wbuf = (EBCDIC_OUTBUFF *)OPENSSL_malloc(sizeof(EBCDIC_OUTBUFF) + 1024); in ebcdic_new()
540 wbuf->alloced = 1024; in ebcdic_new()
541 wbuf->buff[0] = '\0'; in ebcdic_new()
543 bi->ptr=(char *)wbuf; in ebcdic_new()
575 EBCDIC_OUTBUFF *wbuf; in ebcdic_write() local
583 wbuf=(EBCDIC_OUTBUFF *)b->ptr; in ebcdic_write()
585 if (inl > (num = wbuf->alloced)) in ebcdic_write()
590 OPENSSL_free(wbuf); in ebcdic_write()
591 wbuf=(EBCDIC_OUTBUFF *)OPENSSL_malloc(sizeof(EBCDIC_OUTBUFF) + num); in ebcdic_write()
[all …]
/external/stlport/src/c_locale_glibc/
Dc_locale_glibc2.c12 static wchar_t* _ToWChar(const char* buf, wchar_t *wbuf, size_t wbufSize) { in _ToWChar() argument
13 wchar_t *wcur = wbuf; in _ToWChar()
14 wchar_t *wend = wbuf + wbufSize - 1; in _ToWChar()
18 return wbuf; in _ToWChar()
/external/openssl/include/openssl/
Dssl2.h179 unsigned char *wbuf; member
Dssl3.h416 SSL3_BUFFER wbuf; /* write IO goes into here */ member
/external/wpa_supplicant/
Dtls_openssl.c331 unsigned short wbuf[255]; in cryptoapi_find_cert() local
332 MultiByteToWideChar(CP_ACP, 0, name + 7, -1, wbuf, 255); in cryptoapi_find_cert()
336 wbuf, NULL); in cryptoapi_find_cert()
/external/wpa_supplicant_6/wpa_supplicant/src/crypto/
Dtls_openssl.c287 unsigned short wbuf[255]; in cryptoapi_find_cert() local
288 MultiByteToWideChar(CP_ACP, 0, name + 7, -1, wbuf, 255); in cryptoapi_find_cert()
292 wbuf, NULL); in cryptoapi_find_cert()