/external/ltp/testcases/kernel/syscalls/pwrite/ |
D | pwrite01.c | 105 int nwrite; /* no. of bytes written by pwrite() */ in main() local 119 nwrite = pwrite(fildes, write_buf[0], K1, 0); in main() 122 if (nwrite != K1) { in main() 141 nwrite = pwrite(fildes, write_buf[2], K1, K2); in main() 142 if (nwrite != K1) { in main() 160 nwrite = write(fildes, write_buf[3], K1); in main() 161 if (nwrite != K1) { in main() 163 "%s", nwrite, errno, strerror(errno)); in main() 171 nwrite = pwrite(fildes, write_buf[1], K1, K1); in main() 172 if (nwrite != K1) { in main()
|
/external/libevent/test/ |
D | regress_zlib.c | 136 int nread, nwrite; in zlib_input_filter() local 161 nwrite = v_out[0].iov_len - p->avail_out; in zlib_input_filter() 164 v_out[0].iov_len = nwrite; in zlib_input_filter() 171 if (nwrite == 0) in zlib_input_filter() 190 int nread, nwrite; in zlib_output_filter() local 215 nwrite = v_out[0].iov_len - p->avail_out; in zlib_output_filter() 218 v_out[0].iov_len = nwrite; in zlib_output_filter() 225 if (nwrite == 0) in zlib_output_filter()
|
/external/libevent/ |
D | evmap.c | 62 ev_uint16_t nwrite; member 265 entry->nwrite = 0; in evmap_io_init() 278 int nread, nwrite, nclose, retval = 0; in evmap_io_add_() local 297 nwrite = ctx->nwrite; in evmap_io_add_() 302 if (nwrite) in evmap_io_add_() 312 if (++nwrite == 1) in evmap_io_add_() 319 if (EVUTIL_UNLIKELY(nread > 0xffff || nwrite > 0xffff || nclose > 0xffff)) { in evmap_io_add_() 344 ctx->nwrite = (ev_uint16_t) nwrite; in evmap_io_add_() 359 int nread, nwrite, nclose, retval = 0; in evmap_io_del_() local 375 nwrite = ctx->nwrite; in evmap_io_del_() [all …]
|
/external/ImageMagick/coders/ |
D | sixel.c | 602 static void sixel_advance(sixel_output_t *context, int nwrite) in sixel_advance() argument 604 if ((context->pos += nwrite) >= SIXEL_OUTPUT_PACKET_SIZE) { in sixel_advance() 615 int nwrite; in sixel_put_flash() local 619 nwrite = spritf((char *)context->buffer + context->pos, "!255%c", context->save_pixel); in sixel_put_flash() 620 if (nwrite <= 0) { in sixel_put_flash() 623 sixel_advance(context, nwrite); in sixel_put_flash() 630 …nwrite = sprintf((char *)context->buffer + context->pos, "!%d%c", context->save_count, context->sa… in sixel_put_flash() 631 if (nwrite <= 0) { in sixel_put_flash() 634 sixel_advance(context, nwrite); in sixel_put_flash() 690 int nwrite; in sixel_put_node() local [all …]
|
/external/ltp/testcases/kernel/syscalls/pread/ |
D | pread01.c | 192 int nwrite = 0; /* no. of bytes written by pwrite() */ in setup() local 210 if ((nwrite = pwrite(fildes, write_buf[0], K1, 0)) != K1) { in setup() 222 if ((nwrite = pwrite(fildes, write_buf[2], K1, K2)) != K1) { in setup() 238 if ((nwrite = write(fildes, write_buf[3], K1)) != K1) { in setup() 240 ": %s", nwrite, errno, strerror(errno)); in setup() 247 if ((nwrite = pwrite(fildes, write_buf[1], K1, K1)) != K1) { in setup()
|
/external/ltp/testcases/kernel/syscalls/msync/ |
D | msync01.c | 156 int c_total = 0, nwrite = 0; /* no. of bytes to be written */ in setup() local 171 nwrite = write(fildes, write_buf, sizeof(write_buf)); in setup() 172 if (nwrite <= 0) in setup() 175 c_total += nwrite; in setup()
|
D | msync02.c | 109 int c_total = 0, nwrite = 0; /* no. of bytes to be written */ in setup() local 126 if ((nwrite = write(fildes, tst_buf, sizeof(tst_buf))) <= 0) in setup() 129 c_total += nwrite; in setup()
|
D | msync03.c | 103 size_t nwrite = 0; in setup() local 118 while (nwrite < page_sz) { in setup() 120 nwrite += BUF_SIZE; in setup()
|
/external/rust/crates/csv/examples/ |
D | tutorial-perf-core-01.rs | 19 let (result, nread, nwrite) = rdr.read_field(data, &mut field); in run() 25 let field = &field[..nwrite]; in run()
|
/external/curl/tests/server/ |
D | socksd.c | 593 ssize_t nwrite; in tunnel() local 599 nwrite = send(cp->remotefd, (char *)buffer, in tunnel() 601 if(nwrite != nread) in tunnel() 603 cp->fromclient += nwrite; in tunnel() 612 nwrite = send(cp->clientfd, (char *)buffer, in tunnel() 614 if(nwrite != nread) in tunnel() 616 cp->fromremote += nwrite; in tunnel()
|
D | sockfilt.c | 275 ssize_t nwrite = 0; in fullwrite() local 278 ssize_t wc = write(filedes, (const unsigned char *)buffer + nwrite, in fullwrite() 279 nbytes - nwrite); in fullwrite() 301 nwrite += wc; in fullwrite() 303 } while((size_t)nwrite < nbytes); in fullwrite() 306 logmsg("wrote %zd bytes", nwrite); in fullwrite() 308 return nwrite; in fullwrite() 337 ssize_t nwrite = fullwrite(fileno(stdout), buffer, nbytes); in write_stdout() local 338 if(nwrite != (ssize_t)nbytes) { in write_stdout()
|
/external/curl/lib/vssh/ |
D | libssh2.c | 3064 ssize_t nwrite; in ssh_tls_send() local 3068 result = Curl_write(conn, sock, buffer, length, &nwrite); in ssh_tls_send() 3074 Curl_debug(conn->data, CURLINFO_DATA_OUT, (char *)buffer, (size_t)nwrite); in ssh_tls_send() 3075 return nwrite; in ssh_tls_send() 3344 ssize_t nwrite; in scp_send() local 3348 nwrite = (ssize_t) in scp_send() 3351 ssh_block2waitfor(conn, (nwrite == LIBSSH2_ERROR_EAGAIN)?TRUE:FALSE); in scp_send() 3353 if(nwrite == LIBSSH2_ERROR_EAGAIN) { in scp_send() 3355 nwrite = 0; in scp_send() 3357 else if(nwrite < LIBSSH2_ERROR_NONE) { in scp_send() [all …]
|
D | libssh.c | 2535 ssize_t nwrite; in sftp_send() local 2538 nwrite = sftp_write(conn->proto.sshc.sftp_file, mem, len); in sftp_send() 2543 if(nwrite == SSH_AGAIN) { in sftp_send() 2545 nwrite = 0; in sftp_send() 2549 if(nwrite < 0) { in sftp_send() 2551 nwrite = -1; in sftp_send() 2554 return nwrite; in sftp_send()
|
D | wolfssh.c | 212 ssize_t nwrite = 0; in wscp_send() local 219 return nwrite; in wscp_send()
|
/external/libchrome/base/message_loop/ |
D | message_pump_libevent.cc | 271 int nwrite = HANDLE_EINTR(write(wakeup_pipe_in_, &buf, 1)); in ScheduleWork() local 272 DCHECK(nwrite == 1 || errno == EAGAIN) in ScheduleWork() 273 << "[nwrite:" << nwrite << "] [errno:" << errno << "]"; in ScheduleWork()
|
/external/ltp/testcases/kernel/device-drivers/zram/ |
D | zram03.c | 188 static void print_stat(char *nread, char *nwrite) in print_stat() argument 196 tst_resm(TINFO, "%s from %s is %s", nwrite, PATH_ZRAM_STAT, in print_stat()
|
/external/curl/lib/ |
D | file.c | 308 size_t nwrite; in file_upload() local 336 nwrite = write(fd, buf2, nread); in file_upload() 337 if(nwrite != nread) { in file_upload()
|
/external/curl/lib/vquic/ |
D | ngtcp2.c | 447 ssize_t nwrite; in tp_send_func() local 451 nwrite = ngtcp2_encode_transport_params( in tp_send_func() 454 if(nwrite < 0) { in tp_send_func() 456 ngtcp2_strerror((int)nwrite))); in tp_send_func() 460 rc = gnutls_buffer_append_data(extdata, paramsbuf, nwrite); in tp_send_func() 464 return (int)nwrite; in tp_send_func()
|
/external/owasp/sanitizer/src/tests/org/owasp/html/ |
D | htmllexergolden1.txt | 119 SERVERCODE [<% # some php code here\nwrite("<pre>$horriblySyntacticConstruct1</pre>\\n\\n");\n%>] …
|