Lines Matching defs:hs
105 struct hello_socket *hs;
182 hs = (struct hello_socket *)malloc(sizeof(*hs));
183 if (hs == NULL) {
187 hs->type = AF_INET;
188 hs->socket = s;
189 SLIST_INSERT_HEAD(&hello_socket_head, hs, listentry);
261 hs = (struct hello_socket *)malloc(sizeof(*hs));
262 if (hs == NULL) {
263 fatalp("Memory alloc problem: hs\n");
267 hs->type = AF_INET6;
268 hs->socket = s;
269 SLIST_INSERT_HEAD(&hello_socket_head, hs, listentry);
281 struct hello_socket *hs;
283 SLIST_FOREACH(hs, &hello_socket_head, listentry)
284 if (hs->socket == s)
416 struct hello_socket *hs;
485 SLIST_FOREACH(hs, &hello_socket_head, listentry)
486 if (hs->type == AF_INET) {
487 ip4socket = hs->socket;
561 SLIST_FOREACH(hs, &hello_socket_head, listentry)
562 if (hs->type == AF_INET6) {
563 ip6socket = hs->socket;
823 struct hello_socket *hs;
875 SLIST_FOREACH(hs, &hello_socket_head, listentry) {
876 pfd[pollsum].fd = hs->socket;