Home
last modified time | relevance | path

Searched refs:temp_file (Results 1 – 12 of 12) sorted by relevance

/titanic_41/usr/src/cmd/lp/filter/postscript/common/
H A Dmisc.c82 if ( temp_file != NULL ) in error()
83 unlink(temp_file); in error()
273 if ( temp_file != NULL )
274 unlink(temp_file);
H A Dglob.c49 char *temp_file = NULL; /* temporary file - for some programs */ variable
H A Dext.h45 extern char *temp_file; /* temporary file - for some programs */
/titanic_41/usr/src/cmd/lp/filter/postscript/download/
H A Ddownload.c406 if ( temp_file != NULL ) in done()
407 unlink(temp_file); in done()
432 if ( (temp_file = tempnam(temp_dir, "post")) == NULL ) in download()
434 if ( (fp_temp = fopen(temp_file, "w+")) == NULL ) in download()
435 error(FATAL, "can't open %s", temp_file); in download()
436 unlink(temp_file); in download()
437 temp_file = NULL; in download()
/titanic_41/usr/src/cmd/sgs/mcs/common/
H A Dmain.c262 free_tempfile(Tmp_File *temp_file) in free_tempfile() argument
264 if ((temp_file->tmp_name != NULL) && (temp_file->tmp_unlink)) in free_tempfile()
265 (void) unlink(temp_file->tmp_name); in free_tempfile()
266 (void) memset(temp_file, 0, sizeof (*temp_file)); in free_tempfile()
H A Dfile.c1403 copy_file(int ofd, char *fname, Tmp_File *temp_file) in copy_file() argument
1414 if ((fdtmp2 = open(temp_file->tmp_name, O_RDONLY)) == -1) { in copy_file()
1416 prog, temp_file->tmp_name); in copy_file()
1420 (void) stat(temp_file->tmp_name, &stbuf); /* for size of file */ in copy_file()
1439 strerror(errno), prog, temp_file->tmp_name); in copy_file()
1469 free_tempfile(temp_file); in copy_file()
/titanic_41/usr/src/cmd/lp/filter/postscript/dpost/
H A Ddpost.c1010 if ( temp_file != NULL ) { in done()
1012 cat(temp_file); in done()
1015 unlink(temp_file); in done()
2780 if ( temp_file == NULL ) /* generate a temp file name */ in documentfonts()
2781 if ( (temp_file = tempnam(TEMPDIR, "dpost")) == NULL ) in documentfonts()
2787 if ( (fp_out = fopen(temp_file, "a")) != NULL ) { in documentfonts()
/titanic_41/usr/src/cmd/make/bin/
H A Dparallel.cc1248 check_state(rp->temp_file); in finish_children()
1249 if (rp->temp_file != NULL) { in finish_children()
1250 free_name(rp->temp_file); in finish_children()
1252 rp->temp_file = NULL; in finish_children()
1455 rp->temp_file = NULL; in new_running_struct()
1519 rp->temp_file = temp_file_name; in add_running()
H A Dmain.cc686 if (rp->temp_file != NULL) { in cleanup_after_exit()
687 (void) unlink(rp->temp_file->string_mb); in cleanup_after_exit()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/
H A Droute.c310 static char *temp_file; variable
470 temp_file = temp_file_sfx; in main()
479 temp_file = malloc(size); in main()
480 if (temp_file == NULL) in main()
482 (void) snprintf(temp_file, size, "%s%s", root_dir, in main()
1676 if ((temp_fp = fopen(temp_file, "w")) == NULL) { in save_route()
1683 if (fclose(temp_fp) != 0 || rename(temp_file, perm_file) != 0) { in save_route()
1716 if (fclose(temp_fp) != 0 || rename(temp_file, perm_file) != 0) { in save_route()
/titanic_41/usr/src/cmd/make/include/mk/
H A Ddefs.h126 struct _Name *temp_file; member
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/wificonfig/
H A Dwificonfig.c932 char temp_file[256]; in fprint_config_file() local
939 safe_snprintf(temp_file, sizeof (temp_file), in fprint_config_file()
941 fd = open(temp_file, O_CREAT|O_WRONLY|O_TRUNC, 0600); in fprint_config_file()
944 gExecName, temp_file); in fprint_config_file()
999 if (rename(temp_file, file_name) != 0) { in fprint_config_file()