Lines Matching defs:to
7 * This code is derived from software contributed to The NetBSD Foundation
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
75 const struct timespec to = { 0, 0 };
98 /* We expect the FIFO to not be readable. */
99 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &to) == 0);
104 /* We expect the FIFO to be readable. */
105 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &to) == 1);
113 /* We expect the FIFO to not be readable. */
114 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &to) == 0);
116 /* Close the writer. We expect to get EV_EOF. */
118 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &to) == 1);
124 * Reconnect the writer. We expect EV_EOF to be cleared and
125 * for the FIFO to no longer be readable once again.
128 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &to) == 0);