/external/ltp/testcases/kernel/syscalls/pwrite/ |
D | pwrite01.c | 104 int nwrite; /* no. of bytes written by pwrite() */ in main() local 118 nwrite = pwrite(fildes, write_buf[0], K1, 0); in main() 121 if (nwrite != K1) { in main() 140 nwrite = pwrite(fildes, write_buf[2], K1, K2); in main() 141 if (nwrite != K1) { in main() 159 nwrite = write(fildes, write_buf[3], K1); in main() 160 if (nwrite != K1) { in main() 162 "%s", nwrite, errno, strerror(errno)); in main() 170 nwrite = pwrite(fildes, write_buf[1], K1, K1); in main() 171 if (nwrite != K1) { in main()
|
/external/libevent/ |
D | evmap.c | 60 ev_uint16_t nwrite; member 256 entry->nwrite = 0; in evmap_io_init() 268 int nread, nwrite, retval = 0; in evmap_io_add() local 287 nwrite = ctx->nwrite; in evmap_io_add() 291 if (nwrite) in evmap_io_add() 299 if (++nwrite == 1) in evmap_io_add() 302 if (EVUTIL_UNLIKELY(nread > 0xffff || nwrite > 0xffff)) { in evmap_io_add() 327 ctx->nwrite = (ev_uint16_t) nwrite; in evmap_io_add() 341 int nread, nwrite, retval = 0; in evmap_io_del() local 357 nwrite = ctx->nwrite; in evmap_io_del() [all …]
|
/external/ImageMagick/coders/ |
D | sixel.c | 562 static void sixel_advance(sixel_output_t *context, int nwrite) in sixel_advance() argument 564 if ((context->pos += nwrite) >= SIXEL_OUTPUT_PACKET_SIZE) { in sixel_advance() 575 int nwrite; in sixel_put_flash() local 579 nwrite = spritf((char *)context->buffer + context->pos, "!255%c", context->save_pixel); in sixel_put_flash() 580 if (nwrite <= 0) { in sixel_put_flash() 583 sixel_advance(context, nwrite); in sixel_put_flash() 590 …nwrite = sprintf((char *)context->buffer + context->pos, "!%d%c", context->save_count, context->sa… in sixel_put_flash() 591 if (nwrite <= 0) { in sixel_put_flash() 594 sixel_advance(context, nwrite); in sixel_put_flash() 650 int nwrite; in sixel_put_node() local [all …]
|
/external/ltp/testcases/network/tcp_cmds/echo/ |
D | echoes.c | 149 int nread, nwrite; in echofile() local 280 if ((nwrite = read(fdr, wr_buffer, BUFSIZ)) == -1) { in echofile() 286 tst_resm(TINFO, "Read %d bytes from file", nwrite); in echofile() 288 if (nwrite == 0) in echofile() 292 if ((n = write(s, wr_buffer, nwrite)) != nwrite) { in echofile() 302 while (nwrite != 0) { in echofile() 324 nwrite -= nread; in echofile()
|
/external/ltp/testcases/kernel/syscalls/pread/ |
D | pread01.c | 191 int nwrite = 0; /* no. of bytes written by pwrite() */ in setup() local 209 if ((nwrite = pwrite(fildes, write_buf[0], K1, 0)) != K1) { in setup() 221 if ((nwrite = pwrite(fildes, write_buf[2], K1, K2)) != K1) { in setup() 237 if ((nwrite = write(fildes, write_buf[3], K1)) != K1) { in setup() 239 ": %s", nwrite, errno, strerror(errno)); in setup() 246 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 | 108 size_t nwrite = 0; in setup() local 123 while (nwrite < page_sz) { in setup() 125 nwrite += BUF_SIZE; in setup()
|
/external/libchrome/base/message_loop/ |
D | message_pump_libevent.cc | 280 int nwrite = HANDLE_EINTR(write(wakeup_pipe_in_, &buf, 1)); in ScheduleWork() local 281 DCHECK(nwrite == 1 || errno == EAGAIN) in ScheduleWork() 282 << "[nwrite:" << nwrite << "] [errno:" << errno << "]"; in ScheduleWork()
|
/external/curl/tests/server/ |
D | sockfilt.c | 399 ssize_t nwrite = 0; in fullwrite() local 402 wc = write(filedes, (unsigned char *)buffer + nwrite, nbytes - nwrite); in fullwrite() 424 nwrite += wc; in fullwrite() 426 } while((size_t)nwrite < nbytes); in fullwrite() 429 logmsg("wrote %zd bytes", nwrite); in fullwrite() 431 return nwrite; in fullwrite() 460 ssize_t nwrite = fullwrite(fileno(stdout), buffer, nbytes); in write_stdout() local 461 if(nwrite != (ssize_t)nbytes) { in write_stdout()
|
/external/curl/lib/ |
D | ssh.c | 3116 ssize_t nwrite; in scp_send() local 3120 nwrite = (ssize_t) in scp_send() 3123 ssh_block2waitfor(conn, (nwrite == LIBSSH2_ERROR_EAGAIN)?TRUE:FALSE); in scp_send() 3125 if(nwrite == LIBSSH2_ERROR_EAGAIN) { in scp_send() 3127 nwrite = 0; in scp_send() 3129 else if(nwrite < LIBSSH2_ERROR_NONE) { in scp_send() 3130 *err = libssh2_session_error_to_CURLE((int)nwrite); in scp_send() 3131 nwrite = -1; in scp_send() 3134 return nwrite; in scp_send() 3252 ssize_t nwrite; /* libssh2_sftp_write() used to return size_t in 0.14 in sftp_send() local [all …]
|
D | file.c | 312 size_t nwrite; in file_upload() local 390 nwrite = write(fd, buf2, nread); in file_upload() 391 if(nwrite != nread) { in file_upload()
|
/external/owasp/sanitizer/src/tests/org/owasp/html/ |
D | htmllexergolden1.txt | 119 SERVERCODE [<% # some php code here\nwrite("<pre>$horriblySyntacticConstruct1</pre>\\n\\n");\n%>] …
|