Lines Matching defs:family
130 #define xsocket(family, sotype, flags) \
132 int __ret = socket(family, sotype, flags); \
193 static inline void init_addr_loopback(int family, struct sockaddr_storage *ss,
196 switch (family) {
210 FAIL("unsupported address family %d", family);
229 static inline int socket_loopback_reuseport(int family, int sotype, int progfd)
235 init_addr_loopback(family, &addr, &len);
237 s = xsocket(family, sotype, 0);
261 static inline int socket_loopback(int family, int sotype)
263 return socket_loopback_reuseport(family, sotype, -1);
327 static inline int create_pair(int family, int sotype, int *p0, int *p1)
334 s = socket_loopback(family, sotype);
338 c = xsocket(family, sotype, 0);
342 init_addr_loopback(family, &addr, &len);
395 static inline int create_socket_pairs(int family, int sotype, int *c0, int *c1,
400 err = create_pair(family, sotype, c0, p0);
404 err = create_pair(family, sotype, c1, p1);