/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 | 73 char wbuf[BUFSIZ], rbuf[BUFSIZ]; in main() local 97 (void)memset(wbuf, '0', 100); in main() 99 if (write(fd, wbuf, 100) == -1) { in main() 120 if (memcmp(wbuf, rbuf, 100) == 0) { in main()
|
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/curl/lib/ |
D | strerror.c | 646 wchar_t wbuf[256]; in Curl_strerror() local 647 wbuf[0] = L'\0'; in Curl_strerror() 650 LANG_NEUTRAL, wbuf, sizeof(wbuf)/sizeof(wchar_t), NULL); in Curl_strerror() 651 wcstombs(buf, wbuf, max); in Curl_strerror() 1016 wchar_t wbuf[256]; in Curl_sspi_strerror() local 1017 wbuf[0] = L'\0'; in Curl_sspi_strerror() 1022 wbuf, sizeof(wbuf)/sizeof(wchar_t), NULL)) { in Curl_sspi_strerror() 1023 wcstombs(msgbuf, wbuf, sizeof(msgbuf)-1); in Curl_sspi_strerror()
|
/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/ltp/testcases/kernel/fs/fs-bench/ |
D | random-del-create.c | 96 char wbuf[MAXFSIZE]; in create_file() local 104 if (write(fd, wbuf, randomsize) < 0) { in create_file()
|
D | create-files.c | 15 char wbuf[MAXFSIZE]; variable 112 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/libcxx/src/ |
D | locale.cpp | 4943 wchar_t wbuf[100]; in __analyze() local 4944 wchar_t* wbb = wbuf; in __analyze() 4947 size_t j = __libcpp_mbsrtowcs_l( wbb, &bb, countof(wbuf), &mb, __loc_); in __analyze() 5117 wchar_t wbuf[100]; in init() local 5127 size_t j = __libcpp_mbsrtowcs_l(wbuf, &bb, countof(wbuf), &mb, __loc_); in init() 5130 wbe = wbuf + j; in init() 5131 __weeks_[i].assign(wbuf, wbe); in init() 5135 j = __libcpp_mbsrtowcs_l(wbuf, &bb, countof(wbuf), &mb, __loc_); in init() 5138 wbe = wbuf + j; in init() 5139 __weeks_[i+7].assign(wbuf, wbe); in init() [all …]
|
/external/mdnsresponder/mDNSWindows/ |
D | mDNSWin32.h | 39 WSABUF wbuf; member
|
D | mDNSWin32.c | 1349 sock->overlapped.wbuf.buf = ( char* ) sock->eptr; in TCPBeginRecv() 1350 sock->overlapped.wbuf.len = ( ULONG) ( sock->ebuf - sock->eptr ); in TCPBeginRecv() 1352 …err = WSARecv( sock->fd, &sock->overlapped.wbuf, 1, &bytesReceived, &flags, &sock->overlapped.data… in TCPBeginRecv() 3183 sock->overlapped.wbuf.buf = (char *) &sock->packet; in UDPBeginRecv() 3184 sock->overlapped.wbuf.len = (u_long) sizeof( sock->packet ); in UDPBeginRecv() 3200 sock->wmsg.lpBuffers = &sock->overlapped.wbuf; in UDPBeginRecv() 3222 …err = WSARecvFrom( sock->fd, &sock->overlapped.wbuf, 1, NULL, &flags, ( LPSOCKADDR ) &sock->srcAdd… in UDPBeginRecv()
|
/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/mksh/src/ |
D | edit.c | 973 static char *wbuf[2]; /* window buffers */ variable 3555 wbuf[0] = aresize(wbuf[0], wbuf_len, AEDIT); in x_vi() 3556 wbuf[1] = aresize(wbuf[1], wbuf_len, AEDIT); in x_vi() 3559 memset(wbuf[0], ' ', wbuf_len); in x_vi() 3560 memset(wbuf[1], ' ', wbuf_len); in x_vi() 5099 memset(wbuf[win], ' ', wbuf_len); in redraw_line() 5117 display(wbuf[1 - win], wbuf[win], leftside); in refresh()
|
/external/wpa_supplicant_8/src/wps/ |
D | wps_registrar.c | 1575 struct wpabuf *wbuf; in wps_build_credential_wrap() local 1576 wbuf = wpabuf_alloc(200); in wps_build_credential_wrap() 1577 if (wbuf == NULL) in wps_build_credential_wrap() 1579 if (wps_build_credential(wbuf, cred)) { in wps_build_credential_wrap() 1580 wpabuf_clear_free(wbuf); in wps_build_credential_wrap() 1584 wpabuf_put_be16(msg, wpabuf_len(wbuf)); in wps_build_credential_wrap() 1585 wpabuf_put_buf(msg, wbuf); in wps_build_credential_wrap() 1586 wpabuf_clear_free(wbuf); in wps_build_credential_wrap()
|
/external/python/cpython2/Modules/ |
D | posixmodule.c | 2217 wchar_t wbuf[1026]; in posix_getcwdu() local 2218 wchar_t *wbuf2 = wbuf; in posix_getcwdu() 2221 len = GetCurrentDirectoryW(sizeof wbuf/ sizeof wbuf[0], wbuf); in posix_getcwdu() 2225 if (len >= sizeof wbuf/ sizeof wbuf[0]) { in posix_getcwdu() 2236 if (wbuf2 != wbuf) free(wbuf2); in posix_getcwdu() 2240 if (wbuf2 != wbuf) free(wbuf2); in posix_getcwdu()
|
/external/wpa_supplicant_8/src/crypto/ |
D | tls_openssl.c | 453 unsigned short wbuf[255]; in cryptoapi_find_cert() local 454 MultiByteToWideChar(CP_ACP, 0, name + 7, -1, wbuf, 255); in cryptoapi_find_cert() 458 wbuf, NULL); in cryptoapi_find_cert()
|