Lines Matching +full:multi +full:- +full:bit
1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
58 int error, multi; in netfinger() local
80 multi = (ai0->ai_next) != 0; in netfinger()
83 if (ai0->ai_canonname == 0) in netfinger()
86 printf("[%s]\n", ai0->ai_canonname); in netfinger()
88 for (ai = ai0; ai != NULL; ai = ai->ai_next) { in netfinger()
89 if (multi) in netfinger()
111 s = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); in do_protocol()
113 warn("socket(%d, %d, %d)", ai->ai_family, ai->ai_socktype, in do_protocol()
114 ai->ai_protocol); in do_protocol()
115 return -1; in do_protocol()
118 msg.msg_name = (void *)ai->ai_addr; in do_protocol()
119 msg.msg_namelen = ai->ai_addrlen; in do_protocol()
126 /* -l flag for remote fingerd */ in do_protocol()
137 if (connect(s, ai->ai_addr, ai->ai_addrlen) < 0) { in do_protocol()
140 return -1; in do_protocol()
146 return -1; in do_protocol()
153 * If we see a <CR> or a <CR> with the high bit set, treat it as in do_protocol()
158 * it isn't a space, we can simply set the 7th bit. Every ASCII in do_protocol()
159 * character with bit 7 set is printable. in do_protocol()
168 cnt - 1); in do_protocol()
172 if (lastc == '\r') /* ^M^M - skip dupes */ in do_protocol()
216 if (getnameinfo(ai->ai_addr, ai->ai_addrlen, buf, sizeof buf, in trying()