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

/illumos-gate/usr/src/cmd/lp/filter/postscript/common/
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 */
H A Dmisc.c82 if ( temp_file != NULL )
83 unlink(temp_file);
273 if ( temp_file != NULL )
274 unlink(temp_file);
/illumos-gate/usr/src/cmd/lp/filter/postscript/download/
H A Ddownload.c406 if ( temp_file != NULL )
407 unlink(temp_file);
432 if ( (temp_file = tempnam(temp_dir, "post")) == NULL )
434 if ( (fp_temp = fopen(temp_file, "w+")) == NULL )
435 error(FATAL, "can't open %s", temp_file);
436 unlink(temp_file);
437 temp_file = NULL;
/illumos-gate/usr/src/cmd/sgs/mcs/common/
H A Dmain.c262 free_tempfile(Tmp_File *temp_file) argument
264 if ((temp_file->tmp_name != NULL) && (temp_file->tmp_unlink))
265 (void) unlink(temp_file->tmp_name);
266 (void) memset(temp_file, 0, sizeof (*temp_file));
H A Dfile.c1398 * The contents of the file given by temp_file->tmp_name are
1400 * unlinked, and temp_file reset.
1403 copy_file(int ofd, char *fname, Tmp_File *temp_file) argument
1414 if ((fdtmp2 = open(temp_file->tmp_name, O_RDONLY)) == -1) {
1416 prog, temp_file->tmp_name);
1420 (void) stat(temp_file->tmp_name, &stbuf); /* for size of file */
1439 strerror(errno), prog, temp_file->tmp_name);
1469 free_tempfile(temp_file);
/illumos-gate/usr/src/cmd/lp/filter/postscript/dpost/
H A Ddpost.c313 * number of font names we've recorded in *temp_file. If it's positive routine
314 * done() adds *temp_file to the output file before quitting.
1010 if ( temp_file != NULL ) {
1012 cat(temp_file);
1015 unlink(temp_file);
2772 * name in *temp_file for the DOCUMENTFONTS comment that's put out in done().
2774 * that have a .name file are recorded in *temp_file. The first string in that
2780 if ( temp_file == NULL ) /* generate a temp file name */
2781 if ( (temp_file = tempnam(TEMPDIR, "dpost")) == NULL )
2787 if ( (fp_out = fopen(temp_file, "
[all...]
/illumos-gate/usr/src/cmd/make/bin/
H A Dparallel.cc1248 check_state(rp->temp_file);
1249 if (rp->temp_file != NULL) {
1250 free_name(rp->temp_file);
1252 rp->temp_file = NULL;
1455 rp->temp_file = NULL;
1519 rp->temp_file = temp_file_name;
H A Dmain.cc686 if (rp->temp_file != NULL) {
687 (void) unlink(rp->temp_file->string_mb);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Droute.c310 static char *temp_file; variable
470 temp_file = temp_file_sfx;
479 temp_file = malloc(size);
480 if (temp_file == NULL)
482 (void) snprintf(temp_file, size, "%s%s", root_dir,
1676 if ((temp_fp = fopen(temp_file, "w")) == NULL) {
1683 if (fclose(temp_fp) != 0 || rename(temp_file, perm_file) != 0) {
1716 if (fclose(temp_fp) != 0 || rename(temp_file, perm_file) != 0) {
/illumos-gate/usr/src/cmd/make/include/mk/
H A Ddefs.h126 struct _Name *temp_file; member in struct:_Running
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/wificonfig/
H A Dwificonfig.c932 char temp_file[256]; local
939 safe_snprintf(temp_file, sizeof (temp_file),
941 fd = open(temp_file, O_CREAT|O_WRONLY|O_TRUNC, 0600);
944 gExecName, temp_file);
999 if (rename(temp_file, file_name) != 0) {

Completed in 2062 milliseconds