Home | History | Annotate | Download | only in djgpp

Lines Matching full:tmp_file_name

57 static char tmp_file_name[2][L_tmpnam];
81 strcpy(tmp_file_name[0], tmpdir);
82 strcat(tmp_file_name[0], "/bnXXXXXX");
83 fd = mkstemp(tmp_file_name[0]);
88 strcpy(tmp_file_name[1], tmpdir);
89 strcat(tmp_file_name[1], "/bnXXXXXX");
90 fd = mkstemp(tmp_file_name[1]);
151 from_in_fd = open(tmp_file_name[0], O_WRONLY | O_CREAT | O_TRUNC, S_IWUSR);
156 remove_tmp_file(from_in_fd, tmp_file_name[0]);
181 int from_out_fd = open(tmp_file_name[0], O_RDONLY, S_IRUSR); /* pipe from bison to m4. */
182 int to_in_fd = open(tmp_file_name[1], O_WRONLY | O_CREAT | O_TRUNC, S_IWUSR); /* pipe from m4 to bison. */
200 remove_tmp_file(from_out_fd, tmp_file_name[0]);
211 remove_tmp_file(STDIN_FILENO, tmp_file_name[0]);
216 remove_tmp_file(STDIN_FILENO, tmp_file_name[0]);
217 remove_tmp_file(to_in_fd, tmp_file_name[1]);
232 remove_tmp_file(STDIN_FILENO, tmp_file_name[0]);
233 remove_tmp_file(STDOUT_FILENO, tmp_file_name[1]);
238 remove_tmp_file(STDIN_FILENO, tmp_file_name[0]);
239 remove_tmp_file(STDOUT_FILENO, tmp_file_name[1]);
254 to_in_fd = open(tmp_file_name[1], O_RDONLY, S_IRUSR); /* pipe from m4 to bison. */
257 remove_tmp_file(STDIN_FILENO, tmp_file_name[0]);
262 remove_tmp_file(STDIN_FILENO, tmp_file_name[0]);
263 remove_tmp_file(to_in_fd, tmp_file_name[1]);
285 if (unlink(tmp_file_name[0]))
286 error(EXIT_FAILURE, 0, _("removing of '%s' failed"), tmp_file_name[0]);
287 if (unlink(tmp_file_name[1]))
288 error(EXIT_FAILURE, 0, _("removing of '%s' failed"), tmp_file_name[1]);