Searched refs:tempname (Results 1 - 20 of 20) sorted by relevance

/freebsd-11-stable/usr.bin/mail/
H A Dedit.c141 char *edit, tempname[PATHSIZE]; local
144 (void)snprintf(tempname, sizeof(tempname),
146 if ((t = mkstemp(tempname)) == -1 ||
148 warn("%s", tempname);
152 warn("%s", tempname);
153 (void)rm(tempname);
169 warnx("%s", tempname);
170 (void)rm(tempname);
175 warn("%s", tempname);
[all...]
H A Dquit.c76 char *mbox, tempname[PATHSIZE]; local
110 (void)snprintf(tempname, sizeof(tempname),
112 if ((fd = mkstemp(tempname)) == -1 ||
129 if ((rbuf = Fopen(tempname, "r")) == NULL)
131 (void)rm(tempname);
202 (void)snprintf(tempname, sizeof(tempname),
204 if ((fd = mkstemp(tempname)) == -1 ||
206 warn("%s", tempname);
395 char tempname[PATHSIZE]; local
[all...]
H A Dcollect.c77 char linebuf[LINESIZE], tempname[PATHSIZE], *cp, getsub; local
99 (void)rm(tempname);
105 (void)snprintf(tempname, sizeof(tempname),
107 if ((fd = mkstemp(tempname)) == -1 ||
109 warn("%s", tempname);
112 (void)rm(tempname);
428 if (forward(linebuf + 2, collf, tempname, c) < 0)
565 char *sh, tempname[PATHSIZE]; local
567 (void)snprintf(tempname, sizeo
[all...]
H A Dsend.c458 char tempname[PATHSIZE]; local
460 (void)snprintf(tempname, sizeof(tempname),
462 if ((fd = mkstemp(tempname)) == -1 ||
464 warn("%s", tempname);
467 if ((nfi = Fopen(tempname, "r")) == NULL) {
468 warn("%s", tempname);
470 (void)rm(tempname);
473 (void)rm(tempname);
488 warn("%s", tempname);
[all...]
H A Dlex.c72 char tempname[PATHSIZE]; local
130 (void)snprintf(tempname, sizeof(tempname),
132 if ((fd = mkstemp(tempname)) == -1 || (otf = fdopen(fd, "w")) == NULL)
133 err(1, "%s", tempname);
135 if ((itf = fopen(tempname, "r")) == NULL)
136 err(1, "%s", tempname);
138 (void)rm(tempname);
H A Dnames.c311 char tempname[PATHSIZE]; local
313 (void)snprintf(tempname, sizeof(tempname),
315 if ((fd = mkstemp(tempname)) == -1 ||
317 warn("%s", tempname);
321 image = open(tempname, O_RDWR);
322 (void)rm(tempname);
324 warn("%s", tempname);
339 warn("%s", tempname);
/freebsd-11-stable/sbin/ldconfig/
H A Delfhints.c257 char *tempname; local
262 if (asprintf(&tempname, "%s.XXXXXX", hintsfile) == -1)
264 if ((fd = mkstemp(tempname)) == -1)
265 err(1, "mkstemp(%s)", tempname);
267 err(1, "fchmod(%s)", tempname);
269 err(1, "fdopen(%s)", tempname);
289 err(1, "%s: write error", tempname);
293 err(1, "%s: write error", tempname);
296 err(1, "%s: write error", tempname);
299 err(1, "%s: write error", tempname);
[all...]
/freebsd-11-stable/release/picobsd/tinyware/passwd/
H A Dpw_util.c66 extern char *tempname;
165 tempname = path;
180 tempname, (char *)NULL);
184 "-u", username, tempname, (char *)NULL);
214 execlp(editor, p, tempname, (char *)NULL);
256 (void)unlink(tempname);
H A Dpw_copy.c60 extern char *tempname;
102 pw_error(tempname, 1, 1);
H A Dlocal_passwd.c78 char *tempname; variable
/freebsd-11-stable/lib/libc/tests/gen/
H A Ddlopen_empty_test.c60 char tempname[] = "/tmp/temp.XXXXXX"; local
66 fname = mktemp(tempname);
/freebsd-11-stable/lib/libutil/
H A Dpw_util.c75 static char tempname[PATH_MAX]; variable
223 if (snprintf(tempname, sizeof(tempname), "%.*spw.XXXXXX",
224 (int)(p - masterpasswd), masterpasswd) >= (int)sizeof(tempname)) {
228 if ((tfd = mkostemp(tempname, 0)) == -1)
235 unlink(tempname);
236 *tempname = '\0';
261 "-d", passwd_dir, tempname, (char *)NULL);
264 "-d", passwd_dir, "-u", user, tempname,
295 if (stat(tempname,
[all...]
H A Dgr_util.c50 static char tempname[PATH_MAX]; variable
139 if (snprintf(tempname, sizeof(tempname), "%.*sgroup.XXXXXX",
140 (int)(p - group_file), group_file) >= (int)sizeof(tempname)) {
144 if ((tfd = mkostemp(tempname, 0)) == -1)
151 unlink(tempname);
152 *tempname = '\0';
334 if (chmod(tempname, 0644) != 0)
337 if (rename(tempname, group_file) != 0)
368 if (*tempname !
[all...]
/freebsd-11-stable/release/picobsd/tinyware/msh/
H A Dsh5.c25 _PROTOTYPE(void tempname, (char *tname ));
552 tempname(tname);
610 tempname(tname);
664 tempname(tname) function
/freebsd-11-stable/usr.bin/unifdef/
H A Dunifdef.c180 static char *tempname; /* avoid splatting input */ variable
412 tempname = astrcat(ofn, ".XXXXXX");
413 output = mktempmode(tempname, st.st_mode);
415 err(2, "can't create %s", tempname);
427 if (remove(tempname) < 0)
428 warn("can't remove \"%s\"", tempname);
429 } else if (replace(tempname, ofn) < 0)
430 err(2, "can't rename \"%s\" to \"%s\"", tempname, ofn);
431 free(tempname);
432 tempname
[all...]
/freebsd-11-stable/contrib/less/
H A Dcmdbuf.c1588 char *tempname = ecalloc(1, strlen(filename)+1); local
1589 strcpy(tempname, filename);
1590 lastch = tempname[strlen(tempname)-1];
1591 tempname[strlen(tempname)-1] = (lastch == 'Q') ? 'Z' : 'Q';
1592 return tempname;
1693 char *tempname; local
1706 tempname = make_tempname(histname);
1707 fout = fopen(tempname, "
[all...]
/freebsd-11-stable/usr.sbin/kldxref/
H A Dkldxref.c609 static char xrefname[MAXPATHLEN], tempname[MAXPATHLEN]; variable
683 rename(tempname, xrefname);
686 unlink(tempname);
696 fxref = maketempfile(tempname, ftsp->fts_path);
698 err(1, "can't create %s", tempname);
/freebsd-11-stable/contrib/gcc/
H A Dtree-ssa-structalias.c3917 char *tempname; local
3925 asprintf (&tempname, "%s.arg%d", name, i-1);
3926 newname = ggc_strdup (tempname);
3927 free (tempname);
3951 char *tempname; local
3961 asprintf (&tempname, "%s.result", name);
3962 newname = ggc_strdup (tempname);
3963 free (tempname);
4189 char *tempname; local
4195 asprintf (&tempname, "
[all...]
/freebsd-11-stable/sbin/fsck_ffs/
H A Ddir.c465 char tempname[BUFSIZ]; local
541 (void)lftempname(tempname, orphan);
542 if (makeentry(lfdir, orphan, (name ? name : tempname)) == 0) {
/freebsd-11-stable/contrib/subversion/subversion/libsvn_subr/
H A Dio.c5411 sure that a single process normally never generates the same tempname
5576 const char *tempname;
5623 SVN_ERR(temp_file_create(&tempfile, &tempname, dirpath, flags,
5652 svn_dirent_local_style(tempname, scratch_pool));
5664 *unique_path = tempname; /* Was allocated in result_pool */
5667 SVN_ERR(cstring_from_utf8(&baton->fname_apr, tempname, result_pool));
5565 const char *tempname; local

Completed in 385 milliseconds