Lines Matching refs:internal

191  *	0x00020000 close internal.openfd before job exec
215 Internal_t internal; /* internal rules and vars */
240 if ((state.mam.level = level) > 0 && !state.hold && (r = internal.error) && (r->property & (P_functional|P_target)) == (P_functional|P_target) && !state.compileonly && !state.interrupt && (m = stakptr(0)) && (n = staktell()) > 0)
349 internal.met = sfstropen();
350 internal.nam = sfstropen();
351 internal.tmp = sfstropen();
352 internal.val = sfstropen();
353 internal.wrk = sfstropen();
402 internal.pwd = (s = getcwd(buf, MAXNAME)) ? strdup(s) : strdup(".");
403 internal.pwdlen = strlen(internal.pwd);
417 setvar(external.pwd, internal.pwd, V_import);
428 if ((v = getvar(external.pwd)) && !streq(v->value, internal.pwd))
430 if (!stat(v->value, &st) && !stat(internal.pwd, &ds) && st.st_ino == ds.st_ino && st.st_dev == ds.st_dev)
432 free(internal.pwd);
433 internal.pwd = strdup(v->value);
434 internal.pwdlen = strlen(v->value);
440 v->value = strdup(internal.pwd);
445 * initialize the internal rule pointers
570 if (!state.mam.root || streq(state.mam.root, internal.pwd))
571 sfprintf(state.mam.out, "%sinfo pwd %s\n", state.mam.label, internal.pwd);
573 sfprintf(state.mam.out, "%sinfo pwd %s %s\n", state.mam.label, state.mam.root, mamname(makerule(internal.pwd)));
597 * NOTE: internal.tmplist is used to handle the effects of
598 * load() on internal list pointers
602 if (p = internal.makefiles->prereqs)
604 p = internal.tmplist->prereqs = listcopy(p);
607 freelist(internal.tmplist->prereqs);
608 internal.tmplist->prereqs = 0;
766 * place the command line targets in internal.args
769 if (internal.main->dynamic & D_dynamic)
770 dynamic(internal.main);
771 internal.args->prereqs = p = 0;
781 internal.args->prereqs = p = q;
824 * internal.args default to internal.main
827 if (!internal.args->prereqs && internal.main->prereqs)
828 internal.args->prereqs = listcopy(internal.main->prereqs);
838 * make the prerequisites of internal.args
841 if (internal.args->prereqs)
842 while (internal.args->prereqs)
845 * we explicitly allow internal.args modifications
848 r = internal.args->prereqs->rule;
849 internal.making->prereqs = internal.args->prereqs;
850 internal.args->prereqs = internal.args->prereqs->next;
851 internal.making->prereqs->next = 0;
879 if (!state.hold && (r = internal.error) && (r->property & (P_target|P_functional)) == P_target)