Lines Matching full:tmp_file_name
60 static char tmp_file_name[2][L_tmpnam];
75 strcpy(tmp_file_name[0], "/dev/env/TMPDIR/bnXXXXXX");
76 fd = mkstemp(tmp_file_name[0]);
81 strcpy(tmp_file_name[1], "/dev/env/TMPDIR/bnXXXXXX");
82 fd = mkstemp(tmp_file_name[1]);
143 from_in_fd = open(tmp_file_name[0], O_WRONLY | O_CREAT | O_TRUNC, S_IWUSR);
148 remove_tmp_file(from_in_fd, tmp_file_name[0]);
173 int from_out_fd = open(tmp_file_name[0], O_RDONLY, S_IRUSR); /* pipe from bison to m4. */
174 int to_in_fd = open(tmp_file_name[1], O_WRONLY | O_CREAT | O_TRUNC, S_IWUSR); /* pipe from m4 to bison. */
192 remove_tmp_file(from_out_fd, tmp_file_name[0]);
203 remove_tmp_file(STDIN_FILENO, tmp_file_name[0]);
208 remove_tmp_file(STDIN_FILENO, tmp_file_name[0]);
209 remove_tmp_file(to_in_fd, tmp_file_name[1]);
224 remove_tmp_file(STDIN_FILENO, tmp_file_name[0]);
225 remove_tmp_file(STDOUT_FILENO, tmp_file_name[1]);
230 remove_tmp_file(STDIN_FILENO, tmp_file_name[0]);
231 remove_tmp_file(STDOUT_FILENO, tmp_file_name[1]);
246 to_in_fd = open(tmp_file_name[1], O_RDONLY, S_IRUSR); /* pipe from m4 to bison. */
249 remove_tmp_file(STDIN_FILENO, tmp_file_name[0]);
254 remove_tmp_file(STDIN_FILENO, tmp_file_name[0]);
255 remove_tmp_file(to_in_fd, tmp_file_name[1]);
277 if (unlink(tmp_file_name[0]))
278 error(EXIT_FAILURE, 0, _("removing of `%s' failed"), tmp_file_name[0]);
279 if (unlink(tmp_file_name[1]))
280 error(EXIT_FAILURE, 0, _("removing of `%s' failed"), tmp_file_name[1]);