Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 23 of 23) sorted by relevance

/libuv/src/unix/
H A Dsignal.c439 size_t bytes, end, i; in uv__signal_event() local
442 bytes = 0; in uv__signal_event()
446 r = read(loop->signal_pipefd[0], buf + bytes, sizeof(buf) - bytes); in uv__signal_event()
456 if (bytes > 0) in uv__signal_event()
467 bytes += r; in uv__signal_event()
470 end = (bytes / sizeof(uv__signal_msg_t)) * sizeof(uv__signal_msg_t); in uv__signal_event()
487 bytes -= end; in uv__signal_event()
492 if (bytes) { in uv__signal_event()
493 memmove(buf, buf + end, bytes); in uv__signal_event()
H A Daix.c721 int bytes, rc = 0; in uv__ahafs_event() local
733 bytes = pread(event_watch->fd, result_data, RDWR_BUF_SIZE, 0); in uv__ahafs_event()
735 assert((bytes >= 0) && "uv__ahafs_event - Error reading monitor file"); in uv__ahafs_event()
741 if(bytes == 0) in uv__ahafs_event()
745 if(bytes > 0) in uv__ahafs_event()
/libuv/docs/src/
H A Dpipe.rst40 change the bytes on the wire). Only a connected pipe that will be
64 Paths on Unix get truncated to ``sizeof(sockaddr_un.sun_path)`` bytes,
65 typically between 92 and 108 bytes.
80 Paths on Unix get truncated to ``sizeof(sockaddr_un.sun_path)`` bytes,
81 typically between 92 and 108 bytes, unless the ``UV_PIPE_NO_TRUNCATE``
94 Paths on Unix get truncated to ``sizeof(sockaddr_un.sun_path)`` bytes,
95 typically between 92 and 108 bytes.
110 Paths on Unix get truncated to ``sizeof(sockaddr_un.sun_path)`` bytes,
111 typically between 92 and 108 bytes, unless the ``UV_PIPE_NO_TRUNCATE``
119 of the buffer and it's set to the number of bytes written to the buffer on
[all …]
H A Dthreading.rst94 bytes. Optionally returning the previous affinity setting in oldmask.
96 and maps the cpu_set_t to bytes in oldmask. Then maps the bytes in cpumask
98 the bytes in cpumask to a bitmask and uses SetThreadAffinityMask() which
101 The mask_size specifies the number of entries (bytes) in cpumask / oldmask,
112 cpu_set_t returned by :man:`pthread_getaffinity_np(3)` to bytes in cpumask.
114 The mask_size specifies the number of entries (bytes) in cpumask,
H A Derrors.rst358 Returns the error message for the given error code. Leaks a few bytes
364 message is stored in the user-supplied buffer `buf` of at most `buflen` bytes.
370 Returns the error name for the given error code. Leaks a few bytes
376 name is stored in the user-supplied buffer `buf` of at most `buflen` bytes.
H A Dmisc.rst24 Total bytes in the buffer.
472 bytes, including the NUL terminator byte into the `*size`.
619 the kernel (in bytes). Returns 0 when unknown.
623 Gets the total amount of physical memory in the system (in bytes).
628 Gets the total amount of memory available to the process (in bytes) based on
642 Gets the amount of free memory that is still available to the process (in bytes).
843 Fill `buf` with exactly `buflen` cryptographically strong random bytes
847 Short reads are not possible. When less than `buflen` random bytes are
H A Dstream.rst83 Contains the amount of queued bytes waiting to be sent. Readonly.
207 * > 0: number of bytes written (can be less than the supplied buffer size).
H A Dudp.rst95 * `nread`: Number of bytes that have been received.
140 Number of bytes queued for sending. This field strictly shows how much
423 :returns: >= 0: number of bytes sent (it matches the given buffer size).
/libuv/src/win/
H A Dtcp.c396 DWORD bytes; in uv__tcp_queue_accept() local
481 DWORD bytes, flags; in uv__tcp_queue_read() local
777 DWORD bytes; in uv__tcp_try_connect() local
822 &bytes, in uv__tcp_try_connect()
898 DWORD bytes; in uv__tcp_write() local
962 DWORD bytes; in uv__tcp_try_write() local
978 return bytes; in uv__tcp_try_write()
1059 if (bytes > 0) { in uv__process_tcp_read_req()
1417 DWORD bytes; in uv__tcp_try_cancel_reqs() local
1424 &bytes, in uv__tcp_try_cancel_reqs()
[all …]
H A Dwinsock.c44 DWORD bytes; in uv__get_extension_function() local
52 &bytes, in uv__get_extension_function()
271 DWORD buffer_count, DWORD* bytes, DWORD* flags, WSAOVERLAPPED *overlapped, in uv__wsarecv_workaround() argument
318 *bytes = (DWORD) iosb->Information; in uv__wsarecv_workaround()
365 DWORD buffer_count, DWORD* bytes, DWORD* flags, struct sockaddr* addr, in uv__wsarecvfrom_workaround() argument
416 *bytes = (DWORD) iosb->Information; in uv__wsarecvfrom_workaround()
H A Dudp.c271 DWORD bytes, flags; in uv__udp_queue_recv() local
289 &bytes, in uv__udp_queue_recv()
297 req->u.io.overlapped.InternalHigh = bytes; in uv__udp_queue_recv()
362 DWORD result, bytes; in uv__send() local
372 &bytes, in uv__send()
447 DWORD bytes, err, flags; in uv__process_udp_recv_req() local
473 &bytes, in uv__process_udp_recv_req()
488 bytes, in uv__process_udp_recv_req()
1099 DWORD bytes; in uv__udp_try_send() local
1132 &bytes, in uv__udp_try_send()
[all …]
H A Dfs.c179 DWORD bytes; in fs__readlink_handle() local
189 &bytes, in fs__readlink_handle()
808 DWORD bytes; in fs__read() local
845 bytes = 0; in fs__read()
860 bytes += incremental_bytes; in fs__read()
867 if (result || bytes > 0) { in fs__read()
868 SET_REQ_RESULT(req, bytes); in fs__read()
1014 DWORD bytes; in fs__write() local
1050 bytes = 0; in fs__write()
1072 if (result || bytes > 0) { in fs__write()
[all …]
H A Dinternal.h305 DWORD buffer_count, DWORD* bytes, DWORD* flags, WSAOVERLAPPED *overlapped,
308 DWORD buffer_count, DWORD* bytes, DWORD* flags, struct sockaddr* addr,
H A Dtty.c485 DWORD bytes; in uv_tty_line_read_thread() local
505 bytes = handle->tty.rd.read_line_buffer.len; in uv_tty_line_read_thread()
507 bytes = MAX_INPUT_BUFFER_LENGTH; in uv_tty_line_read_thread()
512 chars = bytes / 3; in uv_tty_line_read_thread()
530 read_bytes = bytes; in uv_tty_line_read_thread()
975 DWORD bytes = req->u.io.overlapped.InternalHigh; in uv_process_tty_read_line_req() local
976 handle->read_cb((uv_stream_t*) handle, bytes, &buf); in uv_process_tty_read_line_req()
H A Dpoll.c420 DWORD bytes; in uv_poll_init_socket() local
440 &bytes, in uv_poll_init_socket()
H A Dcore.c428 DWORD bytes; in uv__poll_wine() local
462 &bytes, in uv__poll_wine()
H A Dpipe.c1249 DWORD bytes; in uv_pipe_zero_readfile_thread_proc() local
1286 if (!ReadFile(handle->handle, &uv_zero_, 0, &bytes, NULL)) in uv_pipe_zero_readfile_thread_proc()
1317 DWORD bytes; in uv_pipe_writefile_thread_proc() local
1329 &bytes, in uv_pipe_writefile_thread_proc()
1628 DWORD bytes; in uv__pipe_write_data() local
1630 WriteFile(handle->handle, write_buf.base, write_buf.len, &bytes, NULL); in uv__pipe_write_data()
/libuv/test/
H A Dbenchmark-pump.c82 static double gbit(int64_t bytes, int64_t passed_ms) { in gbit() argument
83 double gbits = ((double)bytes / (1024 * 1024 * 1024)) * 8; in gbit()
171 static void read_cb(uv_stream_t* stream, ssize_t bytes, const uv_buf_t* buf) { in read_cb() argument
178 if (bytes < 0) { in read_cb()
185 nrecv += bytes; in read_cb()
186 nrecv_total += bytes; in read_cb()
H A Drun-tests.c166 DWORD bytes; in maybe_run_test() local
167 WriteFile((HANDLE) _get_osfhandle(3), out, sizeof(out) - 1, &bytes, NULL); in maybe_run_test()
/libuv/src/
H A Duv-common.c627 size_t bytes; in uv__count_bufs() local
629 bytes = 0; in uv__count_bufs()
631 bytes += (size_t) bufs[i].len; in uv__count_bufs()
633 return bytes; in uv__count_bufs()
/libuv/include/uv/
H A Dwin.h189 LPDWORD bytes,
198 LPDWORD bytes,
/libuv/docs/src/guide/
H A Dfilesystem.rst189 a collection of a pointer to bytes (``uv_buf_t.base``) and the length
191 What does require management is the actual bytes, which have to be allocated
241 many bytes to the output streams. Finally remember that buffer allocation and
/libuv/
H A DChangeLog1277 * illumos,tty: UV_TTY_MODE_IO waits for 4 bytes (Joshua M. Clulow)
5008 * windows: count queued bytes even if request completed immediately (Saúl

Completed in 66 milliseconds