    sb                436 global/global.c 		STRBUF	*sb = strbuf_open(0);
    sb                443 global/global.c 		strbuf_puts(sb, gtags);
    sb                444 global/global.c 		strbuf_puts(sb, " -i");
    sb                446 global/global.c 			strbuf_putc(sb, 'v');
    sb                447 global/global.c 		strbuf_putc(sb, ' ');
    sb                448 global/global.c 		strbuf_puts(sb, dbpath);
    sb                449 global/global.c 		if (system(strbuf_value(sb)))
    sb                451 global/global.c 		strbuf_close(sb);
    sb                466 global/global.c 		STRBUF *sb = strbuf_open(0);
    sb                468 global/global.c 		strbuf_putc(sb, '.');
    sb                472 global/global.c 				strbuf_putc(sb, '/');
    sb                473 global/global.c 			strbuf_puts(sb, p);
    sb                475 global/global.c 		strbuf_putc(sb, '/');
    sb                476 global/global.c 		localprefix = check_strdup(strbuf_value(sb));
    sb                477 global/global.c 		strbuf_close(sb);
    sb                912 global/global.c 		STRBUF *sb = strbuf_open(0);
    sb                914 global/global.c 		if (getconfs("langmap", sb))
    sb                915 global/global.c 			set_env("GTAGSLANGMAP", strbuf_value(sb));
    sb                916 global/global.c 		strbuf_close(sb);
    sb               1034 global/global.c 	STRBUF *sb = NULL, *ib = NULL;
    sb               1054 global/global.c 			sb = strbuf_open(0);
    sb               1055 global/global.c 			strbuf_putc(sb, '^');
    sb               1056 global/global.c 			strbuf_puts(sb, pattern);
    sb               1057 global/global.c 			strbuf_putc(sb, '$');
    sb               1058 global/global.c 			pattern = strbuf_value(sb);
    sb               1214 global/global.c 	if (sb)
    sb               1215 global/global.c 		strbuf_close(sb);
    sb               1247 global/global.c 		STRBUF *sb = strbuf_open(0);
    sb               1250 global/global.c 		strbuf_puts(sb, getenv("GTAGSLIBPATH"));
    sb               1254 global/global.c 		for (libdir = strbuf_value(sb); libdir; libdir = nextp) {
    sb               1274 global/global.c 		strbuf_close(sb);
    sb                109 gozilla/gozilla.c 	STRBUF *sb = strbuf_open(0);
    sb                127 gozilla/gozilla.c 	while ((p = strbuf_fgets(sb, ip, flag)) != NULL) {
    sb                133 gozilla/gozilla.c 		if (strbuf_unputc(sb, '\\')) {
    sb                161 gozilla/gozilla.c 	strbuf_close(sb);
    sb                319 gozilla/gozilla.c 	STRBUF *sb = NULL;
    sb                344 gozilla/gozilla.c 		sb = strbuf_open(0);
    sb                347 gozilla/gozilla.c 			while ((p = strbuf_fgets(sb, fp, STRBUF_NOCRLF)) != NULL) {
    sb                366 gozilla/gozilla.c 	if (sb != NULL)
    sb                367 gozilla/gozilla.c 		strbuf_close(sb);
    sb                381 gozilla/gozilla.c 	STRBUF *sb = strbuf_open(0);
    sb                394 gozilla/gozilla.c 	if (convertpath(dbpath, htmldir, p, sb) == 0)
    sb                395 gozilla/gozilla.c 		makefileurl(strbuf_value(sb), linenumber, URL);
    sb                398 gozilla/gozilla.c 	strbuf_close(sb);
    sb                435 gozilla/gozilla.c convertpath(const char *dbpath, const char *htmldir, const char *path, STRBUF *sb)
    sb                442 gozilla/gozilla.c 	strbuf_reset(sb);
    sb                443 gozilla/gozilla.c 	strbuf_puts(sb, htmldir);
    sb                444 gozilla/gozilla.c 	strbuf_puts(sb, "/S/");
    sb                449 gozilla/gozilla.c 		int tag1 = strbuf_getlen(sb);
    sb                457 gozilla/gozilla.c 		strbuf_puts(sb, p);
    sb                459 gozilla/gozilla.c 			int tag2 = strbuf_getlen(sb);
    sb                460 gozilla/gozilla.c 			strbuf_puts(sb, suffix[i]);
    sb                461 gozilla/gozilla.c 			if (test("f", strbuf_value(sb)))
    sb                463 gozilla/gozilla.c 			strbuf_puts(sb, gz);
    sb                464 gozilla/gozilla.c 			if (test("f", strbuf_value(sb)))
    sb                466 gozilla/gozilla.c 			strbuf_setlen(sb, tag2);
    sb                468 gozilla/gozilla.c 		strbuf_setlen(sb, tag1);
    sb                474 gozilla/gozilla.c 		strbuf_putc(sb, (*p == '/') ? ' ' : *p);
    sb                476 gozilla/gozilla.c 		int tag = strbuf_getlen(sb);
    sb                477 gozilla/gozilla.c 		strbuf_puts(sb, suffix[i]);
    sb                478 gozilla/gozilla.c 		if (test("f", strbuf_value(sb)))
    sb                480 gozilla/gozilla.c 		strbuf_puts(sb, gz);
    sb                481 gozilla/gozilla.c 		if (test("f", strbuf_value(sb)))
    sb                483 gozilla/gozilla.c 		strbuf_setlen(sb, tag);
    sb                177 gtags-cscope/gtags-cscope.c 	STATIC_STRBUF(sb);
    sb                182 gtags-cscope/gtags-cscope.c 	if (strbuf_fgets(sb, stdin, STRBUF_NOCRLF) == NULL)
    sb                184 gtags-cscope/gtags-cscope.c 	return strbuf_value(sb);
    sb                316 gtags-cscope/gtags-cscope.c execute_command(STRBUF *sb, const int com, const int opt, const char *arg)
    sb                354 gtags-cscope/gtags-cscope.c 			strbuf_puts(sb, strbuf_value(ib));
    sb                360 gtags-cscope/gtags-cscope.c 				strbuf_putc(sb, *p++);
    sb                363 gtags-cscope/gtags-cscope.c 			strbuf_putc(sb, *p++);
    sb                371 gtags-cscope/gtags-cscope.c 				strbuf_puts(sb, "<global>");
    sb                373 gtags-cscope/gtags-cscope.c 				strbuf_puts(sb, "<unknown>");
    sb                374 gtags-cscope/gtags-cscope.c 			strbuf_putc(sb, *p++);
    sb                378 gtags-cscope/gtags-cscope.c 				strbuf_putc(sb, *p++);
    sb                381 gtags-cscope/gtags-cscope.c 			strbuf_putc(sb, *p++);
    sb                385 gtags-cscope/gtags-cscope.c 				strbuf_puts(sb, "<unknown>\n");
    sb                387 gtags-cscope/gtags-cscope.c 				strbuf_puts(sb, p);
    sb                412 gtags-cscope/gtags-cscope.c 	static STRBUF *sb;
    sb                416 gtags-cscope/gtags-cscope.c 	if (sb == NULL)
    sb                417 gtags-cscope/gtags-cscope.c 		sb = strbuf_open(1024 * 1024);
    sb                419 gtags-cscope/gtags-cscope.c 		strbuf_reset(sb);
    sb                460 gtags-cscope/gtags-cscope.c 		count += execute_command(sb, com, 0, arg);
    sb                461 gtags-cscope/gtags-cscope.c 		count += execute_command(sb, com, (count > 0) ? 'r' : 's', arg);
    sb                463 gtags-cscope/gtags-cscope.c 		count += execute_command(sb, com, opt, arg);
    sb                481 gtags-cscope/gtags-cscope.c 		fwrite(strbuf_value(sb), 1, strbuf_getlen(sb), stdout);
    sb                102 gtags-parser/C.c 	STRBUF *sb = strbuf_open(0);
    sb                148 gtags-parser/C.c 					strbuf_reset(sb);
    sb                149 gtags-parser/C.c 					strbuf_puts(sb, sp);
    sb                150 gtags-parser/C.c 					saveline = strbuf_value(sb);
    sb                521 gtags-parser/C.c 	strbuf_close(sb);
    sb                 89 gtags-parser/Cpp.c 	STRBUF *sb = strbuf_open(0);
    sb                131 gtags-parser/Cpp.c 					strbuf_reset(sb);
    sb                132 gtags-parser/Cpp.c 					strbuf_puts(sb, sp);
    sb                133 gtags-parser/Cpp.c 					saveline = strbuf_value(sb);
    sb                563 gtags-parser/Cpp.c 	strbuf_close(sb);
    sb                240 gtags-parser/gctags.c 		STRBUF *sb = strbuf_open(0);
    sb                251 gtags-parser/gctags.c 			strbuf_puts0(sb, p);
    sb                257 gtags-parser/gctags.c 		p = (char *)check_malloc(strbuf_getlen(sb) + 1);
    sb                258 gtags-parser/gctags.c 		memcpy(p, strbuf_value(sb), strbuf_getlen(sb) + 1);
    sb                264 gtags-parser/gctags.c 		strbuf_close(sb);
    sb                156 gtags/gtags.c  	STRBUF *sb = strbuf_open(0);
    sb                334 gtags/gtags.c  	strbuf_reset(sb);
    sb                342 gtags/gtags.c  	strbuf_reset(sb);
    sb                343 gtags/gtags.c  	if (getconfs("langmap", sb))
    sb                344 gtags/gtags.c  		langmap = check_strdup(strbuf_value(sb));
    sb                375 gtags/gtags.c  		strbuf_reset(sb);
    sb                379 gtags/gtags.c  		if (!getconfs(dbname(db), sb))
    sb                381 gtags/gtags.c  		if (!usable(strmake(strbuf_value(sb), " \t")))
    sb                382 gtags/gtags.c  			die("Parser '%s' not found or not executable.", strmake(strbuf_value(sb), " \t"));
    sb                386 gtags/gtags.c  		strbuf_reset(sb);
    sb                388 gtags/gtags.c  			if (getconfs("GTAGS_extra", sb))
    sb                389 gtags/gtags.c  				if (system(strbuf_value(sb)))
    sb                390 gtags/gtags.c  					fprintf(stderr, "GTAGS_extra command failed: %s\n", strbuf_value(sb));
    sb                392 gtags/gtags.c  			if (getconfs("GRTAGS_extra", sb))
    sb                393 gtags/gtags.c  				if (system(strbuf_value(sb)))
    sb                394 gtags/gtags.c  					fprintf(stderr, "GRTAGS_extra command failed: %s\n", strbuf_value(sb));
    sb                396 gtags/gtags.c  			if (getconfs("GSYMS_extra", sb))
    sb                397 gtags/gtags.c  				if (system(strbuf_value(sb)))
    sb                398 gtags/gtags.c  					fprintf(stderr, "GSYMS_extra command failed: %s\n", strbuf_value(sb));
    sb                407 gtags/gtags.c  		strbuf_reset(sb);
    sb                408 gtags/gtags.c  		strbuf_puts(sb, "mkid");
    sb                410 gtags/gtags.c  			strbuf_puts(sb, " -v");
    sb                415 gtags/gtags.c  			strbuf_puts(sb, " 1>&2");
    sb                417 gtags/gtags.c  			strbuf_puts(sb, " >/dev/null");
    sb                420 gtags/gtags.c  			fprintf(stderr, "executing mkid like: %s\n", strbuf_value(sb));
    sb                421 gtags/gtags.c  		if (system(strbuf_value(sb)))
    sb                422 gtags/gtags.c  			die("mkid failed: %s", strbuf_value(sb));
    sb                423 gtags/gtags.c  		strbuf_reset(sb);
    sb                424 gtags/gtags.c  		strbuf_puts(sb, "chmod 644 ");
    sb                425 gtags/gtags.c  		strbuf_puts(sb, makepath(dbpath, "ID", NULL));
    sb                426 gtags/gtags.c  		if (system(strbuf_value(sb)))
    sb                427 gtags/gtags.c  			die("chmod failed: %s", strbuf_value(sb));
    sb                432 gtags/gtags.c  	strbuf_close(sb);
    sb                843 gtags/gtags.c  		STRBUF *sb = strbuf_open(0);
    sb                844 gtags/gtags.c  		if (getconfs(name, sb))
    sb                845 gtags/gtags.c  			fprintf(stdout, "%s\n", strbuf_value(sb));
    sb                848 gtags/gtags.c  		strbuf_close(sb);
    sb                214 htags/common.c 	STATIC_STRBUF(sb);
    sb                216 htags/common.c 	strbuf_clear(sb);
    sb                217 htags/common.c 	strbuf_sprintf(sb, "../%s", dir);
    sb                218 htags/common.c 	return strbuf_value(sb);
    sb                228 htags/common.c 	STATIC_STRBUF(sb);
    sb                232 htags/common.c 	strbuf_clear(sb);
    sb                234 htags/common.c 		strbuf_putc(sb, c);
    sb                236 htags/common.c 			int curpos = strbuf_getlen(sb);
    sb                241 htags/common.c 					strbuf_value(sb) + start_position,
    sb                244 htags/common.c 					strbuf_setlen(sb, start_position);
    sb                245 htags/common.c 					strbuf_puts(sb, parent_dir);
    sb                256 htags/common.c 	return strbuf_value(sb);
    sb                304 htags/common.c 	STATIC_STRBUF(sb);
    sb                307 htags/common.c 	strbuf_clear(sb);
    sb                314 htags/common.c 			strbuf_puts_nl(sb, "<?xml version='1.0' encoding='ISO-8859-1'?>");
    sb                315 htags/common.c 			strbuf_sprintf(sb, "<?xml-stylesheet type='text/css' href='%sstyle.css'?>\n", dir);
    sb                326 htags/common.c 			strbuf_puts_nl(sb, "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Frameset//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd'>");
    sb                328 htags/common.c 			strbuf_puts_nl(sb, "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN' 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'>");
    sb                330 htags/common.c 			strbuf_puts_nl(sb, "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>");
    sb                332 htags/common.c 	strbuf_puts_nl(sb, html_begin);
    sb                333 htags/common.c 	strbuf_puts_nl(sb, html_head_begin);
    sb                334 htags/common.c 	strbuf_puts(sb, html_title_begin);
    sb                335 htags/common.c 	strbuf_puts(sb, title);
    sb                336 htags/common.c 	strbuf_puts_nl(sb, html_title_end);
    sb                337 htags/common.c 	strbuf_sprintf(sb, "<meta name='robots' content='noindex,nofollow'%s>\n", empty_element);
    sb                338 htags/common.c 	strbuf_sprintf(sb, "<meta name='generator' content='GLOBAL-%s'%s>\n", get_version(), empty_element);
    sb                340 htags/common.c 		strbuf_sprintf(sb, "<meta http-equiv='Content-Style-Type' content='text/css'%s>\n", empty_element);
    sb                341 htags/common.c 		strbuf_sprintf(sb, "<link rel='stylesheet' type='text/css' href='%sstyle.css'%s>\n", dir, empty_element);
    sb                343 htags/common.c 	strbuf_puts(sb, html_head_end);
    sb                344 htags/common.c 	return strbuf_value(sb);
    sb                389 htags/common.c 	STATIC_STRBUF(sb);
    sb                392 htags/common.c 	strbuf_clear(sb);
    sb                394 htags/common.c 		strbuf_sprintf(sb, "<img class='icon' src='%s/%s.%s' alt='[%s]'%s>",
    sb                397 htags/common.c 		strbuf_sprintf(sb, "<img src='%s/%s.%s' alt='[%s]' %s%s>",
    sb                399 htags/common.c 	return strbuf_value(sb);
    sb                418 htags/common.c 	STATIC_STRBUF(sb);
    sb                420 htags/common.c 	strbuf_clear(sb);
    sb                428 htags/common.c 			strbuf_sprintf(sb, "<a id='%s' />", name);
    sb                430 htags/common.c 			strbuf_sprintf(sb, "<a id='%s' name='%s' />", name, name);
    sb                432 htags/common.c 		strbuf_sprintf(sb, "<a name='%s'>", name);
    sb                434 htags/common.c 	return strbuf_value(sb);
    sb                451 htags/common.c 	STATIC_STRBUF(sb);
    sb                453 htags/common.c 	strbuf_clear(sb);
    sb                458 htags/common.c 	strbuf_puts(sb, "<a href='");
    sb                461 htags/common.c 			strbuf_puts(sb, dir);
    sb                462 htags/common.c 			strbuf_putc(sb, '/');
    sb                464 htags/common.c 		strbuf_puts(sb, file);
    sb                466 htags/common.c 			strbuf_putc(sb, '.');
    sb                467 htags/common.c 			strbuf_puts(sb, suffix);
    sb                471 htags/common.c 		strbuf_putc(sb, '#');
    sb                477 htags/common.c 			strbuf_putc(sb, 'L');
    sb                478 htags/common.c 		strbuf_puts(sb, key);
    sb                480 htags/common.c 	strbuf_putc(sb, '\'');
    sb                482 htags/common.c 		strbuf_sprintf(sb, " target='%s'", target);
    sb                484 htags/common.c 		strbuf_sprintf(sb, " title='%s'", title);
    sb                485 htags/common.c 	strbuf_putc(sb, '>');
    sb                486 htags/common.c 	return strbuf_value(sb);
    sb                526 htags/common.c 	STATIC_STRBUF(sb);
    sb                528 htags/common.c 	if (strbuf_empty(sb)) {
    sb                529 htags/common.c 		strbuf_clear(sb);
    sb                532 htags/common.c 				strbuf_sprintf(sb, "%s\n%s%s%s%s",
    sb                539 htags/common.c 				strbuf_sprintf(sb, "%s\n%s%s%s%s",
    sb                547 htags/common.c 			strbuf_puts(sb, verbatim_begin);
    sb                550 htags/common.c 	return strbuf_value(sb);
    sb                560 htags/common.c 	STATIC_STRBUF(sb);
    sb                564 htags/common.c 	strbuf_clear(sb);
    sb                573 htags/common.c 			strbuf_puts(sb, "<tr><td class='tag'>");
    sb                574 htags/common.c 			strbuf_puts(sb, gen_href_begin(srcdir, fid, HTML, ptable.part[PART_LNO].start));
    sb                575 htags/common.c 			strbuf_puts(sb, ptable.part[PART_TAG].start);
    sb                576 htags/common.c 			strbuf_puts(sb, gen_href_end());
    sb                577 htags/common.c 			strbuf_sprintf(sb, "</td><td class='line'>%s</td><td class='file'>%s</td><td class='code'>",
    sb                580 htags/common.c 			strbuf_puts(sb, "<tr><td nowrap>");
    sb                581 htags/common.c 			strbuf_puts(sb, gen_href_begin(srcdir, fid, HTML, ptable.part[PART_LNO].start));
    sb                582 htags/common.c 			strbuf_puts(sb, ptable.part[PART_TAG].start);
    sb                583 htags/common.c 			strbuf_puts(sb, gen_href_end());
    sb                584 htags/common.c 			strbuf_sprintf(sb, "</td><td nowrap align='right'>%s</td><td nowrap align='left'>%s</td><td nowrap>",
    sb                592 htags/common.c 				strbuf_puts(sb, quote_amp);
    sb                594 htags/common.c 				strbuf_puts(sb, quote_little);
    sb                596 htags/common.c 				strbuf_puts(sb, quote_great);
    sb                598 htags/common.c 				strbuf_puts(sb, quote_space);
    sb                600 htags/common.c 				strbuf_puts(sb, quote_space);
    sb                601 htags/common.c 				strbuf_puts(sb, quote_space);
    sb                603 htags/common.c 				strbuf_putc(sb, c);
    sb                605 htags/common.c 		strbuf_puts(sb, "</td></tr>");
    sb                610 htags/common.c 		strbuf_puts(sb, gen_href_begin(srcdir, fid, HTML, ptable.part[PART_LNO].start));
    sb                611 htags/common.c 		strbuf_puts(sb, ptable.part[PART_TAG].start);
    sb                612 htags/common.c 		strbuf_puts(sb, gen_href_end());
    sb                624 htags/common.c 				strbuf_puts(sb, quote_amp);
    sb                626 htags/common.c 				strbuf_puts(sb, quote_little);
    sb                628 htags/common.c 				strbuf_puts(sb, quote_great);
    sb                630 htags/common.c 				strbuf_putc(sb, c);
    sb                633 htags/common.c 	return strbuf_value(sb);
    sb                651 htags/common.c 	STATIC_STRBUF(sb);
    sb                653 htags/common.c 	if (strbuf_empty(sb)) {
    sb                654 htags/common.c 		strbuf_clear(sb);
    sb                660 htags/common.c 				strbuf_sprintf(sb, "<div class='%s'>", align);
    sb                662 htags/common.c 				strbuf_sprintf(sb, "<div align='%s'>", align);
    sb                664 htags/common.c 			strbuf_puts(sb, "<div>");
    sb                667 htags/common.c 	return strbuf_value(sb);
    sb                685 htags/common.c 	STATIC_STRBUF(sb);
    sb                687 htags/common.c 	strbuf_clear(sb);
    sb                688 htags/common.c 	strbuf_sprintf(sb, "<form method='get' action='%s'", action);
    sb                690 htags/common.c 		strbuf_sprintf(sb, " target='%s'", target);
    sb                691 htags/common.c 	strbuf_puts(sb, ">");
    sb                692 htags/common.c 	return strbuf_value(sb);
    sb                732 htags/common.c 	STATIC_STRBUF(sb);
    sb                734 htags/common.c 	strbuf_clear(sb);
    sb                735 htags/common.c 	strbuf_puts(sb, "<input");
    sb                737 htags/common.c 		strbuf_sprintf(sb, " type='%s'", type);
    sb                739 htags/common.c 		strbuf_sprintf(sb, " name='%s'", name);
    sb                741 htags/common.c 		strbuf_sprintf(sb, " value='%s'", value);
    sb                744 htags/common.c 			strbuf_puts(sb, " checked='checked'");
    sb                746 htags/common.c 			strbuf_puts(sb, " checked");
    sb                749 htags/common.c 		strbuf_sprintf(sb, " title='%s'", title);
    sb                750 htags/common.c 	strbuf_sprintf(sb, "%s>", empty_element);
    sb                751 htags/common.c 	return strbuf_value(sb);
    sb                761 htags/common.c 	STATIC_STRBUF(sb);
    sb                763 htags/common.c 	strbuf_clear(sb);
    sb                764 htags/common.c 	strbuf_sprintf(sb, "<frameset %s>", contents);
    sb                765 htags/common.c 	return strbuf_value(sb);
    sb                783 htags/common.c 	STATIC_STRBUF(sb);
    sb                785 htags/common.c 	strbuf_clear(sb);
    sb                786 htags/common.c 	strbuf_sprintf(sb, "<frame name='%s' id='%s' src='%s'%s>", name, name, src, empty_element);
    sb                787 htags/common.c 	return strbuf_value(sb);
    sb                 53 htags/defineindex.c 	STRBUF *sb = strbuf_open(0);
    sb                103 htags/defineindex.c 	while ((_ = strbuf_fgets(sb, TAGS, STRBUF_NOCRLF)) != NULL) {
    sb                302 htags/defineindex.c 	strbuf_close(sb);
    sb                 53 htags/dupindex.c 	STRBUF *sb = strbuf_open(0);
    sb                 92 htags/dupindex.c 		while ((ctags_x = strbuf_fgets(sb, ip, STRBUF_NOCRLF)) != NULL) {
    sb                193 htags/dupindex.c 	strbuf_close(sb);
    sb                241 htags/fileindex.c 	STATIC_STRBUF(sb);
    sb                243 htags/fileindex.c 	strbuf_clear(sb);
    sb                244 htags/fileindex.c 	strbuf_puts(sb, path);
    sb                245 htags/fileindex.c 	strbuf_putc(sb, '/');
    sb                246 htags/fileindex.c 	return strbuf_value(sb);
    sb                434 htags/fileindex.c 	STATIC_STRBUF(sb);
    sb                438 htags/fileindex.c 	strbuf_clear(sb);
    sb                439 htags/fileindex.c 	strbuf_puts(sb, removedotslash(dir));
    sb                440 htags/fileindex.c 	strbuf_putc(sb, '/');
    sb                441 htags/fileindex.c 	fputs_nl(gen_page_begin(strbuf_value(sb), SUBDIR), op);
    sb                444 htags/fileindex.c 	strbuf_clear(sb);
    sb                445 htags/fileindex.c  	strbuf_sprintf(sb, "%s%sroot%s/", header_begin, gen_href_begin(NULL, indexlink, normal_suffix, NULL), gen_href_end());
    sb                446 htags/fileindex.c 	fputs(strbuf_value(sb), op);
    sb                546 htags/fileindex.c 	STATIC_STRBUF(sb);
    sb                562 htags/fileindex.c 	strbuf_clear(sb);
    sb                564 htags/fileindex.c 		strbuf_puts(sb, fitem_begin);
    sb                566 htags/fileindex.c 		strbuf_puts(sb, item_begin);
    sb                571 htags/fileindex.c 	strbuf_puts(sb, gen_href_begin_with_title_target(level == 0 ? SRCS: upperdir(SRCS),
    sb                583 htags/fileindex.c 		strbuf_puts(sb, gen_image(level == 0 ? CURRENT : PARENT, text_icon, removedotslash(path)));
    sb                584 htags/fileindex.c 		strbuf_puts(sb, quote_space);
    sb                586 htags/fileindex.c 	strbuf_puts(sb, full_path ? removedotslash(path) : lastpart(path));
    sb                587 htags/fileindex.c 	strbuf_puts(sb, gen_href_end());
    sb                589 htags/fileindex.c 		strbuf_puts(sb, fitem_end);
    sb                591 htags/fileindex.c 		strbuf_puts(sb, item_end);
    sb                593 htags/fileindex.c 		strbuf_puts(sb, br);
    sb                594 htags/fileindex.c 	strbuf_putc(sb, '\n');
    sb                597 htags/fileindex.c 	return (const char *)strbuf_value(sb);
    sb                609 htags/fileindex.c 	STATIC_STRBUF(sb);
    sb                617 htags/fileindex.c 	strbuf_clear(sb);
    sb                619 htags/fileindex.c 		strbuf_puts(sb, fitem_begin);
    sb                621 htags/fileindex.c 		strbuf_puts(sb, item_begin);
    sb                622 htags/fileindex.c 	strbuf_puts(sb, gen_href_begin_with_title(level == 0 ? "files" : NULL,
    sb                625 htags/fileindex.c 		strbuf_puts(sb, gen_image(level == 0 ? CURRENT : PARENT, dir_icon, appendslash(path)));
    sb                626 htags/fileindex.c 		strbuf_puts(sb, quote_space);
    sb                628 htags/fileindex.c 	strbuf_sprintf(sb, "%s/%s", lastpart(path), gen_href_end());
    sb                630 htags/fileindex.c 		strbuf_puts(sb, fitem_end);
    sb                632 htags/fileindex.c 		strbuf_puts(sb, item_end);
    sb                634 htags/fileindex.c 		strbuf_puts(sb, br);
    sb                635 htags/fileindex.c 	strbuf_putc(sb, '\n');
    sb                636 htags/fileindex.c 	return (const char *)strbuf_value(sb);
    sb                647 htags/fileindex.c 	STATIC_STRBUF(sb);
    sb                670 htags/fileindex.c 	strbuf_clear(sb);
    sb                671 htags/fileindex.c 	strbuf_puts(sb, "\\.(");
    sb                678 htags/fileindex.c 				strbuf_putc(sb, '\\');
    sb                681 htags/fileindex.c 			strbuf_putc(sb, c);
    sb                684 htags/fileindex.c 	strbuf_puts(sb, ")$");
    sb                685 htags/fileindex.c 	if (regcomp(&is_include_file, strbuf_value(sb), flags) != 0)
    sb                686 htags/fileindex.c 		die("cannot compile regular expression '%s'.", strbuf_value(sb));
    sb                390 htags/htags.c  	STRBUF *sb = strbuf_open(0);
    sb                429 htags/htags.c  	strbuf_putc(sb, '(');
    sb                431 htags/htags.c  		strbuf_puts(sb, tab[i].name);
    sb                432 htags/htags.c  		strbuf_putc(sb, '|');
    sb                434 htags/htags.c  	strbuf_unputc(sb, '|');
    sb                435 htags/htags.c  	strbuf_putc(sb, ')');
    sb                436 htags/htags.c  	if (regcomp(&preg, strbuf_value(sb), REG_EXTENDED) != 0)
    sb                441 htags/htags.c  	strbuf_reset(sb);
    sb                442 htags/htags.c  	strbuf_sprintf(sb, "%s/gtags/%s.tmpl", datadir, file);
    sb                443 htags/htags.c  	ip = fopen(strbuf_value(sb), "r");
    sb                445 htags/htags.c  		die("skeleton file '%s' not found.", strbuf_value(sb));
    sb                449 htags/htags.c  	strbuf_reset(sb);
    sb                453 htags/htags.c  	while ((_ = strbuf_fgets(sb, ip, STRBUF_NOCRLF)) != NULL) {
    sb                488 htags/htags.c  	strbuf_close(sb);
    sb                621 htags/htags.c  	STATIC_STRBUF(sb);
    sb                623 htags/htags.c  	strbuf_clear(sb);
    sb                624 htags/htags.c  	strbuf_puts(sb, header_begin);
    sb                626 htags/htags.c  		strbuf_puts(sb, gen_href_begin(NULL, "search", normal_suffix, NULL));
    sb                627 htags/htags.c  	strbuf_puts(sb, "SEARCH");
    sb                629 htags/htags.c  		strbuf_puts(sb, gen_href_end());
    sb                630 htags/htags.c  	strbuf_puts_nl(sb, header_end);
    sb                632 htags/htags.c  		strbuf_puts(sb, "Please input object name and select [Search]. POSIX's regular expression is allowed.");
    sb                633 htags/htags.c  		strbuf_puts_nl(sb, br);
    sb                635 htags/htags.c  	strbuf_puts_nl(sb, gen_form_begin(target));
    sb                636 htags/htags.c  	strbuf_puts_nl(sb, gen_input("pattern", NULL, NULL));
    sb                639 htags/htags.c  	strbuf_puts_nl(sb, gen_input("id", id, "hidden"));
    sb                640 htags/htags.c  	strbuf_puts_nl(sb, gen_input(NULL, "Search", "submit"));
    sb                641 htags/htags.c  	strbuf_puts(sb, gen_input(NULL, "Reset", "reset"));
    sb                642 htags/htags.c  	strbuf_puts_nl(sb, br);
    sb                643 htags/htags.c  	strbuf_puts(sb, gen_input_radio("type", "definition", 1, "Retrieve the definition place of the specified symbol."));
    sb                644 htags/htags.c  	strbuf_puts_nl(sb, target ? "Def" : "Definition");
    sb                645 htags/htags.c  	strbuf_puts(sb, gen_input_radio("type", "reference", 0, "Retrieve the reference place of the specified symbol."));
    sb                646 htags/htags.c  	strbuf_puts_nl(sb, target ? "Ref" : "Reference");
    sb                648 htags/htags.c  		strbuf_puts(sb, gen_input_radio("type", "symbol", 0, "Retrieve the place of the specified symbol is used."));
    sb                649 htags/htags.c  		strbuf_puts_nl(sb, target ? "Sym" : "Other symbol");
    sb                651 htags/htags.c  	strbuf_puts(sb, gen_input_radio("type", "path", 0, "Look for path name which matches to the specified pattern."));
    sb                652 htags/htags.c  	strbuf_puts(sb, target ? "Path" : "Path name");
    sb                654 htags/htags.c  		strbuf_puts(sb, gen_input_radio("type", "grep", 0, "Retrieve lines which matches to the specified pattern."));
    sb                655 htags/htags.c  		strbuf_puts_nl(sb, target ? "Grep" : "Grep pattern");
    sb                658 htags/htags.c  		strbuf_puts(sb, gen_input_radio("type", "idutils", 0, "Retrieve lines which matches to the specified pattern using idutils(1)."));
    sb                659 htags/htags.c  		strbuf_puts_nl(sb, target ? "Id" : "Id pattern");
    sb                661 htags/htags.c  	strbuf_puts_nl(sb, br);
    sb                662 htags/htags.c  	strbuf_puts(sb, gen_input_checkbox("icase", "1", "Ignore case distinctions in the pattern."));
    sb                663 htags/htags.c  	strbuf_puts_nl(sb, target ? "Icase" : "Ignore case");
    sb                665 htags/htags.c  		strbuf_puts(sb, gen_input_checkbox("other", "1", "Files other than the source code are also retrieved."));
    sb                666 htags/htags.c  		strbuf_puts_nl(sb, target ? "Other" : "Other files");
    sb                669 htags/htags.c  		strbuf_puts_nl(sb, br);
    sb                670 htags/htags.c  		strbuf_puts(sb, "('Other files' is effective only to 'Path name'");
    sb                672 htags/htags.c  			strbuf_puts(sb, " and 'Grep pattern'");
    sb                673 htags/htags.c  		strbuf_puts_nl(sb, ".)");
    sb                675 htags/htags.c  	strbuf_puts_nl(sb, gen_form_end());
    sb                676 htags/htags.c  	return strbuf_value(sb);
    sb                895 htags/htags.c  	STRBUF *sb = strbuf_open(0);
    sb                901 htags/htags.c  	strbuf_puts(sb, title_begin);
    sb                902 htags/htags.c  	strbuf_puts(sb, title);
    sb                903 htags/htags.c  	strbuf_puts_nl(sb, title_end);
    sb                904 htags/htags.c  	strbuf_puts_nl(sb, gen_div_begin("right"));
    sb                905 htags/htags.c  	strbuf_sprintf(sb, "Last updated %s%s\n", now(), br);
    sb                908 htags/htags.c  		strbuf_puts(sb, gen_href_begin_with_title_target(NULL, www, NULL, NULL, tips,"_top"));
    sb                909 htags/htags.c  		strbuf_puts(sb, gen_image(CURRENT, "pglobe", buf));
    sb                910 htags/htags.c  		strbuf_puts(sb, gen_href_end());
    sb                911 htags/htags.c  		strbuf_puts(sb, br);
    sb                913 htags/htags.c  		strbuf_sprintf(sb, "Powered by %sGLOBAL-%s%s.%s\n",
    sb                919 htags/htags.c  	strbuf_puts_nl(sb, gen_div_end());
    sb                920 htags/htags.c  	strbuf_puts_nl(sb, hr);
    sb                928 htags/htags.c  				strbuf_puts_nl(sb, caution_begin);
    sb                929 htags/htags.c  				strbuf_sprintf(sb, "<font size='+2' color='red'>CAUTION</font>%s\n", br);
    sb                930 htags/htags.c  				strbuf_sprintf(sb, "This hypertext consist of %d files.\n", html_count);
    sb                931 htags/htags.c  				strbuf_puts_nl(sb, "Please don't download whole hypertext using hypertext copy tools.");
    sb                932 htags/htags.c  				strbuf_puts_nl(sb, "Our network cannot afford such traffic.");
    sb                933 htags/htags.c  				strbuf_puts_nl(sb, "Instead, you can generate same thing in your computer using");
    sb                934 htags/htags.c  				strbuf_puts(sb, gen_href_begin_with_title_target(NULL, www, NULL, NULL, NULL, "_top"));
    sb                935 htags/htags.c  				strbuf_puts(sb, "GLOBAL source code tag system");
    sb                936 htags/htags.c  				strbuf_puts_nl(sb, gen_href_end());
    sb                937 htags/htags.c  				strbuf_puts_nl(sb, "Thank you.");
    sb                938 htags/htags.c  				strbuf_puts_nl(sb, caution_end);
    sb                939 htags/htags.c  				strbuf_sprintf(sb, "\n%s\n", hr);
    sb                944 htags/htags.c  				strbuf_puts(sb, makesearchpart(action, id, NULL));
    sb                945 htags/htags.c  				strbuf_puts_nl(sb, hr);
    sb                949 htags/htags.c  			strbuf_sprintf(sb, "%sMAINS%s\n", header_begin, header_end);
    sb                955 htags/htags.c  			strbuf_puts_nl(sb, gen_list_begin());
    sb                957 htags/htags.c  				strbuf_puts_nl(sb, gen_list_body(SRCS, _));
    sb                959 htags/htags.c  			strbuf_puts_nl(sb, gen_list_end());
    sb                962 htags/htags.c  			strbuf_puts_nl(sb, hr);
    sb                966 htags/htags.c  				strbuf_puts(sb, header_begin);
    sb                967 htags/htags.c  				strbuf_puts(sb, title_define_index);
    sb                968 htags/htags.c  				strbuf_puts_nl(sb, header_end);
    sb                969 htags/htags.c  				strbuf_puts(sb, defines);
    sb                971 htags/htags.c  				strbuf_puts(sb, header_begin);
    sb                972 htags/htags.c  				strbuf_puts(sb, gen_href_begin(NULL, "defines", normal_suffix, NULL));
    sb                973 htags/htags.c  				strbuf_puts(sb, title_define_index);
    sb                974 htags/htags.c  				strbuf_puts(sb, gen_href_end());
    sb                975 htags/htags.c  				strbuf_puts_nl(sb, header_end);
    sb                977 htags/htags.c  			strbuf_puts_nl(sb, hr);
    sb                981 htags/htags.c  				strbuf_puts(sb, header_begin);
    sb                982 htags/htags.c  				strbuf_puts(sb, gen_href_begin(NULL, "files", normal_suffix, NULL));
    sb                983 htags/htags.c  				strbuf_puts(sb, title_file_index);
    sb                984 htags/htags.c  				strbuf_puts(sb, gen_href_end());
    sb                985 htags/htags.c  				strbuf_puts_nl(sb, header_end);
    sb                987 htags/htags.c  				strbuf_puts(sb, header_begin);
    sb                988 htags/htags.c  				strbuf_puts(sb, title_file_index);
    sb                989 htags/htags.c  				strbuf_puts_nl(sb, header_end);
    sb                991 htags/htags.c  					strbuf_puts_nl(sb, flist_begin);
    sb                993 htags/htags.c  					strbuf_puts_nl(sb, list_begin);
    sb                994 htags/htags.c  				strbuf_puts(sb, files);
    sb                996 htags/htags.c  					strbuf_puts_nl(sb, flist_end);
    sb                998 htags/htags.c  					strbuf_puts_nl(sb, list_end);
    sb               1000 htags/htags.c  					strbuf_puts_nl(sb, br);
    sb               1001 htags/htags.c  				strbuf_puts_nl(sb, hr);
    sb               1011 htags/htags.c  	return strbuf_value(sb);
    sb               1045 htags/htags.c  	STRBUF *sb = strbuf_open(0);
    sb               1095 htags/htags.c  	strbuf_reset(sb);
    sb               1096 htags/htags.c  	if (!getconfs("datadir", sb))
    sb               1098 htags/htags.c  	strlimcpy(datadir, strbuf_value(sb), sizeof(datadir));
    sb               1117 htags/htags.c  	strbuf_reset(sb);
    sb               1118 htags/htags.c  	if (getconfs("gzipped_suffix", sb))
    sb               1119 htags/htags.c  		gzipped_suffix = check_strdup(strbuf_value(sb));
    sb               1120 htags/htags.c  	strbuf_reset(sb);
    sb               1121 htags/htags.c  	if (getconfs("normal_suffix", sb))
    sb               1122 htags/htags.c  		normal_suffix = check_strdup(strbuf_value(sb));
    sb               1123 htags/htags.c  	strbuf_reset(sb);
    sb               1124 htags/htags.c  	if (getconfs("definition_header", sb)) {
    sb               1125 htags/htags.c  		p = strbuf_value(sb);
    sb               1153 htags/htags.c  	strbuf_reset(sb);
    sb               1154 htags/htags.c  	if (getconfs("icon_spec", sb))
    sb               1155 htags/htags.c  		icon_spec = check_strdup(strbuf_value(sb));
    sb               1156 htags/htags.c  	strbuf_reset(sb);
    sb               1157 htags/htags.c  	if (getconfs("icon_suffix", sb))
    sb               1158 htags/htags.c  		icon_suffix = check_strdup(strbuf_value(sb));
    sb               1159 htags/htags.c  	strbuf_reset(sb);
    sb               1160 htags/htags.c  	if (getconfs("prolog_script", sb))
    sb               1161 htags/htags.c  		prolog_script = check_strdup(strbuf_value(sb));
    sb               1162 htags/htags.c  	strbuf_reset(sb);
    sb               1163 htags/htags.c  	if (getconfs("epilog_script", sb))
    sb               1164 htags/htags.c  		epilog_script = check_strdup(strbuf_value(sb));
    sb               1169 htags/htags.c  	strbuf_reset(sb);
    sb               1170 htags/htags.c  	if (getconfs("script_alias", sb)) {
    sb               1171 htags/htags.c  		p = check_strdup(strbuf_value(sb));
    sb               1180 htags/htags.c  	strbuf_reset(sb);
    sb               1181 htags/htags.c  	if (getconfs("body_begin", sb)) {
    sb               1182 htags/htags.c  		p = check_strdup(strbuf_value(sb));
    sb               1183 htags/htags.c  		strbuf_reset(sb);
    sb               1184 htags/htags.c  		if (getconfs("body_end", sb)) {
    sb               1185 htags/htags.c  			q = check_strdup(strbuf_value(sb));
    sb               1192 htags/htags.c  	strbuf_reset(sb);
    sb               1193 htags/htags.c  	if (getconfs("table_begin", sb)) {
    sb               1194 htags/htags.c  		p = check_strdup(strbuf_value(sb));
    sb               1195 htags/htags.c  		strbuf_reset(sb);
    sb               1196 htags/htags.c  		if (getconfs("table_end", sb)) {
    sb               1197 htags/htags.c  			q = check_strdup(strbuf_value(sb));
    sb               1204 htags/htags.c  	strbuf_reset(sb);
    sb               1205 htags/htags.c  	if (getconfs("title_begin", sb)) {
    sb               1206 htags/htags.c  		p = check_strdup(strbuf_value(sb));
    sb               1207 htags/htags.c  		strbuf_reset(sb);
    sb               1208 htags/htags.c  		if (getconfs("title_end", sb)) {
    sb               1209 htags/htags.c  			q = check_strdup(strbuf_value(sb));
    sb               1216 htags/htags.c  	strbuf_reset(sb);
    sb               1217 htags/htags.c  	if (getconfs("comment_begin", sb)) {
    sb               1218 htags/htags.c  		p = check_strdup(strbuf_value(sb));
    sb               1219 htags/htags.c  		strbuf_reset(sb);
    sb               1220 htags/htags.c  		if (getconfs("comment_end", sb)) {
    sb               1221 htags/htags.c  			q = check_strdup(strbuf_value(sb));
    sb               1228 htags/htags.c  	strbuf_reset(sb);
    sb               1229 htags/htags.c  	if (getconfs("sharp_begin", sb)) {
    sb               1230 htags/htags.c  		p = check_strdup(strbuf_value(sb));
    sb               1231 htags/htags.c  		strbuf_reset(sb);
    sb               1232 htags/htags.c  		if (getconfs("sharp_end", sb)) {
    sb               1233 htags/htags.c  			q = check_strdup(strbuf_value(sb));
    sb               1240 htags/htags.c  	strbuf_reset(sb);
    sb               1241 htags/htags.c  	if (getconfs("brace_begin", sb)) {
    sb               1242 htags/htags.c  		p = check_strdup(strbuf_value(sb));
    sb               1243 htags/htags.c  		strbuf_reset(sb);
    sb               1244 htags/htags.c  		if (getconfs("brace_end", sb)) {
    sb               1245 htags/htags.c  			q = check_strdup(strbuf_value(sb));
    sb               1252 htags/htags.c  	strbuf_reset(sb);
    sb               1253 htags/htags.c  	if (getconfs("reserved_begin", sb)) {
    sb               1254 htags/htags.c  		p = check_strdup(strbuf_value(sb));
    sb               1255 htags/htags.c  		strbuf_reset(sb);
    sb               1256 htags/htags.c  		if (getconfs("reserved_end", sb)) {
    sb               1257 htags/htags.c  			q = check_strdup(strbuf_value(sb));
    sb               1264 htags/htags.c  	strbuf_reset(sb);
    sb               1265 htags/htags.c  	if (getconfs("position_begin", sb)) {
    sb               1266 htags/htags.c  		p = check_strdup(strbuf_value(sb));
    sb               1267 htags/htags.c  		strbuf_reset(sb);
    sb               1268 htags/htags.c  		if (getconfs("position_end", sb)) {
    sb               1269 htags/htags.c  			q = check_strdup(strbuf_value(sb));
    sb               1276 htags/htags.c  	strbuf_reset(sb);
    sb               1277 htags/htags.c  	if (getconfs("warned_line_begin", sb)) {
    sb               1278 htags/htags.c  		p = check_strdup(strbuf_value(sb));
    sb               1279 htags/htags.c  		strbuf_reset(sb);
    sb               1280 htags/htags.c  		if (getconfs("warned_line_end", sb)) {
    sb               1281 htags/htags.c  			q = check_strdup(strbuf_value(sb));
    sb               1288 htags/htags.c  	strbuf_reset(sb);
    sb               1289 htags/htags.c  	if (getconfs("include_file_suffixes", sb))
    sb               1290 htags/htags.c  		include_file_suffixes = check_strdup(strbuf_value(sb));
    sb               1291 htags/htags.c  	strbuf_reset(sb);
    sb               1292 htags/htags.c  	if (getconfs("langmap", sb))
    sb               1293 htags/htags.c  		langmap = check_strdup(strbuf_value(sb));
    sb               1294 htags/htags.c  	strbuf_reset(sb);
    sb               1295 htags/htags.c  	if (getconfs("xhtml_version", sb))
    sb               1296 htags/htags.c  		xhtml_version = check_strdup(strbuf_value(sb));
    sb               1298 htags/htags.c  	strbuf_reset(sb);
    sb               1299 htags/htags.c  	if (getconfs("htags_options", sb))
    sb               1300 htags/htags.c  		htags_options = check_strdup(strbuf_value(sb));
    sb               1301 htags/htags.c  	strbuf_close(sb);
    sb               1310 htags/htags.c  	STRBUF *sb = strbuf_open(0);
    sb               1323 htags/htags.c  	while (strbuf_fgets(sb, ip, STRBUF_NOCRLF) != NULL) {
    sb               1324 htags/htags.c  		for (p = strbuf_value(sb); *p; p++) {
    sb               1337 htags/htags.c  	strbuf_close(sb);
    sb               1378 htags/htags.c  	STRBUF *sb = strbuf_open(0);
    sb               1396 htags/htags.c  				strbuf_putc(sb, c);
    sb               1398 htags/htags.c  			strbuf_putc(sb, c);
    sb               1402 htags/htags.c  			strbuf_putc(sb, '\0');
    sb               1408 htags/htags.c  			strbuf_putc(sb, *p);
    sb               1413 htags/htags.c  	p = strbuf_value(sb);
    sb               1649 htags/htags.c  		STRBUF *sb = strbuf_open(0);
    sb               1651 htags/htags.c  		strbuf_puts(sb, gtags_path);
    sb               1653 htags/htags.c  			strbuf_puts(sb, " -v");
    sb               1655 htags/htags.c  			strbuf_puts(sb, " -w");
    sb               1657 htags/htags.c  			strbuf_puts(sb, " -I");
    sb               1659 htags/htags.c  			strbuf_putc(sb, ' ');
    sb               1660 htags/htags.c  			strbuf_puts(sb, arg_dbpath);
    sb               1662 htags/htags.c  		if (system(strbuf_value(sb)))
    sb               1664 htags/htags.c  		strbuf_close(sb);
    sb                174 htags/src2html.c 	STATIC_STRBUF(sb);
    sb                177 htags/src2html.c 	strbuf_clear(sb);
    sb                184 htags/src2html.c 	strbuf_sprintf(sb, "%sroot%s/", gen_href_begin_simple(root), gen_href_end());
    sb                194 htags/src2html.c 				strbuf_puts(sb, unit);
    sb                199 htags/src2html.c 			strbuf_puts(sb, gen_href_begin("../files", path2fid(path), HTML, NULL));
    sb                200 htags/src2html.c 			strbuf_puts(sb, unit);
    sb                201 htags/src2html.c 			strbuf_puts(sb, gen_href_end());
    sb                202 htags/src2html.c 			strbuf_putc(sb, '/');
    sb                205 htags/src2html.c         return strbuf_value(sb);
    sb                218 htags/src2html.c 	STATIC_STRBUF(sb);
    sb                223 htags/src2html.c 	strbuf_clear(sb);
    sb                226 htags/src2html.c 			strbuf_puts(sb, gen_href_begin("..", "mains", normal_suffix, NULL));
    sb                228 htags/src2html.c 			strbuf_puts(sb, gen_href_begin("..", "help", normal_suffix, NULL));
    sb                238 htags/src2html.c 			strbuf_puts(sb, gen_href_begin(NULL, NULL, NULL, key));
    sb                243 htags/src2html.c 			strbuf_puts(sb, gen_image(PARENT, tmp, label[i]));
    sb                245 htags/src2html.c 			strbuf_sprintf(sb, "[%s]", label[i]);
    sb                248 htags/src2html.c 			strbuf_puts(sb, gen_href_end());
    sb                250 htags/src2html.c         return strbuf_value(sb);
    sb                261 htags/src2html.c 	STATIC_STRBUF(sb);
    sb                264 htags/src2html.c 	strbuf_clear(sb);
    sb                271 htags/src2html.c 			strbuf_putc(sb, ' ');
    sb                272 htags/src2html.c 	strbuf_sprintf(sb, "%s/* ", comment_begin);
    sb                273 htags/src2html.c 	strbuf_puts(sb, link_format(anchor_getlinks(lineno)));
    sb                275 htags/src2html.c 		strbuf_sprintf(sb, "%s%s[+%d %s]%s",
    sb                277 htags/src2html.c 	strbuf_sprintf(sb, " */%s", comment_end);
    sb                279 htags/src2html.c 	return strbuf_value(sb);
    sb                292 htags/src2html.c 	STATIC_STRBUF(sb);
    sb                294 htags/src2html.c 	strbuf_clear(sb);
    sb                297 htags/src2html.c 			strbuf_puts(sb, "Included from");
    sb                299 htags/src2html.c 			strbuf_puts(sb, "Defined at");
    sb                301 htags/src2html.c 			strbuf_puts(sb, "Used at");
    sb                303 htags/src2html.c 			strbuf_puts(sb, "Refered from");
    sb                304 htags/src2html.c 		strbuf_putc(sb, ' ');
    sb                305 htags/src2html.c 		strbuf_putn(sb, lno);
    sb                307 htags/src2html.c 			strbuf_puts(sb, " in ");
    sb                308 htags/src2html.c 			strbuf_puts(sb, opt);
    sb                311 htags/src2html.c 		strbuf_puts(sb, "Multiple ");
    sb                313 htags/src2html.c 			strbuf_puts(sb, "included from");
    sb                315 htags/src2html.c 			strbuf_puts(sb, "defined in");
    sb                317 htags/src2html.c 			strbuf_puts(sb, "used in");
    sb                319 htags/src2html.c 			strbuf_puts(sb, "refered from");
    sb                320 htags/src2html.c 		strbuf_putc(sb, ' ');
    sb                321 htags/src2html.c 		strbuf_puts(sb, opt);
    sb                322 htags/src2html.c 		strbuf_putc(sb, ' ');
    sb                323 htags/src2html.c 		strbuf_puts(sb, "places");
    sb                325 htags/src2html.c 	strbuf_putc(sb, '.');
    sb                326 htags/src2html.c 	return strbuf_value(sb);
    sb                600 htags/src2html.c encode(STRBUF *sb, const char *url)
    sb                606 htags/src2html.c 			strbuf_putc(sb, c);
    sb                608 htags/src2html.c 			strbuf_putc(sb, '%');
    sb                609 htags/src2html.c 			strbuf_putc(sb, "0123456789abcdef"[c >> 4]);
    sb                610 htags/src2html.c 			strbuf_putc(sb, "0123456789abcdef"[c & 0x0f]);
    sb                699 htags/src2html.c 		STATIC_STRBUF(sb);
    sb                702 htags/src2html.c 		strbuf_clear(sb);
    sb                703 htags/src2html.c 		strbuf_puts(sb, cvsweb_url);
    sb                706 htags/src2html.c 			encode(sb, module);
    sb                707 htags/src2html.c 			strbuf_putc(sb, '/');
    sb                708 htags/src2html.c 			encode(sb, basename);
    sb                710 htags/src2html.c 			encode(sb, src);
    sb                713 htags/src2html.c 			strbuf_puts(sb, "?cvsroot=");
    sb                714 htags/src2html.c 			strbuf_puts(sb, cvsweb_cvsroot);
    sb                717 htags/src2html.c 		fputs(gen_href_begin_simple(strbuf_value(sb)), out);
    sb                738 htags/src2html.c 		STRBUF *sb = strbuf_open(0);
    sb                743 htags/src2html.c 		while ((_ = strbuf_fgets(sb, in, STRBUF_NOCRLF)) != NULL) {
    sb                748 htags/src2html.c 		strbuf_close(sb);
    sb                107 libdb/bt_open.c 	struct stat sb;
    sb                232 libdb/bt_open.c 	if (fstat(t->bt_fd, &sb))
    sb                234 libdb/bt_open.c 	if (sb.st_size) {
    sb                277 libdb/bt_open.c 			b.psize = sb.st_blksize;
    sb                 77 libdb/mpool.c  	struct stat sb;
    sb                 87 libdb/mpool.c  	if (fstat(fd, &sb))
    sb                 89 libdb/mpool.c  	if (!S_ISREG(sb.st_mode)) {
    sb                101 libdb/mpool.c  	mp->npages = sb.st_size / pagesize;
    sb                 71 libutil/char.c 	STATIC_STRBUF(sb);
    sb                 73 libutil/char.c 	strbuf_clear(sb);
    sb                 76 libutil/char.c 			strbuf_putc(sb, '\\');
    sb                 77 libutil/char.c 		strbuf_putc(sb, *s);
    sb                 79 libutil/char.c 	return strbuf_value(sb);
    sb                166 libutil/compress.c 	STATIC_STRBUF(sb);
    sb                171 libutil/compress.c 	strbuf_clear(sb);
    sb                180 libutil/compress.c 				strbuf_putc(sb, '@');
    sb                181 libutil/compress.c 				strbuf_putc(sb, '{');
    sb                182 libutil/compress.c 				strbuf_putn(sb, spaces);
    sb                183 libutil/compress.c 				strbuf_putc(sb, '}');
    sb                185 libutil/compress.c 				strbuf_putc(sb, '@');
    sb                186 libutil/compress.c 				strbuf_putn(sb, spaces);
    sb                188 libutil/compress.c 				strbuf_nputc(sb, ' ', spaces);
    sb                193 libutil/compress.c 			strbuf_puts(sb, "@@");
    sb                196 libutil/compress.c 			strbuf_puts(sb, "@n");
    sb                204 libutil/compress.c 					strbuf_putc(sb, '@');
    sb                205 libutil/compress.c 					strbuf_putc(sb, ab[i].c);
    sb                211 libutil/compress.c 				strbuf_putc(sb, *p);
    sb                218 libutil/compress.c 			strbuf_nputc(sb, ' ', spaces);
    sb                220 libutil/compress.c 			strbuf_putc(sb, '@');
    sb                221 libutil/compress.c 			strbuf_putn(sb, spaces);
    sb                223 libutil/compress.c 			strbuf_putc(sb, '@');
    sb                224 libutil/compress.c 			strbuf_putc(sb, '{');
    sb                225 libutil/compress.c 			strbuf_putn(sb, spaces);
    sb                226 libutil/compress.c 			strbuf_putc(sb, '}');
    sb                229 libutil/compress.c 	return strbuf_value(sb);
    sb                242 libutil/compress.c 	STATIC_STRBUF(sb);
    sb                246 libutil/compress.c 	strbuf_clear(sb);
    sb                253 libutil/compress.c 				strbuf_putc(sb, '@');
    sb                256 libutil/compress.c 				strbuf_puts(sb, name);
    sb                279 libutil/compress.c 					strbuf_puts(sb, ab2name[i].name);
    sb                282 libutil/compress.c 			strbuf_nputc(sb, ' ', spaces);
    sb                284 libutil/compress.c 			strbuf_putc(sb, *p);
    sb                287 libutil/compress.c 	return strbuf_value(sb);
    sb                172 libutil/conf.c includelabel(STRBUF *sb, const char *label, int	level)
    sb                183 libutil/conf.c 		strbuf_nputs(sb, p, q - p);
    sb                187 libutil/conf.c 		includelabel(sb, strbuf_value(inc), level);
    sb                191 libutil/conf.c 	strbuf_puts(sb, p);
    sb                200 libutil/conf.c 	STATIC_STRBUF(sb);
    sb                203 libutil/conf.c 	strbuf_clear(sb);
    sb                208 libutil/conf.c 		strbuf_puts(sb, getenv("GTAGSCONF"));
    sb                213 libutil/conf.c 		strbuf_puts(sb, makepath(p, GTAGSRC, NULL));
    sb                216 libutil/conf.c 		strbuf_puts(sb, makepath(p, DOS_GTAGSRC, NULL));
    sb                219 libutil/conf.c 		strbuf_puts(sb, GTAGSCONF);
    sb                221 libutil/conf.c 		strbuf_puts(sb, OLD_GTAGSCONF);
    sb                223 libutil/conf.c 		strbuf_puts(sb, DEBIANCONF);
    sb                225 libutil/conf.c 		strbuf_puts(sb, OLD_DEBIANCONF);
    sb                228 libutil/conf.c 	return strbuf_value(sb);
    sb                238 libutil/conf.c 	STRBUF *sb;
    sb                281 libutil/conf.c 		sb = strbuf_open(0);
    sb                282 libutil/conf.c 		includelabel(sb, label, 0);
    sb                283 libutil/conf.c 		confline = check_strdup(strbuf_value(sb));
    sb                285 libutil/conf.c 		strbuf_close(sb);
    sb                291 libutil/conf.c 	sb = strbuf_open(0);
    sb                292 libutil/conf.c 	strbuf_puts(sb, confline);
    sb                293 libutil/conf.c 	strbuf_unputc(sb, ':');
    sb                307 libutil/conf.c 		strbuf_puts(sb, ":suffixes=");
    sb                308 libutil/conf.c 		make_suffixes(langmap, sb);
    sb                312 libutil/conf.c 		strbuf_puts(sb, ":skip=");
    sb                313 libutil/conf.c 		strbuf_puts(sb, DEFAULTSKIP);
    sb                335 libutil/conf.c 		strbuf_puts(sb, ":GTAGS=");
    sb                336 libutil/conf.c 		strbuf_puts(sb, path);
    sb                337 libutil/conf.c 		strbuf_puts(sb, " %s");
    sb                338 libutil/conf.c 		strbuf_puts(sb, ":GRTAGS=");
    sb                339 libutil/conf.c 		strbuf_puts(sb, path);
    sb                340 libutil/conf.c 		strbuf_puts(sb, " -r %s");
    sb                341 libutil/conf.c 		strbuf_puts(sb, ":GSYMS=");
    sb                342 libutil/conf.c 		strbuf_puts(sb, path);
    sb                343 libutil/conf.c 		strbuf_puts(sb, " -s %s");
    sb                345 libutil/conf.c 	strbuf_unputc(sb, ':');
    sb                346 libutil/conf.c 	strbuf_putc(sb, ':');
    sb                347 libutil/conf.c 	confline = check_strdup(strbuf_value(sb));
    sb                348 libutil/conf.c 	strbuf_close(sb);
    sb                384 libutil/conf.c getconfs(const char *name, STRBUF *sb)
    sb                398 libutil/conf.c 		if (exist && sb)
    sb                399 libutil/conf.c 			strbuf_putc(sb, ',');
    sb                404 libutil/conf.c 			if (sb)
    sb                405 libutil/conf.c 				strbuf_putc(sb, *p);
    sb                416 libutil/conf.c 			strbuf_puts(sb, BINDIR);
    sb                419 libutil/conf.c 			strbuf_puts(sb, DATADIR);
    sb                 54 libutil/env.c  	STRBUF *sb = strbuf_open(0);
    sb                 56 libutil/env.c  	strbuf_sprintf(sb, "%s=%s", var, val);
    sb                 57 libutil/env.c  	putenv(strbuf_value(sb));
    sb                124 libutil/find.c 	STRBUF *sb = strbuf_open(0);
    sb                136 libutil/find.c 	strbuf_reset(sb);
    sb                137 libutil/find.c 	if (!getconfs("suffixes", sb))
    sb                139 libutil/find.c 	sufflist = check_strdup(strbuf_value(sb));
    sb                145 libutil/find.c 		strbuf_reset(sb);
    sb                146 libutil/find.c 		strbuf_puts(sb, "\\.(");       /* ) */
    sb                152 libutil/find.c 					strbuf_putc(sb, '\\');
    sb                153 libutil/find.c 				strbuf_putc(sb, *p);
    sb                158 libutil/find.c 			strbuf_putc(sb, '|');
    sb                161 libutil/find.c 		strbuf_puts(sb, ")$");
    sb                165 libutil/find.c 		retval = regcomp(suff, strbuf_value(sb), flags);
    sb                168 libutil/find.c 			fprintf(stderr, "find regex: %s\n", strbuf_value(sb));
    sb                173 libutil/find.c 	strbuf_close(sb);
    sb                335 libutil/find.c 	STRBUF *sb;
    sb                351 libutil/find.c getdirs(const char *dir, STRBUF *sb)
    sb                369 libutil/find.c 			strbuf_putc(sb, 'd');
    sb                371 libutil/find.c 			strbuf_putc(sb, 'f');
    sb                373 libutil/find.c 			strbuf_putc(sb, ' ');
    sb                374 libutil/find.c 		strbuf_puts(sb, dp->d_name);
    sb                375 libutil/find.c 		strbuf_putc(sb, '\0');
    sb                401 libutil/find.c 	curp->sb = strbuf_open(0);
    sb                402 libutil/find.c 	if (getdirs(dir, curp->sb) < 0)
    sb                404 libutil/find.c 	curp->start = curp->p = strbuf_value(curp->sb);
    sb                405 libutil/find.c 	curp->end   = curp->start + strbuf_getlen(curp->sb);
    sb                543 libutil/find.c 				STRBUF *sb = strbuf_open(0);
    sb                548 libutil/find.c 				if (getdirs(dir, sb) < 0) {
    sb                550 libutil/find.c 					strbuf_close(sb);
    sb                560 libutil/find.c 				curp->sb = sb;
    sb                561 libutil/find.c 				curp->start = curp->p = strbuf_value(sb);
    sb                562 libutil/find.c 				curp->end   = curp->start + strbuf_getlen(sb);
    sb                565 libutil/find.c 		strbuf_close(curp->sb);
    sb                566 libutil/find.c 		curp->sb = NULL;
    sb                653 libutil/find.c 			if (curp->sb != NULL)
    sb                654 libutil/find.c 				strbuf_close(curp->sb);
    sb                152 libutil/getdbpath.c 	struct stat sb;
    sb                164 libutil/getdbpath.c 		if (stat(p, &sb) || !S_ISDIR(sb.st_mode))
    sb                176 libutil/getdbpath.c 			if (stat(p, &sb) || !S_ISDIR(sb.st_mode))
    sb                206 libutil/getdbpath.c 			STRBUF *sb;
    sb                219 libutil/getdbpath.c 			sb = strbuf_open(0);
    sb                220 libutil/getdbpath.c 			s = strbuf_fgets(sb, fp, STRBUF_NOCRLF);
    sb                234 libutil/getdbpath.c 			strbuf_close(sb);
    sb                146 libutil/gpathop.c 	STATIC_STRBUF(sb);
    sb                160 libutil/gpathop.c 	strbuf_clear(sb);
    sb                161 libutil/gpathop.c 	strbuf_puts0(sb, fid);
    sb                163 libutil/gpathop.c 		strbuf_puts0(sb, "o");
    sb                164 libutil/gpathop.c 	dbop_put_withlen(dbop, path, strbuf_value(sb), strbuf_getlen(sb));
    sb                168 libutil/gpathop.c 	strbuf_clear(sb);
    sb                169 libutil/gpathop.c 	strbuf_puts0(sb, path);
    sb                171 libutil/gpathop.c 		strbuf_puts0(sb, "o");
    sb                172 libutil/gpathop.c 	dbop_put_withlen(dbop, fid, strbuf_value(sb), strbuf_getlen(sb));
    sb                363 libutil/gtagsop.c 		gtop->sb = strbuf_open(0);	/* This buffer is used for working area. */
    sb                429 libutil/gtagsop.c 		strbuf_reset(gtop->sb);
    sb                430 libutil/gtagsop.c 		strbuf_puts(gtop->sb, s_fid);
    sb                431 libutil/gtagsop.c 		strbuf_putc(gtop->sb, ' ');
    sb                433 libutil/gtagsop.c 			strbuf_puts(gtop->sb, compress(ptable.part[PART_TAG].start, key));
    sb                435 libutil/gtagsop.c 			strbuf_puts(gtop->sb, ptable.part[PART_TAG].start);
    sb                436 libutil/gtagsop.c 		strbuf_putc(gtop->sb, ' ');
    sb                437 libutil/gtagsop.c 		strbuf_puts(gtop->sb, ptable.part[PART_LNO].start);
    sb                438 libutil/gtagsop.c 		strbuf_putc(gtop->sb, ' ');
    sb                439 libutil/gtagsop.c 		strbuf_puts(gtop->sb, gtop->format & GTAGS_COMPRESS ?
    sb                442 libutil/gtagsop.c 		dbop_put(gtop->dbop, key, strbuf_value(gtop->sb));
    sb                698 libutil/gtagsop.c 	if (gtop->sb)
    sb                699 libutil/gtagsop.c 		strbuf_close(gtop->sb);
    sb                751 libutil/gtagsop.c 		strbuf_reset(gtop->sb);
    sb                752 libutil/gtagsop.c 		strbuf_puts(gtop->sb, s_fid);
    sb                753 libutil/gtagsop.c 		strbuf_putc(gtop->sb, ' ');
    sb                755 libutil/gtagsop.c 			strbuf_puts(gtop->sb, compress(entry->name, key));
    sb                757 libutil/gtagsop.c 			strbuf_puts(gtop->sb, entry->name);
    sb                759 libutil/gtagsop.c 		strbuf_putc(gtop->sb, ' ');
    sb                760 libutil/gtagsop.c 		header_offset = strbuf_getlen(gtop->sb);
    sb                780 libutil/gtagsop.c 						if (strbuf_getlen(gtop->sb) == header_offset)
    sb                781 libutil/gtagsop.c 							strbuf_putn(gtop->sb, n);
    sb                790 libutil/gtagsop.c 						strbuf_putc(gtop->sb, '-');
    sb                791 libutil/gtagsop.c 						strbuf_putn(gtop->sb, last - cont);
    sb                794 libutil/gtagsop.c 					if (strbuf_getlen(gtop->sb) > header_offset) {
    sb                795 libutil/gtagsop.c 						strbuf_putc(gtop->sb, ',');
    sb                796 libutil/gtagsop.c 						strbuf_putn(gtop->sb, n - last);
    sb                798 libutil/gtagsop.c 						strbuf_putn(gtop->sb, n);
    sb                800 libutil/gtagsop.c 					if (strbuf_getlen(gtop->sb) > DBOP_PAGESIZE / 4) {
    sb                801 libutil/gtagsop.c 						dbop_put(gtop->dbop, key, strbuf_value(gtop->sb));
    sb                802 libutil/gtagsop.c 						strbuf_setlen(gtop->sb, header_offset);
    sb                808 libutil/gtagsop.c 				strbuf_putc(gtop->sb, '-');
    sb                809 libutil/gtagsop.c 				strbuf_putn(gtop->sb, last - cont);
    sb                821 libutil/gtagsop.c 				if (strbuf_getlen(gtop->sb) > header_offset)
    sb                822 libutil/gtagsop.c 					strbuf_putc(gtop->sb, ',');
    sb                823 libutil/gtagsop.c 				strbuf_putn(gtop->sb, n);
    sb                824 libutil/gtagsop.c 				if (strbuf_getlen(gtop->sb) > DBOP_PAGESIZE / 4) {
    sb                825 libutil/gtagsop.c 					dbop_put(gtop->dbop, key, strbuf_value(gtop->sb));
    sb                826 libutil/gtagsop.c 					strbuf_setlen(gtop->sb, header_offset);
    sb                831 libutil/gtagsop.c 		if (strbuf_getlen(gtop->sb) > header_offset)
    sb                832 libutil/gtagsop.c 			dbop_put(gtop->dbop, key, strbuf_value(gtop->sb));
    sb                103 libutil/gtagsop.h 	STRBUF *sb;			/* string buffer */
    sb                130 libutil/langmap.c make_suffixes(const char *langmap, STRBUF *sb)
    sb                151 libutil/langmap.c 					strbuf_putc(sb, ',');
    sb                153 libutil/langmap.c 				strbuf_putc(sb, *p);
    sb                 63 libutil/linetable.c 	struct stat sb;
    sb                 66 libutil/linetable.c 	if (stat(path, &sb) < 0)
    sb                 68 libutil/linetable.c 	ib = strbuf_open(sb.st_size);
    sb                 58 libutil/makepath.c 	STATIC_STRBUF(sb);
    sb                 62 libutil/makepath.c 	strbuf_clear(sb);
    sb                 72 libutil/makepath.c 		strbuf_puts(sb, dir);
    sb                 73 libutil/makepath.c 		strbuf_unputc(sb, sep);
    sb                 74 libutil/makepath.c 		strbuf_putc(sb, sep);
    sb                 76 libutil/makepath.c 	strbuf_puts(sb, file);
    sb                 79 libutil/makepath.c 			strbuf_putc(sb, '.');
    sb                 80 libutil/makepath.c 		strbuf_puts(sb, suffix);
    sb                 82 libutil/makepath.c 	if ((length = strlen(strbuf_value(sb))) > MAXPATHLEN)
    sb                 83 libutil/makepath.c 		die("path name too long. '%s'\n", strbuf_value(sb));
    sb                 84 libutil/makepath.c 	return strbuf_value(sb);
    sb                 96 libutil/strbuf.c __strbuf_expandbuf(STRBUF *sb, int length)
    sb                 98 libutil/strbuf.c 	int count = sb->curp - sb->sbuf;
    sb                 99 libutil/strbuf.c 	int newsize = sb->sbufsize + (length > EXPANDSIZE ? length : EXPANDSIZE);
    sb                102 libutil/strbuf.c 	if (sb->alloc_failed)
    sb                104 libutil/strbuf.c 	newbuf = (char *)check_realloc(sb->sbuf, newsize + 1);
    sb                105 libutil/strbuf.c 	sb->sbufsize = newsize;
    sb                106 libutil/strbuf.c 	sb->sbuf = newbuf;
    sb                108 libutil/strbuf.c 	sb->curp = sb->sbuf + count;
    sb                109 libutil/strbuf.c 	sb->endp = sb->sbuf + sb->sbufsize;
    sb                121 libutil/strbuf.c 	STRBUF *sb = (STRBUF *)check_calloc(sizeof(STRBUF), 1);
    sb                123 libutil/strbuf.c 	sb->sbufsize = (init > 0) ? init : INITIALSIZE;
    sb                124 libutil/strbuf.c 	sb->sbuf = (char *)check_malloc(sb->sbufsize + 1);
    sb                125 libutil/strbuf.c 	sb->curp = sb->sbuf;
    sb                126 libutil/strbuf.c 	sb->endp = sb->sbuf + sb->sbufsize;
    sb                128 libutil/strbuf.c 	return sb;
    sb                136 libutil/strbuf.c strbuf_reset(STRBUF *sb)
    sb                138 libutil/strbuf.c 	sb->curp = sb->sbuf;
    sb                139 libutil/strbuf.c 	sb->alloc_failed = 0;
    sb                150 libutil/strbuf.c strbuf_clear(STRBUF *sb)
    sb                152 libutil/strbuf.c 	if (sb == NULL)
    sb                154 libutil/strbuf.c 	if (strbuf_empty(sb)) {
    sb                155 libutil/strbuf.c 		sb->sbufsize = INITIALSIZE;
    sb                156 libutil/strbuf.c 		sb->sbuf = (char *)check_malloc(sb->sbufsize + 1);
    sb                157 libutil/strbuf.c 		sb->curp = sb->sbuf;
    sb                158 libutil/strbuf.c 		sb->endp = sb->sbuf + sb->sbufsize;
    sb                160 libutil/strbuf.c 		strbuf_reset(sb);
    sb                171 libutil/strbuf.c strbuf_nputs(STRBUF *sb, const char *s, int len)
    sb                173 libutil/strbuf.c 	if (!sb->alloc_failed && len > 0) {
    sb                174 libutil/strbuf.c 		if (sb->curp + len > sb->endp)
    sb                175 libutil/strbuf.c 			__strbuf_expandbuf(sb, len);
    sb                177 libutil/strbuf.c 			*sb->curp++ = *s++;
    sb                188 libutil/strbuf.c strbuf_nputc(STRBUF *sb, int c, int len)
    sb                190 libutil/strbuf.c 	if (!sb->alloc_failed && len > 0) {
    sb                191 libutil/strbuf.c 		if (sb->curp + len > sb->endp)
    sb                192 libutil/strbuf.c 			__strbuf_expandbuf(sb, len);
    sb                194 libutil/strbuf.c 			*sb->curp++ = c;
    sb                204 libutil/strbuf.c strbuf_puts(STRBUF *sb, const char *s)
    sb                206 libutil/strbuf.c 	if (!sb->alloc_failed) {
    sb                208 libutil/strbuf.c 			if (sb->curp >= sb->endp)
    sb                209 libutil/strbuf.c 				__strbuf_expandbuf(sb, 0);
    sb                210 libutil/strbuf.c 			*sb->curp++ = *s++;
    sb                221 libutil/strbuf.c strbuf_puts_nl(STRBUF *sb, const char *s)
    sb                223 libutil/strbuf.c 	if (!sb->alloc_failed) {
    sb                225 libutil/strbuf.c 			if (sb->curp >= sb->endp)
    sb                226 libutil/strbuf.c 				__strbuf_expandbuf(sb, 0);
    sb                227 libutil/strbuf.c 			*sb->curp++ = *s++;
    sb                229 libutil/strbuf.c 		if (sb->curp >= sb->endp)
    sb                230 libutil/strbuf.c 			__strbuf_expandbuf(sb, 0);
    sb                231 libutil/strbuf.c 		*sb->curp++ = '\n';
    sb                241 libutil/strbuf.c strbuf_putn(STRBUF *sb, int n)
    sb                244 libutil/strbuf.c 		strbuf_putc(sb, '0');
    sb                256 libutil/strbuf.c 			strbuf_putc(sb, num[i]);
    sb                267 libutil/strbuf.c strbuf_unputc(STRBUF *sb, int c)
    sb                269 libutil/strbuf.c 	if (sb->curp > sb->sbuf && *(sb->curp - 1) == c) {
    sb                270 libutil/strbuf.c 		sb->curp--;
    sb                282 libutil/strbuf.c strbuf_value(STRBUF *sb)
    sb                284 libutil/strbuf.c 	*sb->curp = 0;
    sb                285 libutil/strbuf.c 	return sb->sbuf;
    sb                293 libutil/strbuf.c strbuf_trim(STRBUF *sb)
    sb                295 libutil/strbuf.c 	char *p = sb->curp;
    sb                297 libutil/strbuf.c 	while (p > sb->sbuf && isblank(*(p - 1)))
    sb                299 libutil/strbuf.c 	sb->curp = p;
    sb                316 libutil/strbuf.c strbuf_fgets(STRBUF *sb, FILE *ip, int flags)
    sb                319 libutil/strbuf.c 		strbuf_reset(sb);
    sb                321 libutil/strbuf.c 	if (sb->curp >= sb->endp)
    sb                322 libutil/strbuf.c 		__strbuf_expandbuf(sb, EXPANDSIZE);	/* expand buffer */
    sb                323 libutil/strbuf.c 	if (sb->alloc_failed)
    sb                324 libutil/strbuf.c 		return sb->sbuf;
    sb                327 libutil/strbuf.c 		if (!fgets(sb->curp, sb->endp - sb->curp, ip)) {
    sb                328 libutil/strbuf.c 			if (sb->curp == sb->sbuf)
    sb                332 libutil/strbuf.c 		sb->curp += strlen(sb->curp);
    sb                333 libutil/strbuf.c 		if (sb->curp > sb->sbuf && *(sb->curp - 1) == '\n')
    sb                336 libutil/strbuf.c 			return sb->sbuf;
    sb                338 libutil/strbuf.c 		__strbuf_expandbuf(sb, EXPANDSIZE);	/* expand buffer */
    sb                339 libutil/strbuf.c 		if (sb->alloc_failed)
    sb                340 libutil/strbuf.c 			return sb->sbuf;
    sb                343 libutil/strbuf.c 		if (*(sb->curp - 1) == '\n')
    sb                344 libutil/strbuf.c 			*(--sb->curp) = 0;
    sb                345 libutil/strbuf.c 		if (sb->curp > sb->sbuf && *(sb->curp - 1) == '\r')
    sb                346 libutil/strbuf.c 			*(--sb->curp) = 0;
    sb                348 libutil/strbuf.c 	return sb->sbuf;
    sb                359 libutil/strbuf.c strbuf_sprintf(STRBUF *sb, const char *s, ...)
    sb                364 libutil/strbuf.c 	if (sb->alloc_failed)
    sb                375 libutil/strbuf.c 				strbuf_nputs(sb, s, p - s);
    sb                387 libutil/strbuf.c 				strbuf_putc(sb, c);
    sb                414 libutil/strbuf.c 				strbuf_puts(sb, buf);
    sb                416 libutil/strbuf.c 				strbuf_puts(sb, va_arg(ap, char *));
    sb                418 libutil/strbuf.c 				strbuf_putn(sb, va_arg(ap, int));
    sb                432 libutil/strbuf.c strbuf_close(STRBUF *sb)
    sb                434 libutil/strbuf.c 	if (sb->name)
    sb                435 libutil/strbuf.c 		(void)free(sb->name);
    sb                436 libutil/strbuf.c 	(void)free(sb->sbuf);
    sb                437 libutil/strbuf.c 	(void)free(sb);
    sb                456 libutil/strbuf.c 	STATIC_STRBUF(sb);
    sb                460 libutil/strbuf.c 	strbuf_clear(sb);
    sb                461 libutil/strbuf.c 	return sb;
    sb                464 libutil/strbuf.c strbuf_release_tempbuf(STRBUF *sb)
    sb                 81 libutil/strbuf.h #define STATIC_STRBUF(sb) static STRBUF sb[1]
    sb                 83 libutil/strbuf.h #define strbuf_empty(sb) (sb->sbufsize == 0)
    sb                 85 libutil/strbuf.h #define strbuf_putc(sb, c)	do {\
    sb                 86 libutil/strbuf.h 	if (!sb->alloc_failed) {\
    sb                 87 libutil/strbuf.h 		if (sb->curp >= sb->endp)\
    sb                 88 libutil/strbuf.h 			__strbuf_expandbuf(sb, 0);\
    sb                 89 libutil/strbuf.h 		*sb->curp++ = c;\
    sb                 93 libutil/strbuf.h #define strbuf_puts0(sb, s) do {\
    sb                 94 libutil/strbuf.h 	strbuf_puts(sb, s);\
    sb                 95 libutil/strbuf.h 	strbuf_putc(sb, '\0');\
    sb                 98 libutil/strbuf.h #define strbuf_getlen(sb) (sb->curp - sb->sbuf)
    sb                 99 libutil/strbuf.h #define strbuf_setlen(sb, len) do {\
    sb                101 libutil/strbuf.h 	if (!sb->alloc_failed) {\
    sb                102 libutil/strbuf.h 		if (_length < strbuf_getlen(sb))\
    sb                103 libutil/strbuf.h 			sb->curp = sb->sbuf + _length;\
    sb                104 libutil/strbuf.h 		else if (_length > strbuf_getlen(sb))\
    sb                105 libutil/strbuf.h 			__strbuf_expandbuf(sb, _length - strbuf_getlen(sb));\
    sb                108 libutil/strbuf.h #define strbuf_lastchar(sb) (*(sb->curp - 1))
    sb                127 libutil/strbuf.h void strbuf_sprintf(STRBUF *sb, const char *s, ...)
    sb                 47 libutil/strmake.c 	STATIC_STRBUF(sb);
    sb                 50 libutil/strmake.c 	strbuf_clear(sb);
    sb                 55 libutil/strmake.c 		strbuf_putc(sb,*p);
    sb                 58 libutil/strmake.c 	return strbuf_value(sb);
    sb                 85 libutil/strmake.c 	STATIC_STRBUF(sb);
    sb                 88 libutil/strmake.c 	strbuf_clear(sb);
    sb                101 libutil/strmake.c 					cut_off = strbuf_getlen(sb);
    sb                102 libutil/strmake.c 				strbuf_putc(sb,*p);
    sb                105 libutil/strmake.c 			strbuf_putc(sb,*p);
    sb                113 libutil/strmake.c 		strbuf_setlen(sb, cut_off);
    sb                115 libutil/strmake.c 		*len = strbuf_getlen(sb);
    sb                116 libutil/strmake.c 	return strbuf_value(sb);
    sb                 95 libutil/test.c 	static struct stat sb;
    sb                 99 libutil/test.c 		if (stat(path, &sb) < 0)
    sb                108 libutil/test.c 	 		if (!S_ISREG(sb.st_mode))
    sb                112 libutil/test.c 	 		if (!S_ISDIR(sb.st_mode))
    sb                120 libutil/test.c 			if (sb.st_size == 0)
    sb                132 libutil/test.c 			if (!S_ISREG(sb.st_mode))
    sb                159 libutil/test.c 	struct stat sb;
    sb                161 libutil/test.c 	if (stat(path, &sb) < 0)
    sb                163 libutil/test.c 	return sb.st_size;
    sb                 57 libutil/usable.c 	STRBUF *sb;
    sb                 87 libutil/usable.c 	sb = strbuf_open(0);
    sb                 88 libutil/usable.c 	strbuf_puts(sb, getenv("PATH"));
    sb                 89 libutil/usable.c 	p = strbuf_value(sb);
    sb                107 libutil/usable.c 	strbuf_close(sb);
    sb                358 libutil/xargs.c xargs_open_with_strbuf(const char *command, int max_args, STRBUF *sb)
    sb                363 libutil/xargs.c 	xp->curp = strbuf_value(sb);
    sb                364 libutil/xargs.c 	xp->endp = xp->curp + strbuf_getlen(sb);