Lines Matching refs:FILE
5 This file is part of GNU Make.
16 GNU Make; see the file COPYING. If not, write to the Free Software
189 extern char *allocated_variable_expand_for_file PARAMS ((char *line, struct file *file));
245 /* This function creates a temporary file name with an extension specified
247 * Return an xmalloc'ed string of a newly created temp file and its
248 * file descriptor, or die. */
274 HANDLE h = CreateFile (temp_path, /* file name */
281 NULL); /* no template file */
323 error = _("Cannot create a temporary file\n");
444 state (`cs_finished') in the `file' member of the `struct child' for the
523 (unsigned long int) c, c->file->name,
708 DB (DB_JOBS, (_("Cleaning up temp batch file %s\n"),
732 child_error (c->file->name, exit_code, exit_sig, coredump, 0);
734 c->file->update_status = 2;
737 struct file *f = lookup_file (".DELETE_ON_ERROR");
748 child_error (c->file->name,
762 c->file->update_status = 2;
777 if (c->file->command_state == cs_running)
783 if (c->file->update_status != 0)
791 c->file->update_status = 0;
794 /* When we get here, all the commands for C->file are finished
795 (or aborted) and C->file->update_status contains 0 or 2. But
796 C->file->command_state is still cs_running if all the commands
798 it's interesting to check the file's modtime again now. */
804 notice_finished_file (c->file);
853 (unsigned long int) child, child->file->name);
870 (unsigned long int) child, child->file->name));
881 for (i = 0; i < child->file->cmds->ncommand_lines; ++i)
992 flags = (child->file->command_flags
993 | child->file->cmds->lines_flags[child->command_line - 1]);
1011 /* Update the file's command flags with any new ones we found. We only
1017 child->file->cmds->lines_flags[child->command_line - 1]
1027 argv = construct_command_argv (p, &end, child->file, &child->sh_batch_file);
1048 child->file->update_status = 1;
1049 notice_finished_file (child->file);
1080 set_command_state (child->file, cs_running);
1081 child->file->update_status = 0;
1082 notice_finished_file (child->file);
1150 /* Make a file
1184 child->environment = target_environment (child->file);
1406 set_command_state (child->file, cs_running);
1417 child->file->update_status = 2;
1418 notice_finished_file (child->file);
1429 struct file *f = c->file;
1462 (unsigned long int) c, c->file->name,
1488 /* Create a `struct child' for FILE and start its commands running. */
1491 new_job (struct file *file)
1493 register struct commands *cmds = file->cmds;
1607 file);
1615 c->file = file;
1619 /* Cache dontcare flag because file->dontcare can be changed once we
1621 c->dontcare = file->dontcare;
1716 (unsigned long int) c, c->file->name));
1739 while (file->command_state == cs_running)
1755 if (child->command_line == child->file->cmds->ncommand_lines)
1915 fatal (NILF, _("no more file handles: could not duplicate stdin\n"));
1917 fatal (NILF, _("no more file handles: could not duplicate stdout\n"));
1919 /* Close unnecessary file handles for the child. */
2079 /* the file might have a strange shell extension */
2098 /* The file is not executable. Try it as a shell script. */
2782 cases, run commands via a script file. */
2791 FILE* batch = NULL;
2795 /* create a file name */
2799 DB (DB_JOBS, (_("Creating temporary batch file %s\n"),
2802 /* Create a FILE object for the batch file, and write to it the
2803 commands to be executed. Put the batch file in TEXT mode. */
2932 FILE is the target whose commands these are. It is used for
2936 construct_command_argv (char *line, char **restp, struct file *file,
2988 shell = allocated_variable_expand_for_file ("$(SHELL)", file);
3044 ifs = allocated_variable_expand_for_file ("$(IFS)", file);