Lines Matching +full:in +full:- +full:and +full:- +full:around
8 * around library functions and system calls that are known to have problems
22 #include <netinet/in.h>
36 * Result: long hostnames would be truncated, and connections would be
45 /* In case not defined in <sys/param.h>. */
73 * With some System-V versions, the fgets() library function does not
77 * The following code works around the problem. It does no harm on "normal"
98 len--;
119 * With early SunOS 5 versions, recvfrom() does not completely fill in the
120 * source address structure when doing a non-destructive read. The following
121 * code works around the problem. It does no harm on "normal" systems.
141 if (from->sa_family == 0) {
148 from->sa_family = my_addr.sa_family;
158 * The Apollo SR10.3 and some SYSV4 getpeername(2) versions do not return an
159 * error in case of a datagram-oriented socket. Instead, they claim that all
160 * UDP requests come from address 0.0.0.0. The following code works around
177 && sa->sa_family == AF_INET
178 && sin->sin_addr.s_addr == 0) {
180 return (-1);
189 * According to Karl Vogel (vogelke@c-17igp.wpafb.af.mil) some Pyramid
213 * doing DNS through NIS, only one host address ends up in the address list.
214 * All other addresses end up in the hostname alias list, interspersed with
217 * accidentally left in. A side effect of the workaround is that address
235 if ((hp = gethostbyname(name)) && !hp->h_addr_list[1] && hp->h_aliases[1]) {
236 for (o_aliases = n_addr_list = hp->h_aliases; *o_aliases; o_aliases++) {
238 memcpy(*n_addr_list++, (char *) &addr, hp->h_length);
243 o_addr_list = hp->h_addr_list;
244 memcpy(*n_addr_list++, *o_addr_list, hp->h_length);
246 hp->h_addr_list = hp->h_aliases;
247 hp->h_aliases = o_addr_list + 1;
258 * private strtok(). This has been fixed in the meantime.
280 * IRIX 5.3 (and possibly earlier versions, too) library routines call the
281 * non-reentrant strtok() library routine, causing hosts to slip through
282 * allow/deny filters. Workaround: don't rely on the vendor and use our own
283 * strtok() function. FreeBSD 2.0 has a similar problem (fixed in 2.0.5).
299 * Skip over separator characters and detect end of string.
305 * Skip over non-separator characters and terminate result.