Lines Matching refs:fd
643 int fd[2]; local
646 fd[0] = _open("test/fixtures/empty_file", UV_FS_O_RDONLY);
648 fd[0] = open(".", UV_FS_O_RDONLY);
650 ASSERT_NE(fd[0], -1);
651 ASSERT_NE(0, uv_poll_init(uv_default_loop(), &poll_handle, fd[0]));
652 ASSERT_OK(close(fd[0]));
658 fd[0] = open("test/fixtures/empty_file", UV_FS_O_RDONLY);
659 ASSERT_NE(fd[0], -1);
661 ASSERT_NE(0, uv_poll_init(uv_default_loop(), &poll_handle, fd[0]));
662 ASSERT_OK(close(fd[0]));
664 ASSERT_OK(pipe(fd));
666 ASSERT_EQ(0, uv_poll_init(uv_default_loop(), &poll_handle, fd[0]));
667 ASSERT_OK(close(fd[0]));
668 ASSERT_OK(close(fd[1]));
671 fd[0] = open(TEST_POLL_FIFO_PATH, O_RDONLY | O_NONBLOCK);
672 ASSERT_NE(fd[0], -1);
673 fd[1] = open(TEST_POLL_FIFO_PATH, O_WRONLY | O_NONBLOCK);
674 ASSERT_NE(fd[1], -1);
676 ASSERT_NE(0, uv_poll_init(uv_default_loop(), &poll_handle, fd[0]));
677 ASSERT_OK(close(fd[0]));
678 ASSERT_OK(close(fd[1]));
692 int fd; local
694 fd = epoll_create(1);
695 ASSERT_NE(fd, -1);
697 ASSERT_OK(uv_poll_init(uv_default_loop(), &poll_handle, fd));
703 ASSERT_OK(close(fd));
714 int fd; local
716 fd = kqueue();
717 ASSERT_NE(fd, -1);
719 ASSERT_OK(uv_poll_init(uv_default_loop(), &poll_handle, fd));
725 ASSERT_OK(close(fd));