Lines Matching refs:gbuf
54 static char gbuf[65536]; /* need large buffer to retrieve all names */ variable
431 (void) snprintf(gbuf, sizeof (gbuf), "%s%c%s%c", cp, '\0', in main()
433 if (!do_getset(fd, cmd, gbuf, sizeof (gbuf))) in main()
437 (void) memset(gbuf, '\0', sizeof (gbuf)); in main()
438 (void) strlcpy(gbuf, cp, sizeof (gbuf)); in main()
439 if (!do_getset(fd, cmd, gbuf, sizeof (gbuf))) in main()
552 (void) memset(gbuf, '\0', sizeof (gbuf)); in getset_interactive()
553 len = get_value("name to get/set ? ", gbuf, sizeof (gbuf)); in getset_interactive()
554 if (len == 1 || (gbuf[0] == 'q' && gbuf[1] == '\0')) in getset_interactive()
556 for (cp = gbuf; cp < &gbuf[len]; cp++) { in getset_interactive()
561 if (gbuf[0] != '?' && in getset_interactive()
562 get_value("value ? ", &gbuf[len], sizeof (gbuf) - len) > 1) in getset_interactive()
564 if (cmd == ND_GET && gbuf[0] != '?' && in getset_interactive()
572 buf_len = sizeof (gbuf); in getset_interactive()
573 (void) do_getset(fd, cmd, gbuf, buf_len); in getset_interactive()