Lines Matching refs:buf
454 char *nv, *name, *val, *buf, *cp, *sep;
467 if ((cp = buf = strdup(inbuf)) == NULL)
470 while (isspace(*buf))
471 buf++;
473 if (*buf == '\0') {
478 nv = buf;
483 while ((nv = strsep(&buf, sep)) != NULL) {
582 * the list. The buf could be modified by the callback function and
583 * if this is a write operation and buf is not truncated, buf will
595 char buf[MAXLINELEN];
601 buf[0] = '\0';
603 while (fgets(buf, MAXLINELEN, fp) != NULL) {
607 len = strnlen(buf, MAXLINELEN);
609 if (!isspace(buf[i]))
613 if (i != len && buf[i] != '#' && cont) {
614 if (ipadm_str2nvlist(buf, &db_nvl, 0) == 0) {
615 cont = db_walk_func(arg, db_nvl, buf,
619 buf[0] = '\0';
626 if (nfp != NULL && buf[0] == '\0')
628 if (nfp != NULL && buf[0] != '\0' && fputs(buf, nfp) == EOF) {