Lines Matching refs:tp
70 char tmp[UV__INET6_ADDRSTRLEN], *tp;
111 tp = tmp;
117 *tp++ = ':';
122 *tp++ = ':';
127 int err = inet_ntop4(src+12, tp, sizeof tmp - (tp - tmp));
130 tp += strlen(tp);
133 tp += snprintf(tp, sizeof tmp - (tp - tmp), "%x", words[i]);
137 *tp++ = ':';
138 *tp++ = '\0';
139 if ((size_t) (tp - tmp) > size)
178 unsigned char tmp[sizeof(struct in_addr)], *tp;
182 *(tp = tmp) = 0;
187 unsigned int nw = *tp * 10 + (pch - digits);
189 if (saw_digit && *tp == 0)
193 *tp = nw;
202 *++tp = 0;
217 unsigned char tmp[sizeof(struct in6_addr)], *tp, *endp, *colonp;
222 memset((tp = tmp), '\0', sizeof tmp);
223 endp = tp + sizeof tmp;
249 colonp = tp;
254 if (tp + sizeof(uint16_t) > endp)
256 *tp++ = (unsigned char) (val >> 8) & 0xff;
257 *tp++ = (unsigned char) val & 0xff;
262 if (ch == '.' && ((tp + sizeof(struct in_addr)) <= endp)) {
263 int err = inet_pton4(curtok, tp);
265 tp += sizeof(struct in_addr);
273 if (tp + sizeof(uint16_t) > endp)
275 *tp++ = (unsigned char) (val >> 8) & 0xff;
276 *tp++ = (unsigned char) val & 0xff;
283 const int n = tp - colonp;
286 if (tp == endp)
292 tp = endp;
294 if (tp != endp)