bstr 50 src/cmd/dist/a.h char* bstr(Buf *b); bstr 83 src/cmd/dist/buf.c p = bstr(b); bstr 114 src/cmd/dist/buf.c p = xstrstr(bstr(b)+pos, x); bstr 257 src/cmd/dist/build.c if(isfile(bstr(&path))) { bstr 258 src/cmd/dist/build.c readfile(&b, bstr(&path)); bstr 272 src/cmd/dist/build.c if(isfile(bstr(&path))) { bstr 273 src/cmd/dist/build.c readfile(&b, bstr(&path)); bstr 286 src/cmd/dist/build.c run(&b, goroot, CheckExit, "hg", "log", "-b", bstr(&branch), "-r", ".:0", "--template", "{tags} + ", nil); bstr 287 src/cmd/dist/build.c splitfields(&tags, bstr(&b)); bstr 307 src/cmd/dist/build.c bprintf(&b, "branch.%s", bstr(&branch)); bstr 323 src/cmd/dist/build.c writefile(&b, bstr(&path), 0); bstr 409 src/cmd/dist/build.c if(isfile(bstr(&b))) bstr 442 src/cmd/dist/build.c fatal("%s should not exist in release build", bstr(&b)); bstr 681 src/cmd/dist/build.c splitfields(&gccargs, bstr(&b)); bstr 703 src/cmd/dist/build.c splitfields(&ldargs, bstr(&b)); bstr 773 src/cmd/dist/build.c xreaddir(&files, bstr(&path)); bstr 801 src/cmd/dist/build.c p = bstr(&b1); bstr 807 src/cmd/dist/build.c bpathf(&b, "%s/%s", bstr(&path), p); bstr 809 src/cmd/dist/build.c xreaddir(&extra, bstr(&b)); bstr 813 src/cmd/dist/build.c vadd(&files, bpathf(&b1, "%s/%s", bstr(&b), extra.p[k])); bstr 837 src/cmd/dist/build.c bpathf(&b, "%s/%s", bstr(&path), files.p[i]); bstr 886 src/cmd/dist/build.c bpathf(&b1, "%s/arch_%s.h", bstr(&path), goarch), 0); bstr 888 src/cmd/dist/build.c bpathf(&b1, "%s/defs_%s_%s.h", bstr(&path), goos, goarch), 0); bstr 889 src/cmd/dist/build.c p = bpathf(&b1, "%s/signal_%s_%s.h", bstr(&path), goos, goarch); bstr 893 src/cmd/dist/build.c bpathf(&b1, "%s/os_%s.h", bstr(&path), goos), 0); bstr 895 src/cmd/dist/build.c bpathf(&b1, "%s/signals_%s.h", bstr(&path), goos), 0); bstr 908 src/cmd/dist/build.c gentab[j].gen(bstr(&path), p); bstr 930 src/cmd/dist/build.c bpathf(&b1, "%s/zasm_%s_%s.h", bstr(&path), goos, goarch), 0); bstr 940 src/cmd/dist/build.c bprintf(&b, "%s%sz%s", bstr(&path), slash, lastelem(p)); bstr 943 src/cmd/dist/build.c goc2c(p, bstr(&b)); bstr 944 src/cmd/dist/build.c vadd(&files, bstr(&b)); bstr 990 src/cmd/dist/build.c vadd(&compile, bstr(&path)); bstr 1001 src/cmd/dist/build.c vadd(&compile, bprintf(&b, "GOROOT=\"%s\"", bstr(&b1))); bstr 1016 src/cmd/dist/build.c vadd(&compile, bprintf(&b1, "GOEXPERIMENT=\"%s\"", bstr(&b))); bstr 1048 src/cmd/dist/build.c xmkdirall(bstr(&b1)); bstr 1049 src/cmd/dist/build.c bpathf(&b, "%s/%s", bstr(&b1), lastelem(files.p[i])); bstr 1059 src/cmd/dist/build.c vadd(&compile, bstr(&b)); bstr 1061 src/cmd/dist/build.c bgrunv(bstr(&path), CheckExit, &compile); bstr 1063 src/cmd/dist/build.c vadd(&link, bstr(&b)); bstr 1065 src/cmd/dist/build.c vadd(&clean, bstr(&b)); bstr 1078 src/cmd/dist/build.c vadd(&compile, bstr(&b)); bstr 1079 src/cmd/dist/build.c vadd(&clean, bstr(&b)); bstr 1081 src/cmd/dist/build.c vadd(&link, bstr(&b)); bstr 1094 src/cmd/dist/build.c runv(nil, bstr(&path), CheckExit, &compile); bstr 1098 src/cmd/dist/build.c dopack(link.p[targ], bstr(&b), &link.p[targ+1], link.len - (targ+1)); bstr 1203 src/cmd/dist/build.c splitlines(&lines, bstr(&b)); bstr 1440 src/cmd/dist/build.c xreaddir(&dir, bstr(&path)); bstr 1445 src/cmd/dist/build.c xremove(bpathf(&b, "%s/%s", bstr(&path), dir.p[j])); bstr 1450 src/cmd/dist/build.c xremove(bpathf(&b, "%s/%s", bstr(&path), cleantab[i]+4)); bstr 1456 src/cmd/dist/build.c xreaddir(&dir, bstr(&path)); bstr 1459 src/cmd/dist/build.c xremove(bpathf(&b, "%s/%s", bstr(&path), dir.p[j])); bstr 1556 src/cmd/dist/build.c bprintf(&b1, "%s%s%s", gobin, sep, bstr(&b)); bstr 1557 src/cmd/dist/build.c xprintf(format, "PATH", bstr(&b1)); bstr 1646 src/cmd/dist/build.c xrealwd(&real_src, bstr(&src)); bstr 1647 src/cmd/dist/build.c if(!hasprefix(p, bstr(&real_src))) bstr 1648 src/cmd/dist/build.c fatal("current directory %s is not under %s", p, bstr(&real_src)); bstr 1744 src/cmd/dist/build.c if(xstrstr(bstr(&b), bstr(&search)) == nil) bstr 1752 src/cmd/dist/build.c bprintf(&b1, "%s%s%s", pathsep, bstr(&b), pathsep); bstr 1754 src/cmd/dist/build.c if(xstrstr(bstr(&b1), bstr(&search)) == nil) bstr 33 src/cmd/dist/buildgc.c splitlines(&lines, bstr(&in)); bstr 83 src/cmd/dist/buildgc.c readfile(&in, bstr(&b)); bstr 84 src/cmd/dist/buildgc.c splitlines(&lines, bstr(&in)); bstr 45 src/cmd/dist/buildgo.c writefile(&out, bstr(&b), 0); bstr 60 src/cmd/dist/buildruntime.c "#define GOEXPERIMENT \"%s\"\n", bstr(&exp))); bstr 215 src/cmd/dist/buildruntime.c splitlines(&lines, bstr(&in)); bstr 257 src/cmd/dist/buildruntime.c bwritestr(&out, bprintf(&b, "#define GOEXPERIMENT \"%s\"\n", bstr(&exp))); bstr 371 src/cmd/dist/buildruntime.c splitlines(&lines, bstr(&in)); bstr 826 src/cmd/dist/goc2c.c input = bstr(&in); bstr 32 src/cmd/dist/plan9.c return bstr(b); bstr 48 src/cmd/dist/plan9.c return bstr(b); bstr 164 src/cmd/dist/plan9.c argv->p[0] = xstrdup(bstr(&b1)); bstr 180 src/cmd/dist/plan9.c errprintf("%s\n", bstr(&cmd)); bstr 208 src/cmd/dist/plan9.c fprint(2, "%s\n", bstr(&cmd)); bstr 261 src/cmd/dist/plan9.c xprintf("%s\n", bstr(b)); bstr 444 src/cmd/dist/plan9.c xremoveall(bstr(&b)); bstr 489 src/cmd/dist/plan9.c fd = create(bstr(&b), OREAD|OEXCL, 0700|DMDIR); bstr 42 src/cmd/dist/unix.c return bstr(b); bstr 58 src/cmd/dist/unix.c return bstr(b); bstr 182 src/cmd/dist/unix.c errprintf("%s\n", bstr(&cmd)); bstr 210 src/cmd/dist/unix.c fprintf(stderr, "%s\n", bstr(&cmd)); bstr 262 src/cmd/dist/unix.c xprintf("%s\n", bstr(b)); bstr 422 src/cmd/dist/unix.c xremoveall(bstr(&b)); bstr 473 src/cmd/dist/unix.c p = bstr(&b); bstr 674 src/cmd/dist/unix.c if(contains(bstr(&b), "EM64T")) bstr 694 src/cmd/dist/unix.c if(contains(bstr(&b), "amd64")) bstr 696 src/cmd/dist/unix.c if(contains(bstr(&b), "i386")) bstr 121 src/cmd/dist/windows.c return bstr(&b); // leak but we're dying anyway bstr 167 src/cmd/dist/windows.c return bstr(b); bstr 202 src/cmd/dist/windows.c return bstr(b); bstr 321 src/cmd/dist/windows.c errprintf("%s\n", bstr(&cmd)); bstr 323 src/cmd/dist/windows.c torune(&rcmd, bstr(&cmd)); bstr 473 src/cmd/dist/windows.c fatal("chdir %s: %s", bstr(b), errstr()); bstr 631 src/cmd/dist/windows.c torune(&r, bstr(&b)); bstr 639 src/cmd/dist/windows.c p = bstr(&b); bstr 693 src/cmd/dist/windows.c xremoveall(bstr(&b));