/freebsd-10-stable/usr.bin/mail/ |
H A D | edit.c | 141 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 D | quit.c | 76 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 D | collect.c | 77 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 D | send.c | 458 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 D | lex.c | 72 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 D | names.c | 311 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-10-stable/sbin/ldconfig/ |
H A D | elfhints.c | 255 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-10-stable/release/picobsd/tinyware/passwd/ |
H A D | pw_util.c | 66 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 D | pw_copy.c | 60 extern char *tempname; 102 pw_error(tempname, 1, 1);
|
H A D | local_passwd.c | 78 char *tempname; variable
|
/freebsd-10-stable/lib/libutil/ |
H A D | pw_util.c | 76 static char tempname[PATH_MAX]; variable 224 if (snprintf(tempname, sizeof(tempname), "%.*spw.XXXXXX", 225 (int)(p - masterpasswd), masterpasswd) >= (int)sizeof(tempname)) { 229 if ((tfd = mkostemp(tempname, 0)) == -1) 236 unlink(tempname); 237 *tempname = '\0'; 262 "-d", passwd_dir, tempname, (char *)NULL); 265 "-d", passwd_dir, "-u", user, tempname, 296 if (stat(tempname, [all...] |
H A D | gr_util.c | 50 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-10-stable/release/picobsd/tinyware/msh/ |
H A D | sh5.c | 25 _PROTOTYPE(void tempname, (char *tname )); 552 tempname(tname); 610 tempname(tname); 664 tempname(tname) function
|
/freebsd-10-stable/usr.sbin/kldxref/ |
H A D | kldxref.c | 269 static char xrefname[MAXPATHLEN], tempname[MAXPATHLEN]; variable 343 rename(tempname, xrefname); 346 unlink(tempname); 356 fxref = maketempfile(tempname, ftsp->fts_path); 358 err(1, "can't create %s", tempname);
|
/freebsd-10-stable/usr.bin/csup/ |
H A D | misc.h | 126 char *tempname(const char *);
|
H A D | updater.c | 467 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 D | misc.c | 395 tempname(const char *path) function
|
H A D | status.c | 553 st->tempfile = tempname(destpath);
|
/freebsd-10-stable/contrib/less/ |
H A D | cmdbuf.c | 1538 char *tempname = ecalloc(1, strlen(filename)+1); local 1539 strcpy(tempname, filename); 1540 lastch = tempname[strlen(tempname)-1]; 1541 tempname[strlen(tempname)-1] = (lastch == 'Q') ? 'Z' : 'Q'; 1542 return tempname; 1638 char *tempname; local 1651 tempname = make_tempname(histname); 1652 fout = fopen(tempname, " [all...] |
/freebsd-10-stable/contrib/texinfo/util/ |
H A D | texindex.c | 395 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-10-stable/usr.bin/unifdef/ |
H A D | unifdef.c | 178 static char *tempname; /* avoid splatting input */ variable 406 tempname = astrcat(ofn, ".XXXXXX"); 407 output = mktempmode(tempname, st.st_mode); 409 err(2, "can't create %s", tempname); 419 if (replace(tempname, ofn) < 0) 420 err(2, "can't rename \"%s\" to \"%s\"", tempname, ofn); 421 free(tempname); 422 tempname = NULL; 431 if (tempname != NULL) 432 remove(tempname); [all...] |
/freebsd-10-stable/contrib/gcc/ |
H A D | tree-ssa-structalias.c | 3917 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-10-stable/sbin/fsck_ffs/ |
H A D | dir.c | 384 char tempname[BUFSIZ]; local 460 (void)lftempname(tempname, orphan); 461 if (makeentry(lfdir, orphan, (name ? name : tempname)) == 0) {
|
/freebsd-10-stable/contrib/subversion/subversion/libsvn_subr/ |
H A D | io.c | 5010 sure that a single process normally never generates the same tempname 5177 const char *tempname; 5224 SVN_ERR(temp_file_create(&tempfile, &tempname, dirpath, flags, 5252 svn_dirent_local_style(tempname, scratch_pool)); 5264 *unique_path = tempname; /* Was allocated in result_pool */ 5267 SVN_ERR(cstring_from_utf8(&baton->fname_apr, tempname, result_pool)); 5166 const char *tempname; local
|