Lines Matching refs:tp
75 char tmp[UV__INET6_ADDRSTRLEN], *tp;
116 tp = tmp;
122 *tp++ = ':';
127 *tp++ = ':';
132 int err = inet_ntop4(src+12, tp, sizeof tmp - (tp - tmp));
135 tp += strlen(tp);
138 tp += sprintf(tp, "%x", words[i]);
142 *tp++ = ':';
143 *tp++ = '\0';
144 if ((size_t) (tp - tmp) > size)
183 unsigned char tmp[sizeof(struct in_addr)], *tp;
187 *(tp = tmp) = 0;
192 unsigned int nw = *tp * 10 + (pch - digits);
194 if (saw_digit && *tp == 0)
198 *tp = nw;
207 *++tp = 0;
222 unsigned char tmp[sizeof(struct in6_addr)], *tp, *endp, *colonp;
227 memset((tp = tmp), '\0', sizeof tmp);
228 endp = tp + sizeof tmp;
254 colonp = tp;
259 if (tp + sizeof(uint16_t) > endp)
261 *tp++ = (unsigned char) (val >> 8) & 0xff;
262 *tp++ = (unsigned char) val & 0xff;
267 if (ch == '.' && ((tp + sizeof(struct in_addr)) <= endp)) {
268 int err = inet_pton4(curtok, tp);
270 tp += sizeof(struct in_addr);
278 if (tp + sizeof(uint16_t) > endp)
280 *tp++ = (unsigned char) (val >> 8) & 0xff;
281 *tp++ = (unsigned char) val & 0xff;
288 const int n = tp - colonp;
291 if (tp == endp)
297 tp = endp;
299 if (tp != endp)