Lines Matching full:sfd
114 int sfd, ret; in ulp_sock_pair() local
124 sfd = socket(AF_INET, SOCK_STREAM, 0); in ulp_sock_pair()
126 ret = bind(sfd, &addr, sizeof(addr)); in ulp_sock_pair()
128 ret = listen(sfd, 10); in ulp_sock_pair()
131 ret = getsockname(sfd, &addr, &len); in ulp_sock_pair()
137 *cfd = accept(sfd, &addr, &len); in ulp_sock_pair()
140 close(sfd); in ulp_sock_pair()
1971 int sfd, ret, fd; in TEST() local
1985 sfd = socket(AF_INET, SOCK_STREAM, 0); in TEST()
1987 ret = bind(sfd, &addr, sizeof(addr)); in TEST()
1989 ret = listen(sfd, 10); in TEST()
1999 ret = setsockopt(sfd, IPPROTO_TCP, TCP_ULP, "tls", sizeof("tls")); in TEST()
2003 ret = getsockname(sfd, &addr, &len); in TEST()
2017 close(sfd); in TEST()
2099 int sfd, ret, fd; in TEST() local
2109 sfd = socket(AF_INET6, SOCK_STREAM, 0); in TEST()
2111 ret = bind(sfd, &addr, sizeof(addr)); in TEST()
2113 ret = listen(sfd, 10); in TEST()
2117 ret = getsockname(sfd, &addr, &len); in TEST()
2148 close(sfd); in TEST()
2155 int sfd, cfd, ret, fd; in TEST() local
2168 sfd = socket(AF_INET, SOCK_STREAM, 0); in TEST()
2170 ASSERT_EQ(bind(sfd, &addr, sizeof(addr)), 0); in TEST()
2171 ASSERT_EQ(listen(sfd, 10), 0); in TEST()
2172 ASSERT_EQ(getsockname(sfd, &addr, &len), 0); in TEST()
2174 ASSERT_GE(cfd = accept(sfd, &addr, &len), 0); in TEST()
2175 close(sfd); in TEST()