Lines Matching defs:buf
81 static char *lookup_service(unsigned short port, unsigned int flags, char *buf,
85 unsigned int scopeid, char *buf, size_t buflen);
120 char buf[33];
124 lookup_service((unsigned short)(port & 0xffff), flags, buf, sizeof(buf));
227 char buf[255];
229 gethostname(buf, 255);
230 if ((domain = strchr(buf, '.')) != NULL) {
274 static char *lookup_service(unsigned short port, unsigned int flags, char *buf,
338 memcpy(buf, name, name_len + 1);
341 buf[0] = '\0'; /* LCOV_EXCL_LINE: no real service names are too big */
343 return buf;
345 buf[0] = '\0';
351 char *buf, size_t buflen)
380 bufl = ares_strlen(buf);
384 ares_strcpy(&buf[bufl], tmpbuf, buflen - bufl);