| /src/usr.sbin/acpitools/aml/ |
| aml_env.h | 44 struct aml_name tempname; member in struct:aml_environ
|
| /src/usr.bin/chpass/ |
| chpass.c | 66 static char tempname[] = "/tmp/pw.XXXXXX"; variable 227 dfd = mkstemp(tempname); 229 (*Pw_error)(tempname, 1, 1); 234 if (stat(dirname(tempname), &sb) == -1) 235 err(1, "couldn't stat `%s'", dirname(tempname)); 238 dirname(tempname)); 240 display(tempname, dfd, pw); 241 edit(tempname, pw); 315 (void)unlink(tempname);
|
| /src/usr.bin/mail/ |
| edit.c | 65 char tempname[PATHSIZE]; local 68 (void)snprintf(tempname, sizeof(tempname), 70 if ((t = mkstemp(tempname)) == -1) { 71 warn("%s", tempname); 76 warn("%s", tempname); 77 (void)unlink(tempname); 82 warn("%s", tempname); 83 (void)unlink(tempname); 95 warn("%s", tempname); [all...] |
| quit.c | 144 char tempname[PATHSIZE]; local 176 (void)snprintf(tempname, sizeof(tempname), 178 if ((fd = mkstemp(tempname)) == -1 || 180 warn("%s", tempname); 189 (void)rm(tempname); 198 warn("%s", tempname); 201 (void)rm(tempname); 207 if ((ibuf = Fopen(tempname, "ref")) == NULL) { 208 warn("%s", tempname); 274 char tempname[PATHSIZE]; local [all...] |
| collect.c | 160 char tempname[PATHSIZE]; local 165 (void)snprintf(tempname, sizeof(tempname), 167 if ((fd = mkstemp(tempname)) == -1 || 171 warn("%s", tempname); 174 (void)unlink(tempname); 374 char tempname[PATHSIZE]; local 634 (void)snprintf(tempname, sizeof(tempname), 636 if ((fd = mkstemp(tempname)) == -1 | [all...] |
| names.c | 255 char tempname[PATHSIZE]; local 289 (void)snprintf(tempname, sizeof(tempname), 291 if ((fd = mkstemp(tempname)) == -1 || 295 warn("%s", tempname); 299 image = open(tempname, O_RDWR | O_CLOEXEC); 300 (void)unlink(tempname); 302 warn("%s", tempname); 319 warn("%s", tempname);
|
| send.c | 485 char tempname[PATHSIZE]; local 487 (void)snprintf(tempname, sizeof(tempname), 489 if ((fd = mkstemp(tempname)) == -1 || 493 warn("%s", tempname); 496 if ((nfi = Fopen(tempname, "ref")) == NULL) { 497 warn("%s", tempname); 499 (void)rm(tempname); 502 (void)rm(tempname); 522 warn("%s", tempname); [all...] |
| lex.c | 213 char tempname[PATHSIZE]; local 279 (void)snprintf(tempname, sizeof(tempname), 281 if ((fd = mkstemp(tempname)) == -1 || 283 err(EXIT_FAILURE, "Can't create tmp file `%s'", tempname); 284 if ((itf = fopen(tempname, "ref")) == NULL) 285 err(EXIT_FAILURE, "Can't create tmp file `%s'", tempname); 286 (void)rm(tempname);
|
| mime_attach.c | 612 char tempname[PATHSIZE]; local 614 (void)snprintf(tempname, sizeof(tempname), "%s/%sXXXXXXXXXX", 616 if ((fd = mkstemp(tempname)) == -1 || 620 warn("%s", tempname); 623 (void)rm(tempname); 626 warn("%s", tempname);
|
| list.c | 622 char *tempname; local 625 (void)sasprintf(&tempname, "%s/mail.RbXXXXXXXXXX", tmpdir); 627 if ((fd = mkstemp(tempname)) != -1) { 628 (void)unlink(tempname); 633 warn("%s", tempname);
|
| /src/usr.bin/rdist/ |
| main.c | 63 char *tempname; variable 106 if ((tempname = strrchr(tempfile, '/')) != 0) 107 tempname++; 109 tempname = tempfile;
|
| /src/usr.bin/shlock/ |
| shlock.c | 128 static char tempname[BUFSIZ]; local 131 if ((cp = strrchr(strcpy(tempname, file), '/')) != NULL) { 133 (void) strcat(tempname, buf); 135 (void) strcpy(tempname, buf); 136 dprintf("%s: temporary filename: %s\n", Pname, tempname); 140 while ((fd = open(tempname, O_RDWR|O_CREAT|O_TRUNC|O_SYNC|O_EXCL, 0644)) 145 if (unlink(tempname) == -1) { 146 warn(E_unlk, tempname); 151 warn(E_open, tempname); 165 warn("write(%s,%jd)", tempname, (intmax_t)pid) [all...] |
| /src/sbin/fsck_ext2fs/ |
| dir.c | 402 char tempname[BUFSIZ]; local 473 (void)lftempname(tempname, orphan); 474 if (makeentry(lfdir, orphan, tempname) == 0) {
|
| /src/sbin/fsck_lfs/ |
| dir.c | 428 char tempname[BUFSIZ]; local 502 (void) lftempname(tempname, orphan); 503 if (makeentry(lfdir, orphan, tempname) == 0) {
|
| /src/external/mpl/bind/dist/tests/dns/ |
| dbversion_test.c | 43 static char tempname[11] = "dtXXXXXXXX"; variable 102 if (strcmp(tempname, "dtXXXXXXXX") != 0) { 103 unlink(tempname);
|
| /src/sbin/fsck_ffs/ |
| dir.c | 565 char tempname[BUFSIZ]; local 659 (void)lftempname(tempname, orphan); 660 if (makeentry(lfdir, orphan, (name ? name : tempname)) == 0) {
|
| /src/external/gpl3/gdb/dist/readline/readline/ |
| histfile.c | 520 char *buffer, *filename, *tempname, *bp, *bp1; /* bp1 == bp+1 */ local 529 tempname = 0; 627 tempname = history_tempfile (filename); 629 if ((file = open (tempname, O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, 0600)) != -1) 648 if (rv == 0 && filename && tempname) 649 rv = histfile_restore (tempname, filename); 654 if (tempname) 655 unlink (tempname); 669 FREE (tempname); 681 char *output, *tempname, *histname local [all...] |
| /src/external/gpl3/gdb.old/dist/readline/readline/ |
| histfile.c | 522 char *buffer, *filename, *tempname, *bp, *bp1; /* bp1 == bp+1 */ local 531 tempname = 0; 629 tempname = history_tempfile (filename); 631 if ((file = open (tempname, O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, 0600)) != -1) 650 if (rv == 0 && filename && tempname) 651 rv = histfile_restore (tempname, filename); 656 if (tempname) 657 unlink (tempname); 671 FREE (tempname); 683 char *output, *tempname, *histname local [all...] |
| /src/libexec/makewhatis/ |
| makewhatis.c | 775 char tempname[MAXPATHLEN], buffer[65536], *data; local 787 (void)strlcpy(tempname, _PATH_TMP "makewhatis.XXXXXX", 788 sizeof(tempname)); 789 if ((tempfd = mkstemp(tempname)) == -1) 800 (void)unlink(tempname); 805 (void)unlink(tempname); 810 (void)unlink(tempname); 819 (void)unlink(tempname); 851 (void)unlink(tempname); 867 (void)unlink(tempname); [all...] |
| /src/crypto/external/apache2/openssl/dist/apps/lib/ |
| opt.c | 1250 WCHAR tempname[MAX_PATH]; local 1256 if (!MultiByteToWideChar(CP_ACP, 0, name, len_0, tempname, MAX_PATH)) 1259 tempname[i] = (WCHAR)name[i]; 1261 attr = GetFileAttributes(tempname);
|
| /src/crypto/external/bsd/openssl/dist/apps/lib/ |
| opt.c | 1161 WCHAR tempname[MAX_PATH]; local 1167 if (!MultiByteToWideChar(CP_ACP, 0, name, len_0, tempname, MAX_PATH)) 1170 tempname[i] = (WCHAR)name[i]; 1172 attr = GetFileAttributes(tempname);
|
| /src/external/bsd/less/dist/ |
| cmdbuf.c | 1543 char *tempname = ecalloc(1, strlen(filename)+1); local 1544 strcpy(tempname, filename); 1545 lastch = tempname[strlen(tempname)-1]; 1546 tempname[strlen(tempname)-1] = (lastch == 'Q') ? 'Z' : 'Q'; 1547 return tempname; 1643 char *tempname; local 1656 tempname = make_tempname(histname); 1657 fout = fopen(tempname, "w") [all...] |
| /src/external/mpl/dhcp/bind/dist/lib/dns/ |
| tkey.c | 1222 dns_name_t keyname, *tkeyname, *theirkeyname, *ourkeyname, *tempname; local 1250 RETERR(find_tkey(qmsg, &tempname, &qtkeyrdata, DNS_SECTION_ADDITIONAL)); 1436 dns_name_t *tkeyname, *tempname; local 1451 RETERR(find_tkey(qmsg, &tempname, &qtkeyrdata, DNS_SECTION_ADDITIONAL));
|
| /src/crypto/external/bsd/openssl.old/dist/apps/ |
| apps.c | 2379 WCHAR tempname[MAX_PATH]; local 2385 if (!MultiByteToWideChar(CP_ACP, 0, name, len_0, tempname, MAX_PATH)) 2388 tempname[i] = (WCHAR)name[i]; 2390 attr = GetFileAttributes(tempname);
|
| /src/external/mpl/bind/dist/lib/dns/ |
| masterdump.c | 1835 char *tempname = NULL; local 1839 tempname = isc_mem_allocate(mctx, tempnamelen); 1841 result = isc_file_mktemplate(file, tempname, tempnamelen); 1846 result = isc_file_openunique(tempname, &f); 1850 "dumping master file: %s: open: %s", tempname, 1859 *tempp = tempname; 1864 isc_mem_free(mctx, tempname); 1876 char *tempname = NULL; local 1882 result = opentmp(mctx, filename, &tempname, &f); 1896 dctx->tmpfile = tempname; 1920 char *tempname; local [all...] |