Lines Matching defs:buf
235 struct group *g = (struct group *)argp->buf.result;
236 char *buf;
254 if ((buf = malloc(NSS_LINELEN_GROUP)) == 0) {
258 s = buf;
272 if (s + len + 1 <= buf + NSS_LINELEN_GROUP) {
279 free(buf);
285 dlen = s - buf;
292 argp->buf.result = NULL;
294 if (dlen > argp->buf.buflen) {
297 (void) strncpy(argp->buf.buffer, buf, dlen);
298 argp->returnval = argp->buf.buffer;
303 parsestat = (*argp->str2ent)(buf, dlen,
304 argp->buf.result,
305 argp->buf.buffer,
306 argp->buf.buflen);
309 free(buf);