Lines Matching refs:buffer

35 static char *RDataToName(char *data, char *buffer, int datalen, int buflen);
119 if (data->buffer == NULL) {
125 stat = (*argp->str2ent)(data->buffer,
126 strlen(data->buffer),
127 argp->buf.result, argp->buf.buffer,
137 free(data->buffer);
139 argp->returnval = argp->buf.buffer;
140 argp->returnlen = strlen(argp->buf.buffer);
142 data->buffer = NULL;
169 char *buffer;
196 if (qdata->buffer == NULL) {
200 buffer = qdata->buffer =
202 (void) memset(qdata->buffer, 0, remlen);
207 buffer = qdata->buffer =
211 (void) memset(argp->buf.buffer,
213 buffer = qdata->buffer = argp->buf.buffer;
218 buffer = qdata->buffer + strlen(qdata->buffer);
219 remlen = qdata->buflen - strlen(qdata->buffer);
227 len = snprintf(buffer, remlen, "%s %s",
230 len = snprintf(buffer, remlen, "\n%s %s",
241 syslog(LOG_DEBUG, "nss_mdns: querynamereply buffer:%s", buffer);
312 char *buffer;
334 if (qdata->buffer == NULL) {
337 buffer = qdata->buffer = calloc(1, remlen);
340 (void) memset(argp->buf.buffer, 0, remlen);
341 buffer = qdata->buffer = argp->buf.buffer;
345 buffer = qdata->buffer + strlen(qdata->buffer);
346 remlen = qdata->buflen - strlen(qdata->buffer);
359 len = snprintf(buffer, remlen, "%s %s",
362 len = snprintf(buffer, remlen, "\n%s %s",
403 RDataToName(char *data, char *buffer, int datalen, int buflen)
407 char *ptr = buffer;
409 char *bend = buffer + buflen - 1; /* terminal '\0' */
689 * Called by nscd wth a ptr to packed buffer and packed buffer size.
692 _nss_mdns_gethost_withttl(void *buffer, size_t bufsize, int ipnode)
694 nss_pheader_t *pbuf = (nss_pheader_t *)buffer;
712 * Retrieve withttl buffer and size from the passed packed buffer.
713 * Results are returned along with ttl in this buffer.
716 qdata.withttlbuffer = (char *)buffer + pbuf->data_off;
718 sret = nss_packed_getkey(buffer, bufsize, &dbname, &dbop, &arg);
736 /* Zero out the withttl buffer prior to use */
744 blen = strlen(qdata.buffer);
757 /* Return ttl in the packed buffer at ext_off */