Lines Matching refs:tmpbuf
295 char tmpbuf[4096]; in lookup_service() local
313 memset(tmpbuf, 0, sizeof(tmpbuf)); in lookup_service()
315 if (getservbyport_r(port, proto, &se, (void *)tmpbuf, in lookup_service()
316 sizeof(tmpbuf), &sep) != 0) in lookup_service()
319 sep = getservbyport_r(port, proto, &se, (void *)tmpbuf, in lookup_service()
320 sizeof(tmpbuf)); in lookup_service()
322 if (getservbyport_r(port, proto, &se, (void *)tmpbuf) != 0) in lookup_service()
339 strcpy(tmpbuf, sep->s_name); in lookup_service()
342 sprintf(tmpbuf, "%u", (unsigned int)ntohs(port)); in lookup_service()
343 if (strlen(tmpbuf) < buflen) in lookup_service()
345 strcpy(buf, tmpbuf); in lookup_service()
364 char tmpbuf[IF_NAMESIZE + 2]; in append_scopeid() local
369 tmpbuf[0] = '%'; in append_scopeid()
377 sprintf(&tmpbuf[1], fmt, addr6->sin6_scope_id); in append_scopeid()
381 if (if_indextoname(addr6->sin6_scope_id, &tmpbuf[1]) == NULL) in append_scopeid()
382 sprintf(&tmpbuf[1], fmt, addr6->sin6_scope_id); in append_scopeid()
385 sprintf(&tmpbuf[1], fmt, addr6->sin6_scope_id); in append_scopeid()
388 tmpbuf[IF_NAMESIZE + 1] = '\0'; in append_scopeid()
391 if(bufl + strlen(tmpbuf) < buflen) in append_scopeid()
393 strcpy(&buf[bufl], tmpbuf); in append_scopeid()