Lines Matching defs:c0
552 int err, map, verdict, c0 = -1, c1 = -1, p0 = -1, p1 = -1;
584 err = create_socket_pairs(AF_INET, sotype, &c0, &c1, &p0, &p1);
601 ASSERT_EQ(recvd, sizeof(buf), "recv_timeout(c0)");
605 close(c0);
1118 int c0 = -1, p0 = -1, c1 = -1, p1 = -1;
1127 if (create_socket_pairs(AF_INET, SOCK_STREAM, &c0, &c1, &p0, &p1))
1145 sent = xsend(c0, buf, sizeof(buf), 0);
1175 if (c0 >= 0)
1176 close(c0);
1191 int c0 = -1, p0 = -1, c1 = -1, p1 = -1;
1199 if (create_socket_pairs(AF_INET, SOCK_STREAM, &c0, &c1, &p0, &p1))
1224 /* just trigger sockamp: data sent by c0 will be received by p1 */
1225 sent = xsend(c0, buf, sizeof(buf), 0);
1226 if (!ASSERT_EQ(sent, sizeof(buf), "xsend(c0), bpf"))
1257 sent = xsend(c0, buf, sizeof(buf), 0);
1258 if (!ASSERT_EQ(sent, sizeof(buf), "xsend(c0), native"))
1267 if (c0 >= 0)
1268 close(c0);
1300 int c0 = -1, p0 = -1, c1 = -1, p1 = -1;
1308 err = create_socket_pairs(AF_INET, sotype, &c0, &c1, &p0, &p1);
1336 sent = xsend(c0, buf + 2, sizeof(buf) - 2, 0);
1365 if (c0 >= 0)
1366 close(c0);