Lines Matching refs:buf
374 char *buf;
391 buf = mynode();
392 sz = min(strlen(buf), sizeof (nlp->msl_node_name) - 1);
393 (void) strncpy(nlp->msl_node_name, buf, sz);
397 if ((hp = gethostbyname(buf)) == NULL) {
417 return (mdsyserror(ep, err, buf));
425 while ((fp != NULL) && ((buf = fgets(line, sizeof (line) - 1, fp)) !=
430 while ((*buf != '\0') && (i = strcspn(buf, " \t\n")) == 0)
431 buf++;
434 if (*buf == '\0' || *buf == '#')
442 nlp->msl_node_id = strtoul(buf, NULL, 0);
443 buf += i;
446 while ((*buf != '\0') && (i = strcspn(buf, " \t\n")) == 0)
447 buf++;
450 if (*buf == '\0' || *buf == '#') {
465 (void) strncpy(nlp->msl_node_name, buf, sz);
467 buf += i;
470 while ((*buf != '\0') && (i = strcspn(buf, " \t\n")) == 0)
471 buf++;
474 if (*buf == '\0' || *buf == '#') {
489 (void) strncpy(nlp->msl_node_addr, buf, sz);