Home
last modified time | relevance | path

Searched refs:read (Results 1 – 25 of 40) sorted by relevance

12

/libuv/test/
H A Drunner-win.c244 DWORD read; in process_read_last_line() local
263 if (!ReadFile(p->stdio_out, buffer, buffer_len - 1, &read, &overlapped)) in process_read_last_line()
266 start = read; in process_read_last_line()
273 memmove(buffer, buffer + start, read - start); in process_read_last_line()
275 buffer[read - start] = '\0'; in process_read_last_line()
H A Drun-tests.c28 # define read _read macro
220 ASSERT_EQ(sizeof(closed_fd), read(0, &closed_fd, sizeof(closed_fd))); in maybe_run_test()
221 ASSERT_EQ(sizeof(open_fd), read(0, &open_fd, sizeof(open_fd))); in maybe_run_test()
H A Dtest-poll.c62 size_t read, sent; member
155 context->read = 0; in create_connection_context()
183 ASSERT_EQ(context->read, TRANSFER_BYTES); in connection_close_cb()
185 ASSERT_OK(context->read); in connection_close_cb()
233 context->read += r;
256 context->read += r;
H A Dtest-fork.c58 cnt = read(socket_cb_read_fd, socket_cb_read_buf, socket_cb_read_size); in socket_cb()
219 ASSERT_EQ(1, read(sync_pipe[0], sync_buf, 1)); /* wait for parent */ in TEST_IMPL()
275 ASSERT_EQ(1, read(sync_pipe[0], sync_buf, 1)); /* wait for child */ in TEST_IMPL()
334 ASSERT_EQ(1, read(sync_pipe[0], sync_buf, 1)); /* wait for child */ in TEST_IMPL()
361 r = read(sync_pipe2[0], sync_buf, 1); in TEST_IMPL()
H A Dtest-pipe-close-stdout-read-stdin.c79 r = read(fd[0], &buf, 1); in TEST_IMPL()
H A Drunner-unix.c174 rc = read(pipefd[0], &n, 1); in process_start()
/libuv/docs/src/guide/
H A Dfilesystem.rst4 Simple filesystem read/write is achieved using the ``uv_fs_*`` functions and the
65 .. rubric:: uvcat/main.c - read callback
72 In the case of a read call, you should pass an *initialized* buffer which will
73 be filled with data before the read callback is triggered. The ``uv_fs_*``
87 simply drives the next read. Thus read and write proceed in lockstep via
121 same patterns as the read/write/open calls, returning the result in the
211 .. rubric:: uvtee/main.c - read on pipes
245 allocate memory. In this case, the read callback is invoked with error
249 The read callback may be called with ``nread = 0``, indicating that at this
250 point there is nothing to be read. Most applications will just ignore this.
[all …]
H A Dnetworking.rst126 client) and start a read on it. This will read back responses from any DHCP
134 book and you can study the code if you are interested. As usual the read and
137 Since UDP sockets are not connected to a particular peer, the read callback
140 ``nread`` may be zero if there is no more data to be read. If ``addr`` is NULL,
141 it indicates there is nothing to read (the callback shouldn't do anything), if
H A Dbasics.rst28 * A socket has data ready to be read
36 input/output functions (``read``, ``fprintf``, etc.) is that they are
50 subsystems. For example, a normal ``read`` call on a socket would block until
134 I/O read callbacks (such as for files and sockets) are passed a parameter ``nread``. If ``nread`` i…
206 the data read from a file, a timer callback will be triggered on timeout and so
H A Dprocesses.rst253 read/write buffering to the operating system, so in terms of convenience this
264 read/write flag is from the perspective of the child process. In this case,
339 to read the full code to really understand it.
366 to read out. If your program could deal with different types of handles,
/libuv/docs/src/
H A Dpoll.rst19 be prepared to handle EAGAIN or equivalent when it attempts to read from or
98 shutdown path because an extra read or write call might be avoided.
123 readable/writable and the callback did not conduct a read/write on
125 * The callback committed a read on the socket, and has not read all the
H A Dconf.py22 data = f.read()
H A Dstream.rst37 Callback called when data was read on a stream.
46 is equivalent to ``EAGAIN`` or ``EWOULDBLOCK`` under ``read(2)``.
49 by calling :c:func:`uv_read_stop` or :c:func:`uv_close`. Trying to read
139 be made several times until there is no more data to read or
H A Dfs.rst205 data that was read or written, respectively.
248 crash if the memory mapped read operation fails.
311 :c:type:`uv_dirent_t` elements used to hold the read directory entries and
315 read from the stream.
631 Do not update the file access time when the file is read.
670 Open the file for read-only access.
674 Open the file for read-write access.
H A Ddesign.rst53 (readable, writable hangup) so handles can read, write or perform the desired I/O operation.
95 for a read or write operation get their callbacks called at this point.
H A Dsignal.rst30 mode and is being read.
H A Dudp.rst31 * Indicates message was truncated because read buffer was too small. The
96 0 if there is no more data to read. Note that 0 may also mean that an
120 nothing to read, and with `nread` == 0 and `addr` != NULL when an empty UDP packet is
H A Dmigration_010_100.rst205 the read callback:
/libuv/src/unix/
H A Drandom-devurandom.c55 n = read(fd, (char*) buf + pos, buflen - pos); in uv__random_readpath()
H A Dasync.c178 r = read(w->fd, buf, sizeof(buf));
234 if (read(fd, &val, sizeof(uint64_t)) > 0 || errno == EAGAIN) {
H A Dsignal.c121 r = read(uv__signal_lock_pipefd[0], &data, sizeof data); in uv__signal_lock()
446 r = read(loop->signal_pipefd[0], buf + bytes, sizeof(buf) - bytes); in uv__signal_event()
H A Dos390-syscalls.c412 if (read(fd, &v, sizeof(v)) != sizeof(v)) in mkdtemp()
/libuv/src/win/
H A Dreq-inl.h159 DELEGATE_STREAM_REQ(loop, req, read, data); in uv__process_reqs()
/libuv/
H A DCMakeLists.txt591 test/test-not-readable-nor-writable-on-read-error.c
597 test/test-pipe-close-stdout-read-stdin.c
640 test/test-tcp-close-after-read-timeout.c
652 test/test-tcp-read-stop.c
654 test/test-tcp-read-stop-start.c
660 test/test-tcp-unexpected-read.c
H A DChangeLog133 * linux: eliminate a read on eventfd per wakeup (Andy Pan)
1073 * stream: permit read after seeing EOF (Jameson Nash)
1161 * docs: update read-the-docs version of sphinx (Jameson Nash)
1222 * idna: fix OOB read in punycode decoder (Ben Noordhuis)
1232 * linux: read CPU model information on ppc (Richard Lau)
2132 * ibmi: read memory and CPU usage info (Xu Meng)
2179 * unix,win: add uv_fs_{open,read,close}dir() (cjihrig)
2441 * tty, win: fix read stop for raw mode (Bartosz Sosnowski)
3154 * zos: read more accurate rss info from RSM (jBarz)
3203 * unix: fix POLLIN assertion on server read (jBarz)
[all …]

Completed in 64 milliseconds

12