Home
last modified time | relevance | path

Searched refs:fd (Results 51 – 75 of 79) sorted by relevance

1234

/libuv/src/win/
H A Dcore.c688 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 Dtty.c185 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 Dpoll.c410 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 Dpipe.c198 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 Dinternal.h285 HANDLE uv__stdio_handle(BYTE* buffer, int fd);
/libuv/docs/src/
H A Dpoll.rst20 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 Dtty.rst67 .. 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 Dmigration_010_100.rst229 fd = handle->io_watcher.fd;
H A Dloop.rst146 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 Dfs.rst534 .. 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 Dmain.c35 child_stdio[2].data.fd = 2; in main()
/libuv/test/
H A Dtest-embed.c65 p.fd = uv_backend_fd(loop); in TEST_IMPL()
H A Dtest-eintr-handling.c46 int fd; member
H A Dtest-fs.c1335 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 Dtest-stdio-over-pipes.c139 options.stdio[2].data.fd = 2; in test_stdio_over_pipes()
H A Dtest-ipc.c313 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 Dmain.c83 child_stdio[2].data.fd = 2; in setup_workers()
/libuv/include/uv/
H A Dwin.h37 SOCKET fd; member
627 int fd; \
H A Dunix.h99 int fd; member
/libuv/src/unix/
H A Dloop.c70 loop->async_io_watcher.fd = -1; in uv_loop_init()
/libuv/include/
H A Duv.h471 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 DCI-win.yml61 # https://github.com/libuv/leps/blob/master/005-windows-handles-not-fd.md
/libuv/src/
H A Duv-common.h316 # define uv__handle_platform_init(h) ((h)->u.fd = -1)
/libuv/
H A DChangeLog1113 * 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 DMakefile.am163 test/test-close-fd.c \
183 test/test-fs-fd-hash.c \

Completed in 104 milliseconds

1234