Lines Matching defs:cwd
143 * cwd causing getcwd to do a lot more work.
232 const char *cwd)
267 snprintf(buf, sizeof buf, "%s/%s", cwd, tname);
507 fprintf(fp, "CWD %s\n", getcwd(buf, sizeof buf));
602 * and :tA will resolve that to cwd.
737 char cwd[MAXPATHLEN];
749 if (getcwd(cwd, sizeof cwd) == NULL)
752 Global_Set(".ERROR_CWD", cwd);
1063 static char cwd[MAXPATHLEN];
1128 if (getcwd(cwd, sizeof cwd) == NULL)
1130 cwdlen = strlen(cwd);
1132 strlcpy(lcwd, cwd, sizeof lcwd);
1133 strlcpy(latestdir, cwd, sizeof latestdir);
1195 * Each process run by make starts off in the 'CWD'
1199 * the child to have the same cwd as its parent.
1202 * interest. This is usually the same as cwd, but
1209 * value for the current 'pid' and 'CWD' if none.
1240 debug_printf("%s:%u: %d: %c: cwd=%s lcwd=%s ldir=%s\n",
1242 pid, buf[0], cwd, lcwd, latestdir);
1271 "%s:%u: %d: cwd=%s lcwd=%s ldir=%s\n",
1273 child, cwd, lcwd, latestdir);
1286 DEBUG4(META, "%s:%u: cwd=%s ldir=%s\n",
1287 fname, lineno, cwd, lcwd);
1365 /* ignore cwd - normal dependencies handle those */
1366 if (strncmp(p, cwd, cwdlen) == 0)
1429 if (strcmp(lcwd, cwd) != 0) {
1430 /* Check vs cwd */
1431 if (snprintf(fname3, sizeof fname3, "%s/%s", cwd, p) < (int)(sizeof fname3))
1462 strncmp(p, cwd, cwdlen) != 0) {
1464 * A referenced file outside of CWD is missing.
1546 } else if (strcmp(buf, "CWD") == 0) {
1557 if (strcmp(p, cwd) != 0) {