Lines Matching refs:buf
44 static boolean_t do_getset(int fd, int cmd, char *buf, int buf_len);
45 static int get_value(char *msg, char *buf, int buf_len);
46 static void name_print(char *buf);
241 do_ipadm_getset(int cmd, char *buf, int buflen)
261 pname = buf;
327 for (i = 0; buf[i] != '\0'; i++)
330 pvalp = &buf[++i];
352 char buf[DLADM_PROP_VAL_MAX], *cp;
366 cp = buf;
451 name_print(char *buf)
455 for (cp = buf; cp[0]; ) {
484 do_getset(int fd, int cmd, char *buf, int buf_len)
490 if (is_obsolete(buf))
497 if (do_ipadm_getset(cmd, buf, buf_len))
503 stri.ic_dp = buf;
504 is_name_get = stri.ic_cmd == ND_GET && buf[0] == '?' && buf[1] == '\0';
515 name_print(buf);
517 for (cp = buf; *cp != '\0'; cp += strlen(cp) + 1)
525 get_value(char *msg, char *buf, int buf_len)
532 buf[buf_len-1] = '\0';
533 if (fgets(buf, buf_len-1, stdin) == NULL)
535 len = strlen(buf);
536 if (buf[len-1] == '\n')
537 buf[len - 1] = '\0';