/libuv/test/ |
H A D | runner-win.c | 244 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 D | run-tests.c | 28 # 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 D | test-poll.c | 62 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 D | test-fork.c | 58 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 D | test-pipe-close-stdout-read-stdin.c | 79 r = read(fd[0], &buf, 1); in TEST_IMPL()
|
H A D | runner-unix.c | 174 rc = read(pipefd[0], &n, 1); in process_start()
|
/libuv/docs/src/guide/ |
H A D | filesystem.rst | 4 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 D | networking.rst | 126 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 D | basics.rst | 28 * 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 D | processes.rst | 253 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 D | poll.rst | 19 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 D | conf.py | 22 data = f.read()
|
H A D | stream.rst | 37 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 D | fs.rst | 205 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 D | design.rst | 53 (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 D | signal.rst | 30 mode and is being read.
|
H A D | udp.rst | 31 * 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 D | migration_010_100.rst | 205 the read callback:
|
/libuv/src/unix/ |
H A D | random-devurandom.c | 55 n = read(fd, (char*) buf + pos, buflen - pos); in uv__random_readpath()
|
H A D | signal.c | 121 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 D | async.c | 175 r = read(w->fd, buf, sizeof(buf));
|
H A D | os390-syscalls.c | 412 if (read(fd, &v, sizeof(v)) != sizeof(v)) in mkdtemp()
|
/libuv/src/win/ |
H A D | req-inl.h | 159 DELEGATE_STREAM_REQ(loop, req, read, data); in uv__process_reqs()
|
/libuv/ |
H A D | CMakeLists.txt | 591 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 D | ChangeLog | 7 * Revert "linux: eliminate a read on eventfd per wakeup" (Ben Noordhuis) 35 * win,pipe: ipc code does not support async read (Jameson Nash) 182 * linux: eliminate a read on eventfd per wakeup (Andy Pan) 1122 * stream: permit read after seeing EOF (Jameson Nash) 1271 * idna: fix OOB read in punycode decoder (Ben Noordhuis) 1281 * linux: read CPU model information on ppc (Richard Lau) 2181 * ibmi: read memory and CPU usage info (Xu Meng) 2228 * unix,win: add uv_fs_{open,read,close}dir() (cjihrig) 3203 * zos: read more accurate rss info from RSM (jBarz) 3252 * unix: fix POLLIN assertion on server read (jBarz) [all …]
|