Lines Matching refs:n
70 int n; in poll_cb() local
78 n = recv(client_fd, &buffer, 5, MSG_OOB); in poll_cb()
79 while (n == -1 && errno == EINTR); in poll_cb()
80 ASSERT(n >= 0 || errno != EINVAL); in poll_cb()
90 n = recv(client_fd, &buffer, 5, 0); in poll_cb()
91 while (n == -1 && errno == EINTR); in poll_cb()
92 ASSERT(n >= 0 || errno != EINVAL); in poll_cb()
94 ASSERT_OK(strncmp(buffer, "world", n)); in poll_cb()
95 ASSERT_EQ(5, n); in poll_cb()
99 ASSERT_EQ(4, n); in poll_cb()
100 ASSERT_OK(strncmp(buffer, "hello", n)); in poll_cb()
104 n = recv(server_fd, &buffer, 5, 0); in poll_cb()
105 while (n == -1 && errno == EINTR); in poll_cb()
106 if (n > 0) { in poll_cb()
107 ASSERT_EQ(5, n); in poll_cb()
108 ASSERT_OK(strncmp(buffer, "world", n)); in poll_cb()
111 } while (n > 0); in poll_cb()
118 n = recv(server_fd, &buffer, 3, 0); in poll_cb()
119 while (n == -1 && errno == EINTR); in poll_cb()
120 ASSERT(n >= 0 || errno != EINVAL); in poll_cb()
121 ASSERT_EQ(3, n); in poll_cb()
122 ASSERT_OK(strncmp(buffer, "foo", n)); in poll_cb()
129 n = send(client_fd, "foo", 3, 0); in poll_cb()
130 } while (n < 0 && errno == EINTR); in poll_cb()
131 ASSERT_EQ(3, n); in poll_cb()