/third_party/python/Parser/ |
D | myreadline.c | 122 wchar_t *wbuf; in _PyOS_WindowsConsoleReadline() local 128 wbuf = wbuf_local; in _PyOS_WindowsConsoleReadline() 134 if (!ReadConsoleW(hStdIn, &wbuf[total_read], wbuflen - total_read, &n_read, NULL)) { in _PyOS_WindowsConsoleReadline() 162 if (total_read == 0 || wbuf[total_read - 1] == L'\n') { in _PyOS_WindowsConsoleReadline() 166 if (wbuf == wbuf_local) { in _PyOS_WindowsConsoleReadline() 167 wbuf[total_read] = '\0'; in _PyOS_WindowsConsoleReadline() 168 wbuf = (wchar_t*)PyMem_RawMalloc(wbuflen * sizeof(wchar_t)); in _PyOS_WindowsConsoleReadline() 169 if (wbuf) { in _PyOS_WindowsConsoleReadline() 170 wcscpy_s(wbuf, wbuflen, wbuf_local); in _PyOS_WindowsConsoleReadline() 180 wchar_t *tmp = PyMem_RawRealloc(wbuf, wbuflen * sizeof(wchar_t)); in _PyOS_WindowsConsoleReadline() [all …]
|
/third_party/glib/glib/ |
D | win_iconv.c | 91 typedef int (*f_mbtowc)(csconv_t *cv, const uchar *buf, int bufsize, ushort *wbuf, int *wbufsize); 92 typedef int (*f_wctomb)(csconv_t *cv, ushort *wbuf, int wbufsize, uchar *buf, int bufsize); 136 static uint utf16_to_ucs4(const ushort *wbuf); 137 static void ucs4_to_utf16(uint wc, ushort *wbuf, int *wbufsize); 158 static int kernel_mbtowc(csconv_t *cv, const uchar *buf, int bufsize, ushort *wbuf, int *wbufsize); 159 static int kernel_wctomb(csconv_t *cv, ushort *wbuf, int wbufsize, uchar *buf, int bufsize); 160 static int mlang_mbtowc(csconv_t *cv, const uchar *buf, int bufsize, ushort *wbuf, int *wbufsize); 161 static int mlang_wctomb(csconv_t *cv, ushort *wbuf, int wbufsize, uchar *buf, int bufsize); 162 static int utf16_mbtowc(csconv_t *cv, const uchar *buf, int bufsize, ushort *wbuf, int *wbufsize); 163 static int utf16_wctomb(csconv_t *cv, ushort *wbuf, int wbufsize, uchar *buf, int bufsize); [all …]
|
/third_party/gstreamer/gstplugins_bad/ext/wayland/ |
D | wllinuxdmabuf.c | 38 struct wl_buffer *wbuf; member 48 d->wbuf = new_buffer; in create_succeeded() 60 d->wbuf = NULL; in create_failed() 119 data.wbuf = NULL; in gst_wl_linux_dmabuf_construct_wl_buffer() 140 data.wbuf = (gpointer) 0x1; in gst_wl_linux_dmabuf_construct_wl_buffer() 142 while (data.wbuf == (gpointer) 0x1) { in gst_wl_linux_dmabuf_construct_wl_buffer() 146 data.wbuf = NULL; in gst_wl_linux_dmabuf_construct_wl_buffer() 151 if (!data.wbuf) { in gst_wl_linux_dmabuf_construct_wl_buffer() 156 data.wbuf, width, height, (char *) &format, nplanes); in gst_wl_linux_dmabuf_construct_wl_buffer() 163 return data.wbuf; in gst_wl_linux_dmabuf_construct_wl_buffer()
|
D | gstwaylandsink.c | 703 struct wl_buffer *wbuf = NULL; in gst_wayland_sink_show_frame() local 773 wbuf = gst_wl_linux_dmabuf_construct_wl_buffer (buffer, sink->display, in gst_wayland_sink_show_frame() 777 if (!wbuf && gst_wl_display_check_format_for_shm (sink->display, format)) { in gst_wayland_sink_show_frame() 779 wbuf = gst_wl_shm_memory_construct_wl_buffer (mem, sink->display, in gst_wayland_sink_show_frame() 783 if (!wbuf) { in gst_wayland_sink_show_frame() 826 wbuf = gst_wl_shm_memory_construct_wl_buffer (mem, sink->display, in gst_wayland_sink_show_frame() 829 if (G_UNLIKELY (!wbuf)) in gst_wayland_sink_show_frame() 832 wlbuffer = gst_buffer_add_wl_buffer (to_render, wbuf, sink->display); in gst_wayland_sink_show_frame() 853 if (!wbuf) in gst_wayland_sink_show_frame() 856 wlbuffer = gst_buffer_add_wl_buffer (buffer, wbuf, sink->display); in gst_wayland_sink_show_frame()
|
/third_party/ltp/testcases/kernel/syscalls/write/ |
D | write04.c | 31 char wbuf[8 * page_size]; in verify_write() local 33 TEST(write(wfd, wbuf, sizeof(wbuf))); in verify_write() 53 char wbuf[17 * page_size]; in setup() local 62 SAFE_WRITE(0, wfd, wbuf, sizeof(wbuf)); in setup()
|
D | write03.c | 25 static char wbuf[BUFSIZ], rbuf[BUFSIZ]; variable 32 SAFE_WRITE(1, fd, wbuf, 100); in verify_write() 48 if (memcmp(wbuf, rbuf, 100) == 0) in verify_write() 61 memset(wbuf, '0', 100); in setup()
|
/third_party/ejdb/src/jbr/ |
D | jbr.c | 46 IWXSTR *wbuf; member 112 IWXSTR *wbuf = rctx->wbuf; in _jbr_flush_chunk() local 114 assert(wbuf); in _jbr_flush_chunk() 125 if (!finish && (iwxstr_size(wbuf) < JBR_HTTP_CHUNK_SIZE)) { in _jbr_flush_chunk() 129 if (iwxstr_size(wbuf) > 0) { in _jbr_flush_chunk() 130 int sz = snprintf(nbuf, JBNUMBUF_SIZE, "%zX\r\n", iwxstr_size(wbuf)); in _jbr_flush_chunk() 135 if (fio_write(uuid, iwxstr_ptr(wbuf), iwxstr_size(wbuf)) < 0) { in _jbr_flush_chunk() 143 iwxstr_clear(wbuf); in _jbr_flush_chunk() 158 IWXSTR *wbuf = rctx->wbuf; in _jbr_query_visitor() local 159 if (!wbuf) { in _jbr_query_visitor() [all …]
|
/third_party/musl/src/multibyte/ |
D | mbsnrtowcs.c | 6 wchar_t *ws, wbuf[256]; in mbsnrtowcs() local 10 if (!wcs) ws = wbuf, wn = sizeof wbuf / sizeof *wbuf; in mbsnrtowcs() 26 if (ws != wbuf) { in mbsnrtowcs()
|
/third_party/ltp/testcases/kernel/syscalls/fallocate/ |
D | fallocate06.c | 61 static char *wbuf, *rbuf; variable 127 wbuf = SAFE_MALLOC(wbuf_size); in setup() 132 wbuf[i] = ch; in setup() 187 SAFE_WRITE(1, fd, wbuf, size); in run() 208 TEST(write(fd, wbuf, size)); in run() 237 err = err || memcmp(rbuf, wbuf, offset); in run() 240 err = err || memcmp(rbuf + offset, wbuf + offset, size); in run() 255 free(wbuf); in cleanup()
|
/third_party/musl/src/time/ |
D | wcsftime.c | 11 wchar_t wbuf[100]; in __wcsftime_l() local 40 k = mbstowcs(wbuf, t_mb, sizeof wbuf / sizeof *wbuf); in __wcsftime_l() 42 t = wbuf; in __wcsftime_l()
|
/third_party/pulseaudio/src/pulsecore/ |
D | ioline.c | 50 char *wbuf; member 77 l->wbuf = NULL; in pa_ioline_new() 111 pa_xfree(l->wbuf); in ioline_free() 174 if (l->wbuf) { in pa_ioline_puts() 175 memcpy(new, l->wbuf+l->wbuf_index, l->wbuf_valid_length); in pa_ioline_puts() 176 pa_xfree(l->wbuf); in pa_ioline_puts() 179 l->wbuf = new; in pa_ioline_puts() 185 memmove(l->wbuf, l->wbuf+l->wbuf_index, l->wbuf_valid_length); in pa_ioline_puts() 192 memcpy(l->wbuf + l->wbuf_index + l->wbuf_valid_length, c, len); in pa_ioline_puts() 352 if ((r = pa_iochannel_write(l->io, l->wbuf+l->wbuf_index, l->wbuf_valid_length)) < 0) { in do_write()
|
/third_party/nghttp2/src/ |
D | shrpx_connection.cc | 118 tls.wbuf.reset(); in disconnect() 166 auto &wbuf = conn->tls.wbuf; in shrpx_bio_write() local 178 if (wbuf.rleft()) { in shrpx_bio_write() 194 wbuf.append(buf, len); in shrpx_bio_write() 363 tls.wbuf.reset(); in tls_handshake() 415 tls.wbuf.rleft()) && in tls_handshake() 438 tls.wbuf.rleft()) && in tls_handshake() 473 auto iovcnt = tls.wbuf.riovec(iov, 1); in tls_handshake() 476 tls.wbuf.drain(nwrite); in tls_handshake() 499 if (rv != 1 && tls.wbuf.rleft()) { in tls_handshake() [all …]
|
/third_party/ltp/testcases/kernel/fs/doio/ |
D | write_log.c | 197 char wbuf[WLOG_REC_MAX_SIZE + 2]; in wlog_record_write() local 207 reclen = wlog_rec_pack(wrec, wbuf, (offset < 0)); in wlog_record_write() 216 wbuf[reclen] = reclen / 256; in wlog_record_write() 217 wbuf[reclen + 1] = reclen % 256; in wlog_record_write() 220 if (write(wfile->w_afd, wbuf, reclen) == -1) { in wlog_record_write() 223 wfile->w_file, wbuf, reclen, strerror(errno)); in wlog_record_write() 241 if ((write(wfile->w_rfd, wbuf, reclen)) == -1) { in wlog_record_write() 244 wfile->w_file, wbuf, reclen, in wlog_record_write()
|
/third_party/glib/gio/tests/ |
D | stream-rw_all.c | 161 gchar wbuf[100] = { 0, }; in test_read_write_all_async_pipe() local 179 s = g_output_stream_write (out, wbuf, sizeof wbuf, NULL, &error); in test_read_write_all_async_pipe() 208 s = g_input_stream_read (in, rbuf, MIN (sizeof wbuf, in_flight), NULL, &error); in test_read_write_all_async_pipe() 227 g_output_stream_write_all (out, wbuf, sizeof wbuf, 0, NULL, &error); in test_read_write_all_async_pipe()
|
/third_party/python/Modules/_io/ |
D | winconsoleio.c | 153 wchar_t wbuf; member 674 wchar_t *wbuf = read_console_w(handle, wlen, &n); in readinto() local 675 if (wbuf == NULL) in readinto() 678 PyMem_Free(wbuf); in readinto() 687 if (WideCharToMultiByte(CP_UTF8, 0, wbuf, n, in readinto() 692 u8n = WideCharToMultiByte(CP_UTF8, 0, wbuf, n, in readinto() 705 u8n = WideCharToMultiByte(CP_UTF8, 0, wbuf, n, in readinto() 711 PyMem_Free(wbuf); in readinto() 958 wchar_t *wbuf; in _io__WindowsConsoleIO_write_impl() local 996 wbuf = (wchar_t*)PyMem_Malloc(wlen * sizeof(wchar_t)); in _io__WindowsConsoleIO_write_impl() [all …]
|
/third_party/optimized-routines/string/test/ |
D | memmove.c | 41 static unsigned char wbuf[LEN + 2 * A]; variable 54 unsigned char *want = wbuf; in test() 94 unsigned char *want = wbuf; in test_overlap() 97 unsigned char *w = wbuf + dalign; in test_overlap()
|
D | memcpy.c | 43 static unsigned char wbuf[LEN + 2 * A]; variable 56 unsigned char *want = wbuf; in test()
|
D | stpcpy.c | 46 static char wbuf[LEN + 3 * ALIGN]; variable 59 char *want = wbuf; in test()
|
D | strcpy.c | 44 static char wbuf[LEN + 3 * ALIGN]; variable 57 char *want = wbuf; in test()
|
/third_party/iowow/src/utils/ |
D | iwpool.c | 140 char *wbuf = iwpool_alloc(size, pool); in _iwpool_printf_va() local 141 if (!wbuf) { in _iwpool_printf_va() 144 vsnprintf(wbuf, size, format, ap); in _iwpool_printf_va() 145 return wbuf; in _iwpool_printf_va()
|
/third_party/ltp/testcases/kernel/fs/fs-bench/ |
D | create-files.c | 15 char wbuf[MAXFSIZE]; variable 112 if (write(fd, wbuf, randomsize) < 0) { in create_file()
|
D | random-del-create.c | 96 char wbuf[MAXFSIZE]; in create_file() local 104 if (write(fd, wbuf, randomsize) < 0) { in create_file()
|
D | random-access-del-create.c | 98 char wbuf[MAXFSIZE]; in create_file() local 106 if (write(fd, wbuf, randomsize) < 0) { in create_file()
|
/third_party/curl/lib/ |
D | strerror.c | 661 wchar_t wbuf[256]; in get_winapi_error() local 667 *wbuf = L'\0'; in get_winapi_error() 675 LANG_NEUTRAL, wbuf, sizeof(wbuf)/sizeof(wchar_t), NULL)) { in get_winapi_error() 676 size_t written = wcstombs(buf, wbuf, buflen - 1); in get_winapi_error()
|
/third_party/openssl/ssl/ |
D | d1_lib.c | 452 unsigned char *buf, *wbuf; in DTLSv1_listen() local 495 wbuf = RECORD_LAYER_get_wbuf(&s->rlayer)[0].buf; in DTLSv1_listen() 715 wbuf, in DTLSv1_listen() 776 memcpy(&wbuf[DTLS1_RT_HEADER_LENGTH + 1], in DTLSv1_listen() 777 &wbuf[DTLS1_RT_HEADER_LENGTH + DTLS1_HM_HEADER_LENGTH - 3], in DTLSv1_listen() 801 if (BIO_write(wbio, wbuf, wreclen) < (int)wreclen) { in DTLSv1_listen()
|