path 172 global/global.c char path[MAXPATHLEN+1], s_fid[32];
path 185 global/global.c if (normalize(file, rootdir, cwd, path, sizeof(path)) == NULL)
path 192 global/global.c if ((p = gpath_path2fid(path, NULL)) == NULL)
path 651 global/global.c const char *path, *lno, *lid;
path 685 global/global.c path = p;
path 692 global/global.c path = makepath(".", path, NULL);
path 694 global/global.c if (!locatestring(path, localprefix, MATCH_AT_FIRST))
path 700 global/global.c convert_put(cv, path);
path 718 global/global.c convert_put_using(cv, edit, path, linenum, p);
path 743 global/global.c const char *path;
path 770 global/global.c while ((path = gfind_read(gp)) != NULL) {
path 771 global/global.c if (!(fp = fopen(path, "r")))
path 772 global/global.c die("'%s' not found. Please remake tag files by invoking gtags(1).", path);
path 779 global/global.c convert_put(cv, path);
path 782 global/global.c convert_put_using(cv, edit, path, linenum, buffer);
path 807 global/global.c const char *path, *p;
path 843 global/global.c while ((path = gfind_read(gp)) != NULL) {
path 847 global/global.c p = path + strlen(localprefix) - 1;
path 851 global/global.c convert_put(cv, path);
path 853 global/global.c convert_put_using(cv, "path", path, 1, " ");
path 931 global/global.c char path[MAXPATHLEN+1];
path 936 global/global.c if (normalize(av, rootdir, cwd, path, sizeof(path)) == NULL)
path 938 global/global.c fprintf(stderr, "'%s' is out of source tree.\n", path + 2);
path 939 global/global.c if (!gpath_path2fid(path, NULL)) {
path 941 global/global.c fprintf(stderr, "'%s' not found in GPATH.\n", path + 2);
path 944 global/global.c if (!test("f", makepath(root, path, NULL))) {
path 954 global/global.c if (lflag && !locatestring(path, localprefix, MATCH_AT_FIRST))
path 959 global/global.c strbuf_puts0(path_list, path);
path 1069 global/global.c if (lflag && !locatestring(gtp->path, localprefix, MATCH_AT_FIRST))
path 1072 global/global.c convert_put(cv, gtp->path);
path 1094 global/global.c if (strcmp(gtp->path, curpath) != 0) {
path 1098 global/global.c strlimcpy(curpath, gtp->path, sizeof(curpath));
path 1148 global/global.c die("unexpected end of file. '%s: %d/%d'", gtp->path, lineno, n);
path 1154 global/global.c convert_put_using(cv, tagname, gtp->path, n, src);
path 1169 global/global.c die("unexpected end of file. '%s: %d/%d'", gtp->path, lineno, n);
path 1175 global/global.c convert_put_using(cv, tagname, gtp->path, n, src);
path 1209 global/global.c convert_put_using(cv, tagname, gtp->path, gtp->lineno, image);
path 317 gozilla/gozilla.c const char *path;
path 325 gozilla/gozilla.c path = makepath(htmldir, "MAP.db", NULL);
path 326 gozilla/gozilla.c if (test("f", path))
path 327 gozilla/gozilla.c dbop = dbop_open(path, 0, 0, 0);
path 329 gozilla/gozilla.c path = makepath(htmldir, "MAP", NULL);
path 330 gozilla/gozilla.c if (!test("f", path))
path 331 gozilla/gozilla.c die("'%s' not found. Please reconstruct hypertext using the latest htags(1).", path);
path 332 gozilla/gozilla.c dbop = dbop_open(path, 0, 0, 0);
path 345 gozilla/gozilla.c fp = fopen(path, "r");
path 435 gozilla/gozilla.c convertpath(const char *dbpath, const char *htmldir, const char *path, STRBUF *sb)
path 451 gozilla/gozilla.c p = gpath_path2fid(path, NULL);
path 473 gozilla/gozilla.c for (p = path + 1; *p; p++)
path 500 gozilla/gozilla.c makefileurl(const char *path, int line, STRBUF *url)
path 507 gozilla/gozilla.c if (isalpha(*path) && *(path+1) == ':') {
path 508 gozilla/gozilla.c strbuf_putc(url, *path);
path 510 gozilla/gozilla.c path += 2;
path 513 gozilla/gozilla.c strbuf_puts(url, path);
path 539 gozilla/gozilla.c char *path;
path 544 gozilla/gozilla.c if (!(path = usable(browser))) {
path 548 gozilla/gozilla.c if (!(path = usable("start")))
path 549 gozilla/gozilla.c path = "cmd /c start";
path 550 gozilla/gozilla.c snprintf(com, sizeof(com), "%s %s \"%s\"", path, browser, url);
path 552 gozilla/gozilla.c snprintf(com, sizeof(com), "%s \"%s\"", path, url);
path 570 gozilla/gozilla.c char *path;
path 572 gozilla/gozilla.c if (!(path = usable(browser)))
path 574 gozilla/gozilla.c snprintf(com, sizeof(com), "%s -remote \"openURL(%s)\"", path, url);
path 224 gtags/gtags.c char path[MAXPATHLEN+1];
path 226 gtags/gtags.c if (realpath(gtagsconf, path) == NULL)
path 228 gtags/gtags.c set_env("GTAGSCONF", path);
path 453 gtags/gtags.c const char *path;
path 463 gtags/gtags.c path = makepath(dbpath, dbname(GTAGS), NULL);
path 464 gtags/gtags.c if (stat(path, &statp) < 0)
path 465 gtags/gtags.c die("stat failed '%s'.", path);
path 487 gtags/gtags.c while ((path = find_read()) != NULL) {
path 493 gtags/gtags.c if (*path == ' ') {
path 494 gtags/gtags.c if (test("b", ++path))
path 498 gtags/gtags.c if (stat(path, &statp) < 0)
path 499 gtags/gtags.c die("stat failed '%s'.", path);
path 500 gtags/gtags.c fid = gpath_path2fid(path, NULL);
path 507 gtags/gtags.c strbuf_puts0(addlist_other, path);
path 510 gtags/gtags.c strbuf_puts0(addlist, path);
path 513 gtags/gtags.c strbuf_puts0(addlist, path);
path 533 gtags/gtags.c if ((path = gpath_fid2path(fid, &type)) == NULL)
path 540 gtags/gtags.c if (!idset_contains(findset, id) || !test("f", path) || test("b", path))
path 541 gtags/gtags.c strbuf_puts0(deletelist, path);
path 543 gtags/gtags.c if (!idset_contains(findset, id) || !test("f", path)) {
path 544 gtags/gtags.c strbuf_puts0(deletelist, path);
path 626 gtags/gtags.c verbose_updatetags(char *path, int seqno, int skip)
path 632 gtags/gtags.c fprintf(stderr, " adding tags of %s", path);
path 658 gtags/gtags.c const char *path;
path 665 gtags/gtags.c path = gpath_fid2path(fid, NULL);
path 666 gtags/gtags.c if (path == NULL)
path 668 gtags/gtags.c fprintf(stderr, " [%d/%d] deleting tags of %s\n", seqno++, total, path + 2);
path 734 gtags/gtags.c verbose_createtags(char *path, int seqno, int skip)
path 740 gtags/gtags.c fprintf(stderr, " extracting tags of %s", path);
path 55 htags-refkit/htags_path2url.c const char *path;
path 162 htags-refkit/htags_path2url.c m[i].path = p;
path 256 htags-refkit/htags_path2url.c htags_path2url(const char *path, int line, char *url, int size)
path 263 htags-refkit/htags_path2url.c tmp.name = path;
path 268 htags-refkit/htags_path2url.c snprintf(url, size, "%s#L%d", result->path, line);
path 270 htags-refkit/htags_path2url.c snprintf(url, size, "%s", result->path);
path 287 htags-refkit/htags_path2url.c char *path, *html;
path 296 htags-refkit/htags_path2url.c path = argv[2];
path 313 htags-refkit/htags_path2url.c ret = htags_path2url(path, line, url, sizeof(url));
path 323 htags-refkit/htags_path2url.c fprintf(stdout, "%s, line %d => %s\n", path, line, url);
path 106 htags/anchor.c anchor_load(const char *path)
path 141 htags/anchor.c if (strcmp(ptable.part[PART_PATH].start, path) != 0) {
path 831 htags/asm.c char path[MAXPATHLEN+1], *p = path;
path 846 htags/asm.c const char *basename = locatestring(path, "/", MATCH_LAST);
path 851 htags/asm.c basename = path;
path 854 htags/asm.c put_include_anchor(inc, path);
path 856 htags/asm.c echos(path);
path 859 htags/asm.c echos(path);
path 61 htags/assoc.c static char path[MAXPATHLEN];
path 64 htags/assoc.c snprintf(path, sizeof(path), "%s/htag%c%d", tmpdir, uniq, pid);
path 65 htags/assoc.c return path;
path 876 htags/c.c } else if (c) {
path 891 htags/c.c struct data *inc;
path 896 htags/c.c else
path 899 htags/c.c if (inc)
path 901 htags/c.c else
path 904 htags/c.c } else {
path 831 htags/cpp.c char path[MAXPATHLEN+1], *p = path;
path 846 htags/cpp.c const char *basename = locatestring(path, "/", MATCH_LAST);
path 851 htags/cpp.c basename = path;
path 854 htags/cpp.c put_include_anchor(inc, path);
path 856 htags/cpp.c echos(path);
path 859 htags/cpp.c echos(path);
path 227 htags/defineindex.c const char *lno, *fid, *path;
path 234 htags/defineindex.c path = ptable.part[1].start;
path 235 htags/defineindex.c path += 2; /* remove './' */
path 237 htags/defineindex.c fid = path2fid(path);
path 243 htags/defineindex.c snprintf(guide, sizeof(guide), "Defined at %s in %s.", lno, path);
path 143 htags/dupindex.c char path[MAXPATHLEN+1];
path 145 htags/dupindex.c snprintf(path, sizeof(path), "%s/%s/%d.%s", distpath, dirs[db], count, HTML);
path 146 htags/dupindex.c fileop = open_output_file(path, cflag);
path 182 htags/fileindex.c lastpart(const char *path)
path 184 htags/fileindex.c const char *p = strrchr(path, '/');
path 186 htags/fileindex.c return p ? p + 1 : path;
path 198 htags/fileindex.c dirpart(const char *path, char *result)
path 201 htags/fileindex.c const char *q = path, *limit = strrchr(path, '/');
path 221 htags/fileindex.c localpath(const char *path, char *dir)
path 225 htags/fileindex.c if (!strncmp(path, dir, length) && *(path + length) == '/')
path 226 htags/fileindex.c return path + length + 1;
path 239 htags/fileindex.c appendslash(const char *path)
path 244 htags/fileindex.c strbuf_puts(sb, path);
path 258 htags/fileindex.c removedotslash(const char *path)
path 260 htags/fileindex.c return (*path == '.' && *(path + 1) == '/') ? path + 2 : path;
path 339 htags/fileindex.c const char *path;
path 353 htags/fileindex.c while ((path = getpath()) != NULL) {
path 354 htags/fileindex.c const char *p, *local = localpath(path, basedir);
path 408 htags/fileindex.c PUT(print_file_name(level, path));
path 448 htags/fileindex.c char path[MAXPATHLEN+1];
path 451 htags/fileindex.c strlimcpy(path, dir, sizeof(path));
path 452 htags/fileindex.c for (p = path + 1; p != NULL; p = strchr(p, '/')) {
path 462 htags/fileindex.c fputs(gen_href_begin(NULL, path2fid(path), HTML, NULL), op);
path 544 htags/fileindex.c print_file_name(int level, const char *path)
path 548 htags/fileindex.c int size = filesize(path);
path 551 htags/fileindex.c message(" [%d] adding %s", ++src_count, removedotslash(path));
path 560 htags/fileindex.c if (regexec(&is_include_file, path, 0, 0, 0) == 0)
path 561 htags/fileindex.c put_inc(lastpart(path), path, src_count);
path 572 htags/fileindex.c path2fid(path), HTML, NULL, tips, target));
path 576 htags/fileindex.c if ((suffix = locatestring(path, ".", MATCH_LAST)) != NULL
path 583 htags/fileindex.c strbuf_puts(sb, gen_image(level == 0 ? CURRENT : PARENT, text_icon, removedotslash(path)));
path 586 htags/fileindex.c strbuf_puts(sb, full_path ? removedotslash(path) : lastpart(path));
path 596 htags/fileindex.c fprintf(FILEMAP, "%s\t%s/%s.%s\n", removedotslash(path), SRCS, path2fid(path), HTML);
path 607 htags/fileindex.c print_directory_name(int level, const char *path, int count)
path 616 htags/fileindex.c path = removedotslash(path);
path 623 htags/fileindex.c path2fid(path), HTML, NULL, tips));
path 625 htags/fileindex.c strbuf_puts(sb, gen_image(level == 0 ? CURRENT : PARENT, dir_icon, appendslash(path)));
path 628 htags/fileindex.c strbuf_sprintf(sb, "%s/%s", lastpart(path), gen_href_end());
path 807 htags/fileindex.c char path[MAXPATHLEN];
path 809 htags/fileindex.c snprintf(path, sizeof(path), "%s/%s/%d.%s", distpath, INCS, no, HTML);
path 810 htags/fileindex.c fileop_INCLUDE = open_output_file(path, cflag);
path 852 htags/fileindex.c char path[MAXPATHLEN];
path 854 htags/fileindex.c snprintf(path, sizeof(path), "%s/%s/%d.%s", distpath, INCREFS, no, HTML);
path 855 htags/fileindex.c fileop_INCLUDE = open_output_file(path, cflag);
path 61 htags/htags.c #define mkdir(path,mode) mkdir(path)
path 373 htags/htags.c const char *path = makepath(distpath, name, NULL);
path 375 htags/htags.c if (!test("d", path))
path 376 htags/htags.c if (mkdir(path, 0775))
path 377 htags/htags.c die("cannot make directory '%s'.", path);
path 814 htags/htags.c const char *path;
path 822 htags/htags.c while ((path = gfind_read(gp)) != NULL) {
path 825 htags/htags.c fputs(path, anchor_stream);
path 837 htags/htags.c while ((path = gfind_read(gp)) != NULL) {
path 846 htags/htags.c anchor_load(path);
path 849 htags/htags.c path += 2; /* remove './' at the head */
path 850 htags/htags.c message(" [%d/%d] converting %s", count, total, path);
path 851 htags/htags.c snprintf(html, sizeof(html), "%s/%s/%s.%s", distpath, SRCS, path2fid(path), HTML);
path 852 htags/htags.c src2html(path, html, gp->type == GPATH_OTHER);
path 1727 htags/htags.c const char *path;
path 1731 htags/htags.c path = makepath(dbpath, dbname(i), NULL);
path 1732 htags/htags.c gtags_exist[i] = test("fr", path);
path 68 htags/incop.c put_inc(const char *file, const char *path, int id)
path 89 htags/incop.c strbuf_puts0(data->contents, path);
path 138 htags/incop.c put_included(struct data *data, const char *path)
path 142 htags/incop.c strbuf_puts0(data->ref_contents, path);
path 48 htags/path2url.c const char *path;
path 56 htags/path2url.c for (path = dbop_first(dbop, "./", NULL, DBOP_PREFIX | DBOP_KEY); path; path = dbop_next(dbop)) {
path 59 htags/path2url.c path += 2; /* remove './' */
path 60 htags/path2url.c assoc_put(assoc, path, no);
path 84 htags/path2url.c path2fid(const char *path)
path 89 htags/path2url.c if (strlen(path) > MAXPATHLEN)
path 90 htags/path2url.c die("path name too long. '%s'", path);
path 94 htags/path2url.c if (*path == '.' && *(path + 1) == '/')
path 95 htags/path2url.c path += 2;
path 96 htags/path2url.c p = assoc_get(assoc, path);
path 99 htags/path2url.c assoc_put(assoc, path, number);
path 957 htags/php.c char path[MAXPATHLEN+1], *p = path;
path 970 htags/php.c const char *basename = locatestring(path, "/", MATCH_LAST);
path 975 htags/php.c basename = path;
path 978 htags/php.c put_include_anchor(inc, path);
path 980 htags/php.c echos(path);
path 983 htags/php.c echos(path);
path 172 htags/src2html.c * i) $root root or index page
path 178 htags/src2html.c {
path 189 htags/src2html.c strbuf_sprintf(sb, "%sroot%s/", gen_href_begin_simple(root), gen_href_end());
path 199 htags/src2html.c strbuf_puts(sb, unit);
path 420 htags/src2html.c *
path 429 htags/src2html.c else {
path 410 libdb/bt_open.c char path[1024];
path 417 libdb/bt_open.c if (envtmp && strlen(envtmp) + strlen("/bt.XXXXXX") >= sizeof(path))
path 419 libdb/bt_open.c (void)snprintf(path, sizeof(path),
path 426 libdb/bt_open.c if ((fd = mkstemp(path)) != -1)
path 427 libdb/bt_open.c (void)unlink(path);
path 182 libutil/abs2rel.c normalize(const char *path, const char *root, const char *cwd, char *result, const int size)
path 186 libutil/abs2rel.c if (normalize_pathname(path, result, size) == NULL)
path 188 libutil/abs2rel.c if (*path == '/') {
path 233 libutil/abs2rel.c normalize_pathname(const char *path, char *result, const int size)
path 235 libutil/abs2rel.c const char *savep, *p = path;
path 312 libutil/abs2rel.c abs2rel(const char *path, const char *base, char *result, const int size)
path 321 libutil/abs2rel.c if (*path != '/') {
path 322 libutil/abs2rel.c if (strlen(path) >= size)
path 324 libutil/abs2rel.c strcpy(result, path);
path 334 libutil/abs2rel.c branch = path;
path 335 libutil/abs2rel.c for (pp = path, bp = base; *pp && *bp && *pp == *bp; pp++, bp++)
path 355 libutil/abs2rel.c for (bp = base + (branch - path); *bp; bp++)
path 392 libutil/abs2rel.c rel2abs(const char *path, const char *base, char *result, const int size)
path 402 libutil/abs2rel.c if (*path == '/') {
path 403 libutil/abs2rel.c if (strlen(path) >= size)
path 405 libutil/abs2rel.c strcpy(result, path);
path 415 libutil/abs2rel.c if (!strcmp(path, ".") || !strcmp(path, "./")) {
path 432 libutil/abs2rel.c if (*++path == '/') {
path 449 libutil/abs2rel.c for (pp = path; *pp && *pp == '.'; ) {
path 321 libutil/conf.c const char *path;
path 327 libutil/conf.c path = "gtags-parser.exe";
path 329 libutil/conf.c path = usable("gtags-parser") ? "gtags-parser.exe" : "gtags-~1.exe";
path 331 libutil/conf.c path = usable("gtags-parser");
path 332 libutil/conf.c if (!path)
path 333 libutil/conf.c path = "gtags-parser";
path 336 libutil/conf.c strbuf_puts(sb, path);
path 339 libutil/conf.c strbuf_puts(sb, path);
path 342 libutil/conf.c strbuf_puts(sb, path);
path 67 libutil/dbop.c dbop_open(const char *path, int mode, int perm, int flags)
path 108 libutil/dbop.c if (path != NULL && mode == 1 && test("f", path))
path 109 libutil/dbop.c (void)unlink(path);
path 110 libutil/dbop.c db = dbopen(path, rw, 0600, DB_BTREE, &info);
path 114 libutil/dbop.c if (path == NULL)
path 117 libutil/dbop.c strlimcpy(dbop->dbname, path, sizeof(dbop->dbname));
path 230 libutil/dbop.c dbop_delete(DBOP *dbop, const char *path)
path 236 libutil/dbop.c if (path) {
path 237 libutil/dbop.c key.data = (char *)path;
path 238 libutil/dbop.c key.size = strlen(path)+1;
path 64 libutil/fileop.c open_input_file(const char *path)
path 66 libutil/fileop.c FILE *fp = fopen(path, "r");
path 70 libutil/fileop.c die("cannot open file '%s'.", path);
path 73 libutil/fileop.c strlimcpy(fileop->path, path, sizeof(fileop->path));
path 85 libutil/fileop.c open_output_file(const char *path, int compress)
path 92 libutil/fileop.c snprintf(command, sizeof(command), "gzip -c >%s", path);
path 97 libutil/fileop.c fp = fopen(path, "w");
path 99 libutil/fileop.c die("cannot create file '%s'.", path);
path 102 libutil/fileop.c strlimcpy(fileop->path, path, sizeof(fileop->path));
path 38 libutil/fileop.h char path[MAXPATHLEN+1];
path 300 libutil/find.c skipthisfile(const char *path)
path 308 libutil/find.c if (skip && regexec(skip, path, 0, 0, 0) == 0)
path 322 libutil/find.c if (!strncmp(path + 1, first, last - first))
path 325 libutil/find.c if (!strcmp(path + 1, first))
path 467 libutil/find.c static char *path;
path 471 libutil/find.c path = NULL;
path 473 libutil/find.c path = find_read_filelist();
path 475 libutil/find.c path = find_read_traverse();
path 478 libutil/find.c return path;
path 497 libutil/find.c char path[MAXPATHLEN];
path 500 libutil/find.c strlimcpy(path, makepath(dir, unit, NULL), sizeof(path));
path 501 libutil/find.c if (skipthisfile(path))
path 509 libutil/find.c if (!test("f", path)) {
path 511 libutil/find.c if (test("d", path))
path 512 libutil/find.c warning("'%s' is a directory. (Ignored)", path);
path 514 libutil/find.c warning("'%s' not found. (Ignored)", path);
path 522 libutil/find.c if (locatestring(path, " ", MATCH_FIRST)) {
path 524 libutil/find.c warning("'%s' ignored, because it includes blank.", &path[2]);
path 531 libutil/find.c if (regexec(suff, path, 0, 0, 0) == 0) {
path 533 libutil/find.c strlimcpy(val, path, sizeof(val));
path 537 libutil/find.c strlimcpy(&val[1], path, sizeof(val) - 1);
path 588 libutil/find.c static char *path;
path 592 libutil/find.c path = strbuf_fgets(ib, ip, STRBUF_NOCRLF);
path 593 libutil/find.c if (path == NULL) {
path 598 libutil/find.c if (*path == '\0') {
path 608 libutil/find.c if (!test("f", path)) {
path 610 libutil/find.c if (test("d", path))
path 611 libutil/find.c warning("'%s' is a directory. (Ignored)", path);
path 613 libutil/find.c warning("'%s' not found. (Ignored)", path);
path 623 libutil/find.c path = normalize(path, rootdir, cwddir, buf, sizeof(buf));
path 628 libutil/find.c if (locatestring(path, " ", MATCH_LAST)) {
path 630 libutil/find.c warning("'%s' ignored, because it includes blank.", path + 2);
path 633 libutil/find.c if (skipthisfile(path))
path 639 libutil/find.c if (regexec(suff, path, 0, 0, 0) != 0)
path 640 libutil/find.c *--path = ' ';
path 641 libutil/find.c return path;
path 89 libutil/getdbpath.c char path[MAXPATHLEN+1];
path 97 libutil/getdbpath.c snprintf(path, sizeof(path), "%s/%s", candidate, dbname(GTAGS));
path 99 libutil/getdbpath.c fprintf(stderr, "checking %s\n", path);
path 100 libutil/getdbpath.c if (test("fr", path)) {
path 102 libutil/getdbpath.c fprintf(stderr, "GTAGS found at '%s'.\n", path);
path 106 libutil/getdbpath.c snprintf(path, sizeof(path),
path 109 libutil/getdbpath.c fprintf(stderr, "checking %s\n", path);
path 110 libutil/getdbpath.c if (test("fr", path)) {
path 112 libutil/getdbpath.c fprintf(stderr, "GTAGS found at '%s'.\n", path);
path 117 libutil/getdbpath.c snprintf(path, sizeof(path),
path 120 libutil/getdbpath.c fprintf(stderr, "checking %s\n", path);
path 121 libutil/getdbpath.c if (test("fr", path)) {
path 123 libutil/getdbpath.c fprintf(stderr, "GTAGS found at '%s'.\n", path);
path 207 libutil/getdbpath.c const char *s, *path;
path 209 libutil/getdbpath.c path = makepath(root, "GTAGSROOT", NULL);
path 210 libutil/getdbpath.c if (!test("fr", path)) {
path 213 libutil/getdbpath.c fp = fopen(path, "r");
path 216 libutil/getdbpath.c fprintf(stderr, "'%s' ignored because it cannot be opened.\n", path);
path 223 libutil/getdbpath.c fprintf(stderr, "'%s' ignored because it doesn't include existent directory name.\n", path);
path 226 libutil/getdbpath.c fprintf(stderr, "GTAGSROOT found at '%s'.\n", path);
path 120 libutil/gpathop.c const char *path = dbop_get(dbop, NEXTKEY);
path 122 libutil/gpathop.c if (path == NULL)
path 124 libutil/gpathop.c _nextkey = atoi(path);
path 143 libutil/gpathop.c gpath_put(const char *path, int type)
path 151 libutil/gpathop.c if (dbop_get(dbop, path) != NULL)
path 164 libutil/gpathop.c dbop_put_withlen(dbop, path, strbuf_value(sb), strbuf_getlen(sb));
path 169 libutil/gpathop.c strbuf_puts0(sb, path);
path 184 libutil/gpathop.c gpath_path2fid(const char *path, int *type)
path 186 libutil/gpathop.c const char *fid = dbop_get(dbop, path);
path 207 libutil/gpathop.c const char *path = dbop_get(dbop, fid);
path 209 libutil/gpathop.c if (path && type) {
path 213 libutil/gpathop.c return path;
path 221 libutil/gpathop.c gpath_delete(const char *path)
path 227 libutil/gpathop.c assert(path[0] == '.' && path[1] == '/');
path 228 libutil/gpathop.c fid = dbop_get(dbop, path);
path 232 libutil/gpathop.c dbop_delete(dbop, path);
path 296 libutil/gpathop.c gfind->path = NULL;
path 326 libutil/gpathop.c gfind->path = dbop_first(gfind->dbop, gfind->prefix, NULL, DBOP_KEY | DBOP_PREFIX);
path 328 libutil/gpathop.c gfind->path = dbop_next(gfind->dbop);
path 330 libutil/gpathop.c if (gfind->path == NULL) {
path 343 libutil/gpathop.c return gfind->path;
path 48 libutil/gpathop.h const char *path; /* return value of gfind_read() */
path 93 libutil/gtagsop.c if ((ret = strcmp(e1->path, e2->path)) != 0)
path 614 libutil/gtagsop.c gtop->gtp.path = gtop->path_array[gtop->path_index++];
path 659 libutil/gtagsop.c gtop->gtp.path = gtop->path_array[gtop->path_index++];
path 859 libutil/gtagsop.c const char *tagline, *fid, *path, *lineno;
path 889 libutil/gtagsop.c path = gpath_fid2path(fid, NULL);
path 890 libutil/gtagsop.c if (path == NULL)
path 892 libutil/gtagsop.c sh = strhash_assign(gtop->path_hash, path, 1);
path 893 libutil/gtagsop.c gtp->path = sh->name;
path 69 libutil/gtagsop.h const char *path;
path 60 libutil/linetable.c linetable_open(const char *path)
path 66 libutil/linetable.c if (stat(path, &sb) < 0)
path 70 libutil/linetable.c if ((ip = fopen(path, "r")) == NULL)
path 70 libutil/path.c canonpath(char *path)
path 83 libutil/path.c _truename(path, path);
path 89 libutil/path.c if (access(path, F_OK) != 0) {
path 90 libutil/path.c base = basename(path);
path 93 libutil/path.c _truename(path, path);
path 94 libutil/path.c strcat(path, name);
path 100 libutil/path.c for (p = path+3, base = p-1; *base; p++) {
path 117 libutil/path.c path[0] = tolower(path[0]);
path 118 libutil/path.c for (p = path+2; *p; ++p)
path 124 libutil/path.c p = path;
path 135 libutil/path.c p = path;
path 146 libutil/path.c return path;
path 42 libutil/pathconvert.c convert_pathname(CONVERT *cv, const char *path)
path 51 libutil/pathconvert.c return path;
path 57 libutil/pathconvert.c strbuf_puts(cv->abspath, path + 1);
path 63 libutil/pathconvert.c path = strbuf_value(cv->abspath);
path 76 libutil/pathconvert.c path = buf;
path 82 libutil/pathconvert.c return (const char *)path;
path 132 libutil/pathconvert.c char *tag = NULL, *lineno = NULL, *path, *rest = NULL;
path 139 libutil/pathconvert.c path = (char *)tagline;
path 175 libutil/pathconvert.c path = p;
path 185 libutil/pathconvert.c fputs(convert_pathname(cv, path), cv->op);
path 190 libutil/pathconvert.c fputs(convert_pathname(cv, path), cv->op);
path 195 libutil/pathconvert.c fputs(gpath_path2fid(path, NULL), cv->op);
path 208 libutil/pathconvert.c fputs(convert_pathname(cv, path), cv->op);
path 213 libutil/pathconvert.c fputs(convert_pathname(cv, path), cv->op);
path 220 libutil/pathconvert.c fputs(convert_pathname(cv, path), cv->op);
path 245 libutil/pathconvert.c convert_put_using(CONVERT *cv, const char *tag, const char *path, int lineno, const char *rest)
path 249 libutil/pathconvert.c fputs(convert_pathname(cv, path), cv->op);
path 254 libutil/pathconvert.c fputs(convert_pathname(cv, path), cv->op);
path 259 libutil/pathconvert.c fputs(gpath_path2fid(path, NULL), cv->op);
path 264 libutil/pathconvert.c tag, lineno, convert_pathname(cv, path), rest);
path 267 libutil/pathconvert.c fputs(convert_pathname(cv, path), cv->op);
path 274 libutil/pathconvert.c fputs(convert_pathname(cv, path), cv->op);
path 51 libutil/test.c is_binary(const char *path)
path 57 libutil/test.c ip = open(path, O_RDONLY);
path 59 libutil/test.c die("cannot open file '%s' in read mode.", path);
path 93 libutil/test.c test(const char *flags, const char *path)
path 98 libutil/test.c if (path != NULL)
path 99 libutil/test.c if (stat(path, &sb) < 0)
path 104 libutil/test.c if (!is_binary(path))
path 116 libutil/test.c if (access(path, R_OK) < 0)
path 124 libutil/test.c if (access(path, W_OK) < 0)
path 130 libutil/test.c if (strlen(path) < 5)
path 134 libutil/test.c if (!locatestring(path, ".exe", MATCH_AT_LAST|IGNORE_CASE) &&
path 135 libutil/test.c !locatestring(path, ".com", MATCH_AT_LAST|IGNORE_CASE) &&
path 136 libutil/test.c !locatestring(path, ".bat", MATCH_AT_LAST|IGNORE_CASE))
path 139 libutil/test.c if (access(path, X_OK) < 0)
path 157 libutil/test.c filesize(const char *path)
path 161 libutil/test.c if (stat(path, &sb) < 0)
path 60 libutil/usable.c static char path[MAXPATHLEN+1];
path 69 libutil/usable.c strlimcpy(path, command, sizeof(path));
path 70 libutil/usable.c return path;
path 78 libutil/usable.c strlimcpy(path, makepath(BINDIR, command, NULL), sizeof(path));
path 79 libutil/usable.c return path;
path 84 libutil/usable.c *path = 0;
path 95 libutil/usable.c strlimcpy(path, makepath(dir, command, NULL), sizeof(path));
path 101 libutil/usable.c strlimcpy(path, makepath(dir, command, suffix[i]), sizeof(path));
path 108 libutil/usable.c return *path ? path : NULL;
path 142 libutil/xargs.c char *path = (p);\
path 143 libutil/xargs.c length = strlen(path);\
path 144 libutil/xargs.c if (*path == ' ') {\
path 145 libutil/xargs.c if (xp->put_gpath && !test("b", ++path))\
path 146 libutil/xargs.c gpath_put(path, GPATH_OTHER);\
path 153 libutil/xargs.c gpath_put(path, GPATH_SOURCE);\
path 154 libutil/xargs.c if (xp->skip_assembly && locatestring(path, ".s", MATCH_AT_LAST|IGNORE_CASE) != NULL) {\
path 156 libutil/xargs.c xp->verbose(path + 2, xp->seqno, 1);\
path 159 libutil/xargs.c xp->verbose(path + 2, xp->seqno, 0);\
path 162 libutil/xargs.c strbuf_puts(comline, path);\
path 213 libutil/xargs.c ((p = (strbuf_getlen(xp->path) > 0 ?
path 214 libutil/xargs.c strbuf_value(xp->path) :
path 215 libutil/xargs.c strbuf_fgets(xp->path, xp->ip, STRBUF_NOCRLF))) != NULL))
path 218 libutil/xargs.c strbuf_reset(xp->path)
path 318 libutil/xargs.c xp->path = strbuf_open(0);
path 459 libutil/xargs.c strbuf_close(xp->path);
path 70 libutil/xargs.h STRBUF *path;