Home
last modified time | relevance | path

Searched refs:wbuf (Results 1 – 25 of 47) 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/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/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/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/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/rust/crates/nix/test/sys/
Dtest_aio.rs302 let wbuf = vec![0; 4]; in test_accessors() localVariable
306 &wbuf, in test_accessors()
328 let wbuf: &[u8] = b"CDEF"; in cancel() localVariable
334 wbuf, in cancel()
355 let wbuf = "CDEF".to_string().into_bytes(); in ok() localVariable
364 &wbuf, in ok()
372 assert_eq!(aiow.as_mut().aio_return().unwrap(), wbuf.len()); in ok()
385 let wbuf = "CDEF".to_string().into_bytes(); in on_stack() localVariable
394 &wbuf, in on_stack()
403 assert_eq!(aiow.as_mut().aio_return().unwrap(), wbuf.len()); in on_stack()
[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/musl/porting/linux/user/src/stdio/
D__stdio_write.c30 unsigned char *wbuf = (unsigned char *)buf; in __stdio_write() local
40 memcpy(f->wpos, wbuf, rem); in __stdio_write()
49 cnt = syscall(SYS_write, f->fd, wbuf, rem); in __stdio_write()
57 wbuf += cnt; in __stdio_write()
/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/nghttp2/src/
Dshrpx_connection.cc125 tls.wbuf.reset(); in disconnect()
180 auto &wbuf = conn->tls.wbuf; in shrpx_bio_write() local
192 if (wbuf.rleft()) { in shrpx_bio_write()
208 wbuf.append(buf, len); in shrpx_bio_write()
379 tls.wbuf.reset(); in tls_handshake()
430 tls.wbuf.rleft()) && in tls_handshake()
453 tls.wbuf.rleft()) && in tls_handshake()
488 auto iovcnt = tls.wbuf.riovec(iov, 1); in tls_handshake()
491 tls.wbuf.drain(nwrite); in tls_handshake()
519 tls.wbuf.rleft()) { in tls_handshake()
[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()
Dstrcpy.c44 static char wbuf[LEN + 3 * ALIGN]; variable
57 char *want = wbuf; in test()
/third_party/iowow/src/utils/
Diwpool.c150 char *wbuf = iwpool_alloc(size, pool); in _iwpool_printf_va() local
151 if (!wbuf) { in _iwpool_printf_va()
154 vsnprintf(wbuf, size, format, ap); in _iwpool_printf_va()
155 return wbuf; in _iwpool_printf_va()
/third_party/ltp/testcases/kernel/fs/fs-bench/
Drandom-del-create.c96 char wbuf[MAXFSIZE]; in create_file() local
104 if (write(fd, wbuf, randomsize) < 0) { in create_file()
Dcreate-files.c15 char wbuf[MAXFSIZE]; variable
112 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/openssl/ssl/
Dd1_lib.c446 unsigned char *buf, *wbuf; in DTLSv1_listen() local
489 wbuf = RECORD_LAYER_get_wbuf(&s->rlayer)[0].buf; in DTLSv1_listen()
709 wbuf, in DTLSv1_listen()
770 memcpy(&wbuf[DTLS1_RT_HEADER_LENGTH + 1], in DTLSv1_listen()
771 &wbuf[DTLS1_RT_HEADER_LENGTH + DTLS1_HM_HEADER_LENGTH - 3], in DTLSv1_listen()
794 if (BIO_write(wbio, wbuf, wreclen) < (int)wreclen) { in DTLSv1_listen()
/third_party/openssl/ssl/record/
Drec_layer_s3.c98 && SSL3_BUFFER_get_left(&rl->wbuf[rl->numwpipes - 1]) != 0; in RECORD_LAYER_write_pending()
370 SSL3_BUFFER *wb = &s->rlayer.wbuf[0]; in ssl3_write_bytes()
786 SSL3_BUFFER_set_buf(&s->rlayer.wbuf[0], (unsigned char *)buf); in do_ssl3_write()
787 SSL3_BUFFER_set_offset(&s->rlayer.wbuf[0], 0); in do_ssl3_write()
788 SSL3_BUFFER_set_app_buffer(&s->rlayer.wbuf[0], 1); in do_ssl3_write()
793 wb = &s->rlayer.wbuf[0]; in do_ssl3_write()
812 wb = &s->rlayer.wbuf[0]; in do_ssl3_write()
826 wb = &s->rlayer.wbuf[j]; in do_ssl3_write()
1149 SSL3_BUFFER_set_left(&s->rlayer.wbuf[j], in do_ssl3_write()
1178 SSL3_BUFFER *wb = s->rlayer.wbuf; in ssl3_write_pending()
/third_party/ejdb/src/jbr/
Djbr.c47 IWXSTR *wbuf; member
797 if (!mctx->wbuf) { in _ws_query_visitor()
798 RCA(mctx->wbuf = iwxstr_new2(512), finish); in _ws_query_visitor()
800 iwxstr_clear(mctx->wbuf); in _ws_query_visitor()
807 RCC(rc, finish, iwxstr_printf(mctx->wbuf, "%s\t%" PRId64 "\t", mctx->key, doc->id)); in _ws_query_visitor()
809 RCC(rc, finish, jbn_as_json(doc->node, jbl_xstr_json_printer, mctx->wbuf, 0)); in _ws_query_visitor()
811 RCC(rc, finish, jbl_as_json(doc->raw, jbl_xstr_json_printer, mctx->wbuf, 0)); in _ws_query_visitor()
813 if (!iwn_ws_server_write(mctx->ctx->ws, iwxstr_ptr(mctx->wbuf), iwxstr_size(mctx->wbuf))) { in _ws_query_visitor()
1043 iwxstr_destroy(mctx.wbuf); in _on_ws_msg()
/third_party/alsa-lib/src/pcm/
Dpcm_file.c84 char *wbuf; member
439 err = safe_write(file->fd, file->wbuf + file->file_ptr_bytes, n); in snd_pcm_file_write_bytes()
740 free(file->wbuf); in snd_pcm_file_hw_free()
744 file->wbuf = NULL; in snd_pcm_file_hw_free()
764 assert(!file->wbuf); in snd_pcm_file_hw_params()
765 file->wbuf = malloc(file->wbuf_size_bytes); in snd_pcm_file_hw_params()
766 if (file->wbuf == NULL) { in snd_pcm_file_hw_params()
787 a->addr = file->wbuf; in snd_pcm_file_hw_params()

12