Lines Matching refs:rc
50 int sd, rc; in ATF_TC_BODY() local
65 rc = bind(sd, (struct sockaddr *)&sin, sizeof(sin)); in ATF_TC_BODY()
66 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY()
74 int sd, rc; in ATF_TC_BODY() local
85 rc = bind(sd, (struct sockaddr *)&sin, sizeof(sin)); in ATF_TC_BODY()
86 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY()
94 int ss, ss2, cs, rc; in ATF_TC_BODY() local
105 rc = setsockopt(ss, SOL_SOCKET, SO_REUSEPORT, &one, sizeof(one)); in ATF_TC_BODY()
106 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY()
112 rc = bind(ss, (struct sockaddr *)&sin, sizeof(sin)); in ATF_TC_BODY()
113 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY()
114 rc = listen(ss, 1); in ATF_TC_BODY()
115 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY()
117 rc = getsockname(ss, (struct sockaddr *)&sin, &slen); in ATF_TC_BODY()
118 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY()
123 rc = connect(cs, (struct sockaddr *)&sin, sizeof(sin)); in ATF_TC_BODY()
124 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY()
131 rc = poll(&pfd, 1, 0); in ATF_TC_BODY()
132 ATF_CHECK_EQ(1, rc); in ATF_TC_BODY()
136 rc = close(cs); in ATF_TC_BODY()
137 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY()
146 rc = poll(&pfd, 1, 60000); in ATF_TC_BODY()
147 ATF_CHECK_EQ(1, rc); in ATF_TC_BODY()
157 int ss, ss2, cs, rc; in ATF_TC_BODY() local
169 rc = setsockopt(ss, SOL_SOCKET, SO_REUSEPORT, &one, sizeof(one)); in ATF_TC_BODY()
170 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY()
176 rc = bind(ss, (struct sockaddr *)&sin, sizeof(sin)); in ATF_TC_BODY()
177 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY()
178 rc = listen(ss, 1); in ATF_TC_BODY()
179 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY()
181 rc = getsockname(ss, (struct sockaddr *)&sin, &slen); in ATF_TC_BODY()
182 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY()
187 rc = connect(cs, (struct sockaddr *)&sin, sizeof(sin)); in ATF_TC_BODY()
188 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY()
195 rc = poll(&pfd, 1, 0); in ATF_TC_BODY()
196 ATF_CHECK_EQ(1, rc); in ATF_TC_BODY()
200 rc = write(cs, "xx", 2); in ATF_TC_BODY()
201 ATF_CHECK_EQ(2, rc); in ATF_TC_BODY()
202 rc = read(ss2, &buffer, 1); in ATF_TC_BODY()
203 ATF_CHECK_EQ(1, rc); in ATF_TC_BODY()
208 rc = poll(&pfd, 1, 0); in ATF_TC_BODY()
209 ATF_CHECK_EQ(1, rc); in ATF_TC_BODY()
213 rc = close(cs); in ATF_TC_BODY()
214 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY()
229 rc = poll(&pfd, 1, 60000); in ATF_TC_BODY()
230 ATF_CHECK_EQ(1, rc); in ATF_TC_BODY()
242 int ss, cs, rc; in ATF_TC_BODY() local
257 rc = bind(ss, (struct sockaddr *)&sin, sizeof(sin)); in ATF_TC_BODY()
258 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY()
259 rc = listen(ss, 1); in ATF_TC_BODY()
260 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY()
262 rc = getsockname(ss, (struct sockaddr *)&sin, &slen); in ATF_TC_BODY()
263 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY()
268 rc = connect(cs, (struct sockaddr *)&sin, sizeof(sin)); in ATF_TC_BODY()
269 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY()
270 rc = shutdown(cs, SHUT_RDWR); in ATF_TC_BODY()
271 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY()
274 rc = connect(cs, (struct sockaddr *)&sin, sizeof(sin)); in ATF_TC_BODY()
275 ATF_CHECK_EQ(-1, rc); in ATF_TC_BODY()
278 rc = close(cs); in ATF_TC_BODY()
279 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY()
280 rc = close(ss); in ATF_TC_BODY()
281 ATF_CHECK_EQ(0, rc); in ATF_TC_BODY()