Lines Matching refs:buf
52 static char buf[EAI_BUFSIZE];
60 char *buf;
81 buf = pthread_getspecific(key);
82 if (buf == NULL) {
83 buf = malloc(EAI_BUFSIZE);
84 if (buf == NULL)
86 if (pthread_setspecific(key, buf) != 0) {
87 free(buf);
93 * XXX This really should be snprintf(buf, EAI_BUFSIZE, ...).
96 sprintf(buf, "%s: %d", gai_errlist[gai_nerr - 1], ecode);
97 return (buf);