Home
last modified time | relevance | path

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

12

/third_party/python/Parser/
Dmyreadline.c122 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/
Dwin_iconv.c91 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/
Dwllinuxdmabuf.c38 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()
Dgstwaylandsink.c703 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/
Dwrite04.c31 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()
Dwrite03.c25 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/
Djbr.c46 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/
Dmbsnrtowcs.c6 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/
Dfallocate06.c61 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/
Dwcsftime.c11 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/
Dioline.c50 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/
Dshrpx_connection.cc118 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/
Dwrite_log.c197 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/
Dstream-rw_all.c161 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/
Dwinconsoleio.c153 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/
Dmemmove.c41 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()
Dmemcpy.c43 static unsigned char wbuf[LEN + 2 * A]; variable
56 unsigned char *want = wbuf; in test()
Dstpcpy.c46 static char wbuf[LEN + 3 * ALIGN]; variable
59 char *want = wbuf; in test()
Dstrcpy.c44 static char wbuf[LEN + 3 * ALIGN]; variable
57 char *want = wbuf; in test()
/third_party/iowow/src/utils/
Diwpool.c140 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/
Dcreate-files.c15 char wbuf[MAXFSIZE]; variable
112 if (write(fd, wbuf, randomsize) < 0) { in create_file()
Drandom-del-create.c96 char wbuf[MAXFSIZE]; in create_file() local
104 if (write(fd, wbuf, randomsize) < 0) { in create_file()
Drandom-access-del-create.c98 char wbuf[MAXFSIZE]; in create_file() local
106 if (write(fd, wbuf, randomsize) < 0) { in create_file()
/third_party/curl/lib/
Dstrerror.c661 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/
Dd1_lib.c452 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()

12