/external/python/cpython3/Parser/ |
D | myreadline.c | 113 wchar_t *wbuf; in _PyOS_WindowsConsoleReadline() local 119 wbuf = wbuf_local; in _PyOS_WindowsConsoleReadline() 122 if (!ReadConsoleW(hStdIn, &wbuf[total_read], wbuflen - total_read, &n_read, NULL)) { in _PyOS_WindowsConsoleReadline() 150 if (total_read == 0 || wbuf[total_read - 1] == L'\n') { in _PyOS_WindowsConsoleReadline() 154 if (wbuf == wbuf_local) { in _PyOS_WindowsConsoleReadline() 155 wbuf[total_read] = '\0'; in _PyOS_WindowsConsoleReadline() 156 wbuf = (wchar_t*)PyMem_RawMalloc(wbuflen * sizeof(wchar_t)); in _PyOS_WindowsConsoleReadline() 157 if (wbuf) in _PyOS_WindowsConsoleReadline() 158 wcscpy_s(wbuf, wbuflen, wbuf_local); in _PyOS_WindowsConsoleReadline() 161 wbuf = (wchar_t*)PyMem_RawRealloc(wbuf, wbuflen * sizeof(wchar_t)); in _PyOS_WindowsConsoleReadline() [all …]
|
/external/ltp/testcases/kernel/syscalls/pwrite/ |
D | pwrite04.c | 70 char *wbuf[NBUFS]; in main() local 82 init_buffers(wbuf); in main() 93 if ((nbytes = pwrite(fd, wbuf[0], K1, 0)) != K1) { in main() 113 if ((nbytes = pwrite(fd, wbuf[2], K1, K2)) != K1) { in main() 134 if ((nbytes = write(fd, wbuf[3], K1)) != K1) { in main() 148 if ((nbytes = pwrite(fd, wbuf[1], K1, K1)) != K1) { in main() 187 if ((nbytes = pwrite(fd, wbuf[0], K1, 0)) != K1) { in main() 222 void init_buffers(char *wbuf[]) in init_buffers() argument 227 wbuf[i] = malloc(K1); in init_buffers() 228 if (wbuf[i] == NULL) { in init_buffers() [all …]
|
/external/ltp/testcases/kernel/syscalls/exit/ |
D | exit02.c | 70 char wbuf[BUFSIZ], rbuf[BUFSIZ]; in main() local 91 strcpy(wbuf, "abcd"); in main() 92 len = strlen(wbuf); in main() 106 if (write(filed, wbuf, len) != len) { in main() 162 } else if (strncmp(rbuf, wbuf, len) != 0) { in main()
|
/external/ltp/testcases/kernel/syscalls/write/ |
D | write03.c | 38 static char wbuf[BUFSIZ], rbuf[BUFSIZ]; variable 45 SAFE_WRITE(1, fd, wbuf, 100); in verify_write() 61 if (memcmp(wbuf, rbuf, 100) == 0) in verify_write() 74 memset(wbuf, '0', 100); in setup()
|
D | write04.c | 76 char wbuf[17 * PIPE_SIZE_TEST]; in main() local 118 (void)memset((void *)wbuf, 'A', 17 * PIPE_SIZE_TEST); in main() 158 cnt = write(wfd, wbuf, 17 * PIPE_SIZE_TEST); in main() 173 cnt = write(wfd, wbuf, 8 * PIPE_SIZE_TEST); in main()
|
/external/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()
|
/external/curl/lib/ |
D | strerror.c | 666 wchar_t wbuf[256]; in Curl_strerror() local 667 wbuf[0] = L'\0'; in Curl_strerror() 670 LANG_NEUTRAL, wbuf, sizeof(wbuf)/sizeof(wchar_t), NULL); in Curl_strerror() 671 wcstombs(buf, wbuf, max); in Curl_strerror() 1044 wchar_t wbuf[256]; in Curl_sspi_strerror() local 1045 wbuf[0] = L'\0'; in Curl_sspi_strerror() 1050 wbuf, sizeof(wbuf)/sizeof(wchar_t), NULL)) { in Curl_sspi_strerror() 1051 wcstombs(msgbuf, wbuf, sizeof(msgbuf)-1); in Curl_sspi_strerror()
|
/external/libevent/test/ |
D | regress_iocp.c | 211 static struct evbuffer *rbuf = NULL, *wbuf = NULL; variable 229 evbuffer_commit_write_(wbuf, nbytes); in write_complete() 254 wbuf = evbuffer_overlapped_new_(data->pair[1]); in test_iocp_evbuffer() 256 evbuffer_enable_locking(wbuf, NULL); in test_iocp_evbuffer() 261 tt_assert(wbuf); in test_iocp_evbuffer() 267 evbuffer_add(wbuf, junk, sizeof(junk)); in test_iocp_evbuffer() 278 tt_assert(!evbuffer_launch_write_(wbuf, 512, &wol)); in test_iocp_evbuffer() 290 evbuffer_free(wbuf); in test_iocp_evbuffer()
|
D | regress.c | 85 static char wbuf[4096]; variable 185 if (woff + len >= (int)sizeof(wbuf)) in multiple_write_cb() 186 len = sizeof(wbuf) - woff; in multiple_write_cb() 188 len = write(fd, wbuf + woff, len); in multiple_write_cb() 198 if (woff >= (int)sizeof(wbuf)) { in multiple_write_cb() 484 for (i = 0; i < (int)sizeof(wbuf); i++) in test_multiple() 485 wbuf[i] = i; in test_multiple() 499 test_ok = memcmp(rbuf, wbuf, sizeof(wbuf)) == 0; in test_multiple() 513 for (i = 0; i < (int)sizeof(wbuf); i++) in test_persistent() 514 wbuf[i] = i; in test_persistent() [all …]
|
/external/python/cpython3/Modules/_io/ |
D | winconsoleio.c | 163 wchar_t wbuf; member 707 wchar_t *wbuf = read_console_w(self->handle, wlen, &n); in readinto() local 708 if (wbuf == NULL) in readinto() 711 PyMem_Free(wbuf); in readinto() 720 if (WideCharToMultiByte(CP_UTF8, 0, wbuf, n, in readinto() 725 u8n = WideCharToMultiByte(CP_UTF8, 0, wbuf, n, in readinto() 738 u8n = WideCharToMultiByte(CP_UTF8, 0, wbuf, n, in readinto() 744 PyMem_Free(wbuf); in readinto() 984 wchar_t *wbuf; in _io__WindowsConsoleIO_write_impl() local 1014 wbuf = (wchar_t*)PyMem_Malloc(wlen * sizeof(wchar_t)); in _io__WindowsConsoleIO_write_impl() [all …]
|
/external/libcxx/src/ |
D | locale.cpp | 4954 wchar_t wbuf[100]; in __analyze() local 4955 wchar_t* wbb = wbuf; in __analyze() 4958 size_t j = __libcpp_mbsrtowcs_l( wbb, &bb, countof(wbuf), &mb, __loc_); in __analyze() 5128 wchar_t wbuf[100]; in init() local 5138 size_t j = __libcpp_mbsrtowcs_l(wbuf, &bb, countof(wbuf), &mb, __loc_); in init() 5141 wbe = wbuf + j; in init() 5142 __weeks_[i].assign(wbuf, wbe); in init() 5146 j = __libcpp_mbsrtowcs_l(wbuf, &bb, countof(wbuf), &mb, __loc_); in init() 5149 wbe = wbuf + j; in init() 5150 __weeks_[i+7].assign(wbuf, wbe); in init() [all …]
|
/external/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()
|
/external/python/cpython3/Modules/ |
D | getpath.c | 587 wchar_t* wbuf = Py_DecodeLocale(modPath, NULL); in calculate_path() local 588 if (wbuf == NULL) { in calculate_path() 592 wcsncpy(argv0_path, wbuf, MAXPATHLEN); in calculate_path() 603 wcsncpy(argv0_path, wbuf, MAXPATHLEN); in calculate_path() 605 PyMem_RawFree(wbuf); in calculate_path()
|
D | main.c | 679 wchar_t* wbuf = Py_DecodeLocale(pyvenv_launcher, NULL); in Py_Main() local 681 if (wbuf == NULL) { in Py_Main() 684 Py_SetProgramName(wbuf); in Py_Main()
|
/external/python/cpython3/Python/ |
D | fileutils.c | 1345 wchar_t *wbuf; in _Py_wreadlink() local 1363 wbuf = Py_DecodeLocale(cbuf, &r1); in _Py_wreadlink() 1364 if (wbuf == NULL) { in _Py_wreadlink() 1369 PyMem_RawFree(wbuf); in _Py_wreadlink() 1373 wcsncpy(buf, wbuf, bufsiz); in _Py_wreadlink() 1374 PyMem_RawFree(wbuf); in _Py_wreadlink()
|
/external/mdnsresponder/mDNSWindows/ |
D | mDNSWin32.h | 39 WSABUF wbuf; member
|
/external/ltp/testcases/kernel/fs/scsi/ltpfs/ |
D | main.c | 36 char wbuf[MAXFSIZE]; variable 348 if (write(fileHandle, wbuf, randomsize) < 0) { in create_file()
|
/external/libusb/libusb/ |
D | core.c | 2323 WCHAR wbuf[USBI_MAX_LOG_LEN]; in usbi_log_str() local 2324 MultiByteToWideChar(CP_UTF8, 0, str, -1, wbuf, sizeof(wbuf)); in usbi_log_str() 2325 OutputDebugStringW(wbuf); in usbi_log_str()
|
/external/libedit/src/ |
D | readline.c | 1942 char *wbuf; in rl_callback_read_char() local 1954 if ((wbuf = strdup(buf)) != NULL) in rl_callback_read_char() 1955 wbuf[count] = '\0'; in rl_callback_read_char() 1957 wbuf = NULL; in rl_callback_read_char() 1958 (*(void (*)(const char *))rl_linefunc)(wbuf); in rl_callback_read_char()
|
/external/libvncserver/libvncserver/ |
D | rfbserver.c | 3405 char *wbuf = buf; in rfbSendSetColourMapEntries() local 3413 wbuf = (char *) malloc(sz_rfbSetColourMapEntriesMsg + nColours * 3 * 2); in rfbSendSetColourMapEntries() 3416 scme = (rfbSetColourMapEntriesMsg *)wbuf; in rfbSendSetColourMapEntries() 3417 rgb = (uint16_t *)(&wbuf[sz_rfbSetColourMapEntriesMsg]); in rfbSendSetColourMapEntries() 3443 if (rfbWriteExact(cl, wbuf, len) < 0) { in rfbSendSetColourMapEntries() 3446 if (wbuf != buf) free(wbuf); in rfbSendSetColourMapEntries() 3453 if (wbuf != buf) free(wbuf); in rfbSendSetColourMapEntries()
|
/external/wpa_supplicant_8/src/wps/ |
D | wps_registrar.c | 1576 struct wpabuf *wbuf; in wps_build_credential_wrap() local 1577 wbuf = wpabuf_alloc(200); in wps_build_credential_wrap() 1578 if (wbuf == NULL) in wps_build_credential_wrap() 1580 if (wps_build_credential(wbuf, cred)) { in wps_build_credential_wrap() 1581 wpabuf_clear_free(wbuf); in wps_build_credential_wrap() 1585 wpabuf_put_be16(msg, wpabuf_len(wbuf)); in wps_build_credential_wrap() 1586 wpabuf_put_buf(msg, wbuf); in wps_build_credential_wrap() 1587 wpabuf_clear_free(wbuf); in wps_build_credential_wrap()
|
/external/mksh/src/ |
D | edit.c | 968 static char *wbuf[2]; /* window buffers */ variable 3571 wbuf[0] = aresize(wbuf[0], wbuf_len, AEDIT); in x_vi() 3572 wbuf[1] = aresize(wbuf[1], wbuf_len, AEDIT); in x_vi() 3575 memset(wbuf[0], ' ', wbuf_len); in x_vi() 3576 memset(wbuf[1], ' ', wbuf_len); in x_vi() 5118 memset(wbuf[win], ' ', wbuf_len); in redraw_line() 5136 display(wbuf[1 - win], wbuf[win], leftside); in refresh()
|
/external/python/cpython3/Objects/ |
D | memoryobject.c | 2723 Py_buffer wbuf, *vv; in memory_richcompare() local 2748 if (PyObject_GetBuffer(w, &wbuf, PyBUF_FULL_RO) < 0) { in memory_richcompare() 2752 ww = &wbuf; in memory_richcompare() 2813 if (ww == &wbuf) in memory_richcompare()
|