/libuv/src/win/ |
H A D | core.c | 688 int uv_fileno(const uv_handle_t* handle, uv_os_fd_t* fd) { in uv_fileno() argument 719 *fd = fd_out; in uv_fileno() 763 uv_os_fd_t fd; in uv__getsockpeername() local 765 result = uv_fileno(handle, &fd); in uv__getsockpeername() 772 result = func((SOCKET) fd, name, namelen); in uv__getsockpeername()
|
H A D | tty.c | 185 int uv_tty_init(uv_loop_t* loop, uv_tty_t* tty, uv_file fd, int unused) { in uv_tty_init() argument 194 handle = (HANDLE) uv__get_osfhandle(fd); in uv_tty_init() 198 if (fd <= 2) { in uv_tty_init() 213 fd = -1; in uv_tty_init() 248 tty->u.fd = fd; in uv_tty_init() 2242 assert(handle->u.fd == -1 || handle->u.fd > 2); 2246 if (handle->u.fd == -1) 2249 _close(handle->u.fd); 2251 handle->u.fd = -1;
|
H A D | poll.c | 410 int uv_poll_init(uv_loop_t* loop, uv_poll_t* handle, int fd) { in uv_poll_init() argument 411 return uv_poll_init_socket(loop, handle, (SOCKET) uv__get_osfhandle(fd)); in uv_poll_init()
|
H A D | pipe.c | 198 assert(pipe->u.fd == -1 || pipe->u.fd > 2); in close_pipe() 199 if (pipe->u.fd == -1) in close_pipe() 202 _close(pipe->u.fd); in close_pipe() 204 pipe->u.fd = -1; in close_pipe() 461 int fd, in uv__set_pipe_handle() argument 529 handle->u.fd = fd; in uv__set_pipe_handle()
|
H A D | internal.h | 285 HANDLE uv__stdio_handle(BYTE* buffer, int fd);
|
/libuv/docs/src/ |
H A D | poll.rst | 20 write to the fd. 27 but it might also start polling another socket. However the fd can be safely 73 .. c:function:: int uv_poll_init(uv_loop_t* loop, uv_poll_t* handle, int fd) 118 callback will be called again, as long as the given fd/socket remains
|
H A D | tty.rst | 67 .. c:function:: int uv_tty_init(uv_loop_t* loop, uv_tty_t* handle, uv_file fd, int unused) 76 On Unix this function will determine the path of the fd of the terminal
|
H A D | migration_010_100.rst | 229 fd = handle->io_watcher.fd;
|
H A D | loop.rst | 146 Embedding a kqueue fd in another kqueue pollset doesn't work on all platforms. It's not 147 an error to add the fd but it never generates events.
|
H A D | fs.rst | 534 .. c:function:: uv_os_fd_t uv_get_osfhandle(int fd) 537 …On UNIX, returns the ``fd`` intact. On Windows, this calls `_get_osfhandle <https://docs.microsoft… 539 any attempts to close it or to use it after closing the fd may lead to malfunction.
|
/libuv/docs/code/proc-streams/ |
H A D | main.c | 35 child_stdio[2].data.fd = 2; in main()
|
/libuv/test/ |
H A D | test-embed.c | 65 p.fd = uv_backend_fd(loop); in TEST_IMPL()
|
H A D | test-eintr-handling.c | 46 int fd; member
|
H A D | test-fs.c | 1335 int fd; in TEST_IMPL() local 1377 ASSERT_GE(fd, 0); in TEST_IMPL() 1566 int fd; in TEST_IMPL() local 1574 for (fd = 0; fd <= 2; ++fd) { in TEST_IMPL() 1581 ft = uv_guess_handle(fd); in TEST_IMPL() 3696 int fd; member 3786 ctx.fd = pipe_fds[doread]; in test_fs_partial() 3917 uv_os_fd_t fd; in TEST_IMPL() local 3936 ASSERT_GE(fd, 0); in TEST_IMPL() 3954 int fd; in TEST_IMPL() local [all …]
|
H A D | test-stdio-over-pipes.c | 139 options.stdio[2].data.fd = 2; in test_stdio_over_pipes()
|
H A D | test-ipc.c | 313 stdio[1].data.fd = 1; in spawn_helper() 315 stdio[2].data.fd = 2; in spawn_helper()
|
/libuv/docs/code/multi-echo-server/ |
H A D | main.c | 83 child_stdio[2].data.fd = 2; in setup_workers()
|
/libuv/include/uv/ |
H A D | win.h | 37 SOCKET fd; member 627 int fd; \
|
H A D | unix.h | 99 int fd; member
|
/libuv/src/unix/ |
H A D | loop.c | 70 loop->async_io_watcher.fd = -1; in uv_loop_init()
|
/libuv/include/ |
H A D | uv.h | 471 int fd; \ 507 UV_EXTERN int uv_fileno(const uv_handle_t* handle, uv_os_fd_t* fd); 803 UV_EXTERN int uv_tty_init(uv_loop_t*, uv_tty_t*, uv_file fd, int readable); 881 UV_EXTERN int uv_poll_init(uv_loop_t* loop, uv_poll_t* handle, int fd); 1025 int fd; member 1251 UV_EXTERN uv_os_fd_t uv_get_osfhandle(int fd);
|
/libuv/.github/workflows/ |
H A D | CI-win.yml | 61 # https://github.com/libuv/leps/blob/master/005-windows-handles-not-fd.md
|
/libuv/src/ |
H A D | uv-common.h | 316 # define uv__handle_platform_init(h) ((h)->u.fd = -1)
|
/libuv/ |
H A D | ChangeLog | 1113 * poll,unix: ensure safety of rapid fd reuse (Bob Weinand) 1966 * darwin: fix thread cancellation fd leak (Ben Noordhuis) 1968 * linux: fix thread cancellation fd leak (Ben Noordhuis) 3945 * win,stream: add slot to remember CRT fd (Bert Belder) 3949 * win,pipe: don't close fd 0-2 (Bert Belder) 3951 * win,tty: convert fd -> handle safely (Bert Belder) 3955 * win,tty: don't close fd 0-2 (Bert Belder) 3957 * win,fs: don't close fd 0-2 (Bert Belder) 4976 * fs: `uv__cloexec()` opened fd (Fedor Indutny) 5230 * unix: fix reopened fd bug (Fedor Indutny) [all …]
|
H A D | Makefile.am | 163 test/test-close-fd.c \ 183 test/test-fs-fd-hash.c \
|