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

12

/freebsd-9.3-release/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);
394 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);
429 if (forward(linebuf + 2, collf, tempname, c) < 0)
566 char *sh, tempname[PATHSIZE]; local
568 (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-9.3-release/sbin/ldconfig/
H A Delfhints.c255 char *tempname; local
260 if (asprintf(&tempname, "%s.XXXXXX", hintsfile) == -1)
262 if ((fd = mkstemp(tempname)) == -1)
263 err(1, "mkstemp(%s)", tempname);
265 err(1, "fchmod(%s)", tempname);
267 err(1, "fdopen(%s)", tempname);
287 err(1, "%s: write error", tempname);
291 err(1, "%s: write error", tempname);
294 err(1, "%s: write error", tempname);
297 err(1, "%s: write error", tempname);
[all...]
/freebsd-9.3-release/lib/libutil/
H A Dpw_util.c76 static char tempname[PATH_MAX]; variable
227 if (snprintf(tempname, sizeof(tempname), "%.*spw.XXXXXX",
228 (int)(p - masterpasswd), masterpasswd) >= (int)sizeof(tempname)) {
232 if ((tfd = mkstemp(tempname)) == -1)
239 unlink(tempname);
240 *tempname = '\0';
265 "-d", passwd_dir, tempname, (char *)NULL);
268 "-d", passwd_dir, "-u", user, tempname,
299 if (stat(tempname,
[all...]
H A Dgr_util.c55 static char tempname[PATH_MAX]; variable
144 if (snprintf(tempname, sizeof(tempname), "%.*sgroup.XXXXXX",
145 (int)(p - group_file), group_file) >= (int)sizeof(tempname)) {
149 if ((tfd = mkstemp(tempname)) == -1)
156 unlink(tempname);
157 *tempname = '\0';
319 return (rename(tempname, group_file));
334 if (*tempname != '\0') {
335 unlink(tempname);
[all...]
/freebsd-9.3-release/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-9.3-release/release/picobsd/tinyware/msh/
H A Dsh5.c25 _PROTOTYPE(void tempname, (char *tname ));
552 tempname(tname);
610 tempname(tname);
664 tempname(tname) function
/freebsd-9.3-release/usr.sbin/kldxref/
H A Dkldxref.c265 static char xrefname[MAXPATHLEN], tempname[MAXPATHLEN]; variable
339 rename(tempname, xrefname);
342 unlink(tempname);
352 fxref = maketempfile(tempname, ftsp->fts_path);
354 err(1, "can't create %s", tempname);
/freebsd-9.3-release/usr.bin/csup/
H A Dmisc.h126 char *tempname(const char *);
H A Dupdater.c467 fup->temppath = tempname(fup->destpath);
538 fup->temppath = tempname(fup->destpath);
575 fup->temppath = tempname(fup->destpath);
603 fup->temppath = tempname(fup->destpath);
764 fup->temppath = tempname(fup->destpath);
788 fup->temppath = tempname(fup->destpath);
808 fup->temppath = tempname(fup->destpath);
1127 fup->temppath = tempname(path);
H A Dmisc.c395 tempname(const char *path) function
H A Dstatus.c553 st->tempfile = tempname(destpath);
/freebsd-9.3-release/contrib/bind9/lib/dns/
H A Dmasterdump.c1649 char *tempname = NULL; local
1653 tempname = isc_mem_allocate(mctx, tempnamelen);
1654 if (tempname == NULL)
1657 result = isc_file_mktemplate(file, tempname, tempnamelen);
1662 result = isc_file_openunique(tempname, &f);
1664 result = isc_file_bopenunique(tempname, &f);
1669 tempname, isc_result_totext(result));
1672 *tempp = tempname;
1677 isc_mem_free(mctx, tempname);
1711 char *tempname local
1780 char *tempname; local
[all...]
H A Dtkey.c1123 dns_name_t keyname, *tkeyname, *theirkeyname, *ourkeyname, *tempname; local
1149 RETERR(find_tkey(qmsg, &tempname, &qtkeyrdata,
1330 dns_name_t *tkeyname, *tempname; local
1344 RETERR(find_tkey(qmsg, &tempname, &qtkeyrdata,
H A Dzone.c11700 dns_name_t *tempname = NULL; local
11721 result = dns_message_gettempname(message, &tempname);
11732 dns_name_init(tempname, NULL);
11733 dns_name_clone(&zone->origin, tempname);
11737 ISC_LIST_APPEND(tempname->list, temprdataset, link);
11738 dns_message_addname(message, tempname, DNS_SECTION_QUESTION);
11739 tempname = NULL;
11745 result = dns_message_gettempname(message, &tempname);
11763 dns_name_init(tempname, NULL);
11764 dns_name_clone(&zone->origin, tempname);
[all...]
/freebsd-9.3-release/contrib/texinfo/util/
H A Dtexindex.c395 findtempname (char *tempname)
400 if (strcmp (tv[i], tempname) == 0)
411 char *tempname;
425 tempname = concat (tempbase, tempsuffix);
431 fd = open (tempname, O_CREAT|O_EXCL|O_WRONLY, 0600);
441 (errno == EEXIST && findtempname (tempname) == 0))
442 pfatal_with_name (tempname);
443 return (tempname);
469 tv[tv_used++] = strdup (tempname);
470 return tempname;
392 findtempname(char *tempname) argument
408 char *tempname; local
[all...]
/freebsd-9.3-release/usr.bin/unifdef/
H A Dunifdef.c189 static char tempname[FILENAME_MAX]; /* used when overwriting */ variable
342 snprintf(tempname, sizeof(tempname),
346 snprintf(tempname, sizeof(tempname),
348 ofd = mkstemp(tempname);
613 unlink(tempname);
630 if (overwriting && rename(tempname, ofilename) == -1) {
632 unlink(tempname);
/freebsd-9.3-release/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-9.3-release/sbin/fsck_ffs/
H A Ddir.c389 char tempname[BUFSIZ]; local
465 (void)lftempname(tempname, orphan);
466 if (makeentry(lfdir, orphan, (name ? name : tempname)) == 0) {

Completed in 322 milliseconds

12