Home
last modified time | relevance | path

Searched refs:nwrite (Results 1 – 15 of 15) sorted by relevance

/external/ltp/testcases/kernel/syscalls/pwrite/
Dpwrite01.c105 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/
Dregress_zlib.c136 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/ImageMagick/coders/
Dsixel.c595 static void sixel_advance(sixel_output_t *context, int nwrite) in sixel_advance() argument
597 if ((context->pos += nwrite) >= SIXEL_OUTPUT_PACKET_SIZE) { in sixel_advance()
608 int nwrite; in sixel_put_flash() local
612 nwrite = spritf((char *)context->buffer + context->pos, "!255%c", context->save_pixel); in sixel_put_flash()
613 if (nwrite <= 0) { in sixel_put_flash()
616 sixel_advance(context, nwrite); in sixel_put_flash()
623nwrite = sprintf((char *)context->buffer + context->pos, "!%d%c", context->save_count, context->sa… in sixel_put_flash()
624 if (nwrite <= 0) { in sixel_put_flash()
627 sixel_advance(context, nwrite); in sixel_put_flash()
683 int nwrite; in sixel_put_node() local
[all …]
/external/libevent/
Devmap.c61 ev_uint16_t nwrite; member
258 entry->nwrite = 0; in evmap_io_init()
271 int nread, nwrite, nclose, retval = 0; in evmap_io_add_() local
290 nwrite = ctx->nwrite; in evmap_io_add_()
295 if (nwrite) in evmap_io_add_()
305 if (++nwrite == 1) in evmap_io_add_()
312 if (EVUTIL_UNLIKELY(nread > 0xffff || nwrite > 0xffff || nclose > 0xffff)) { in evmap_io_add_()
337 ctx->nwrite = (ev_uint16_t) nwrite; in evmap_io_add_()
352 int nread, nwrite, nclose, retval = 0; in evmap_io_del_() local
368 nwrite = ctx->nwrite; in evmap_io_del_()
[all …]
/external/ltp/testcases/kernel/syscalls/pread/
Dpread01.c192 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/
Dmsync01.c156 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()
Dmsync02.c109 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()
Dmsync03.c103 size_t nwrite = 0; in setup() local
118 while (nwrite < page_sz) { in setup()
120 nwrite += BUF_SIZE; in setup()
/external/curl/tests/server/
Dsockfilt.c407 ssize_t nwrite = 0; in fullwrite() local
410 ssize_t wc = write(filedes, (const unsigned char *)buffer + nwrite, in fullwrite()
411 nbytes - nwrite); in fullwrite()
433 nwrite += wc; in fullwrite()
435 } while((size_t)nwrite < nbytes); in fullwrite()
438 logmsg("wrote %zd bytes", nwrite); in fullwrite()
440 return nwrite; in fullwrite()
469 ssize_t nwrite = fullwrite(fileno(stdout), buffer, nbytes); in write_stdout() local
470 if(nwrite != (ssize_t)nbytes) { in write_stdout()
/external/libchrome/base/message_loop/
Dmessage_pump_libevent.cc271 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/curl/lib/
Dssh.c3104 ssize_t nwrite; in scp_send() local
3108 nwrite = (ssize_t) in scp_send()
3111 ssh_block2waitfor(conn, (nwrite == LIBSSH2_ERROR_EAGAIN)?TRUE:FALSE); in scp_send()
3113 if(nwrite == LIBSSH2_ERROR_EAGAIN) { in scp_send()
3115 nwrite = 0; in scp_send()
3117 else if(nwrite < LIBSSH2_ERROR_NONE) { in scp_send()
3118 *err = libssh2_session_error_to_CURLE((int)nwrite); in scp_send()
3119 nwrite = -1; in scp_send()
3122 return nwrite; in scp_send()
3237 ssize_t nwrite; /* libssh2_sftp_write() used to return size_t in 0.14 in sftp_send() local
[all …]
Dfile.c308 size_t nwrite; in file_upload() local
336 nwrite = write(fd, buf2, nread); in file_upload()
337 if(nwrite != nread) { in file_upload()
Dssh-libssh.c2409 ssize_t nwrite; in sftp_send() local
2412 nwrite = sftp_write(conn->proto.sshc.sftp_file, mem, len); in sftp_send()
2417 if(nwrite == SSH_AGAIN) { in sftp_send()
2419 nwrite = 0; in sftp_send()
2423 if(nwrite < 0) { in sftp_send()
2425 nwrite = -1; in sftp_send()
2428 return nwrite; in sftp_send()
/external/ltp/testcases/kernel/device-drivers/zram/
Dzram03.c188 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/owasp/sanitizer/src/tests/org/owasp/html/
Dhtmllexergolden1.txt119 SERVERCODE [<% # some php code here\nwrite("<pre>$horriblySyntacticConstruct1</pre>\\n\\n");\n%>] …