| /netbsd-src/usr.bin/mail/ |
| H A D | edit.c | 65 char tempname[PATHSIZE]; in run_editor() local 68 (void)snprintf(tempname, sizeof(tempname), in run_editor() 70 if ((t = mkstemp(tempname)) == -1) { in run_editor() 71 warn("%s", tempname); in run_editor() 76 warn("%s", tempname); in run_editor() 77 (void)unlink(tempname); in run_editor() 82 warn("%s", tempname); in run_editor() 83 (void)unlink(tempname); in run_editor() 95 warn("%s", tempname); in run_editor() 96 (void)unlink(tempname); in run_editor() [all …]
|
| H A D | quit.c | 144 char tempname[PATHSIZE]; in edstop() local 176 (void)snprintf(tempname, sizeof(tempname), in edstop() 178 if ((fd = mkstemp(tempname)) == -1 || in edstop() 180 warn("%s", tempname); in edstop() 189 (void)rm(tempname); in edstop() 198 warn("%s", tempname); in edstop() 201 (void)rm(tempname); in edstop() 207 if ((ibuf = Fopen(tempname, "ref")) == NULL) { in edstop() 208 warn("%s", tempname); in edstop() 209 (void)rm(tempname); in edstop() [all …]
|
| H A D | collect.c | 160 char tempname[PATHSIZE]; in mespipe() local 165 (void)snprintf(tempname, sizeof(tempname), in mespipe() 167 if ((fd = mkstemp(tempname)) == -1 || in mespipe() 171 warn("%s", tempname); in mespipe() 174 (void)unlink(tempname); in mespipe() 374 char tempname[PATHSIZE]; in collect() local 634 (void)snprintf(tempname, sizeof(tempname), in collect() 636 if ((fd = mkstemp(tempname)) == -1 || in collect() 640 warn("%s", tempname); in collect() 643 (void)unlink(tempname); in collect()
|
| H A D | send.c | 485 char tempname[PATHSIZE]; in infix() local 487 (void)snprintf(tempname, sizeof(tempname), in infix() 489 if ((fd = mkstemp(tempname)) == -1 || in infix() 493 warn("%s", tempname); in infix() 496 if ((nfi = Fopen(tempname, "ref")) == NULL) { in infix() 497 warn("%s", tempname); in infix() 499 (void)rm(tempname); in infix() 502 (void)rm(tempname); in infix() 522 warn("%s", tempname); in infix()
|
| H A D | names.c | 255 char tempname[PATHSIZE]; in outof() local 289 (void)snprintf(tempname, sizeof(tempname), in outof() 291 if ((fd = mkstemp(tempname)) == -1 || in outof() 295 warn("%s", tempname); in outof() 299 image = open(tempname, O_RDWR | O_CLOEXEC); in outof() 300 (void)unlink(tempname); in outof() 302 warn("%s", tempname); in outof() 319 warn("%s", tempname); in outof()
|
| H A D | lex.c | 213 char tempname[PATHSIZE]; in setfile() local 279 (void)snprintf(tempname, sizeof(tempname), in setfile() 281 if ((fd = mkstemp(tempname)) == -1 || in setfile() 283 err(EXIT_FAILURE, "Can't create tmp file `%s'", tempname); in setfile() 284 if ((itf = fopen(tempname, "ref")) == NULL) in setfile() 285 err(EXIT_FAILURE, "Can't create tmp file `%s'", tempname); in setfile() 286 (void)rm(tempname); in setfile()
|
| H A D | mime_attach.c | 612 char tempname[PATHSIZE]; in mktemp_file() local 614 (void)snprintf(tempname, sizeof(tempname), "%s/%sXXXXXXXXXX", in mktemp_file() 616 if ((fd = mkstemp(tempname)) == -1 || in mktemp_file() 620 warn("%s", tempname); in mktemp_file() 623 (void)rm(tempname); in mktemp_file() 626 warn("%s", tempname); in mktemp_file()
|
| H A D | list.c | 622 char *tempname; in matchbody() local 625 (void)sasprintf(&tempname, "%s/mail.RbXXXXXXXXXX", tmpdir); in matchbody() 627 if ((fd = mkstemp(tempname)) != -1) { in matchbody() 628 (void)unlink(tempname); in matchbody() 633 warn("%s", tempname); in matchbody()
|
| /netbsd-src/usr.bin/chpass/ |
| H A D | edit.c | 59 edit(char *tempname, struct passwd *pw) in edit() argument 64 if (stat(tempname, &begin)) in edit() 65 (*Pw_error)(tempname, 1, 1); in edit() 66 pw_edit(1, tempname); in edit() 67 if (stat(tempname, &end)) in edit() 68 (*Pw_error)(tempname, 1, 1); in edit() 73 if (verify(tempname, pw)) in edit() 90 display(char *tempname, int fd, struct passwd *pw) in display() argument 97 (*Pw_error)(tempname, 1, 1); in display() 146 verify(char *tempname, struct passwd *pw) in verify() argument [all …]
|
| H A D | chpass.c | 66 static char tempname[] = "/tmp/pw.XXXXXX"; variable 227 dfd = mkstemp(tempname); in main() 229 (*Pw_error)(tempname, 1, 1); in main() 234 if (stat(dirname(tempname), &sb) == -1) in main() 235 err(1, "couldn't stat `%s'", dirname(tempname)); in main() 238 dirname(tempname)); in main() 240 display(tempname, dfd, pw); in main() 241 edit(tempname, pw); in main() 315 (void)unlink(tempname); in cleanup()
|
| /netbsd-src/external/gpl3/gdb/dist/readline/readline/ |
| H A D | histfile.c | 522 char *buffer, *filename, *tempname, *bp, *bp1; /* bp1 == bp+1 */ in history_truncate_file() local 531 tempname = 0; in history_truncate_file() 629 tempname = history_tempfile (filename); in history_truncate_file() 631 if ((file = open (tempname, O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, 0600)) != -1) in history_truncate_file() 650 if (rv == 0 && filename && tempname) in history_truncate_file() 651 rv = histfile_restore (tempname, filename); in history_truncate_file() 656 if (tempname) in history_truncate_file() 657 unlink (tempname); in history_truncate_file() 671 FREE (tempname); in history_truncate_file() 683 char *output, *tempname, *histname; in history_do_write() local [all …]
|
| /netbsd-src/usr.bin/shlock/ |
| H A D | shlock.c | 128 static char tempname[BUFSIZ]; in xtmpfile() local 131 if ((cp = strrchr(strcpy(tempname, file), '/')) != NULL) { in xtmpfile() 133 (void) strcat(tempname, buf); in xtmpfile() 135 (void) strcpy(tempname, buf); in xtmpfile() 136 dprintf("%s: temporary filename: %s\n", Pname, tempname); in xtmpfile() 140 while ((fd = open(tempname, O_RDWR|O_CREAT|O_TRUNC|O_SYNC|O_EXCL, 0644)) in xtmpfile() 145 if (unlink(tempname) == -1) { in xtmpfile() 146 warn(E_unlk, tempname); in xtmpfile() 151 warn(E_open, tempname); in xtmpfile() 165 warn("write(%s,%jd)", tempname, (intmax_ in xtmpfile() [all...] |
| /netbsd-src/usr.sbin/acpitools/aml/ |
| H A D | aml_parse.c | 300 env->tempname.property = obj; in aml_parse_objectlist() 301 return (&env->tempname); in aml_parse_objectlist() 423 return (&env->tempname); in aml_parse_concat_number() 443 env->tempname.property = resobj; in aml_parse_concat_buffer() 462 return (&env->tempname); in aml_parse_concat_buffer() 483 env->tempname.property = resobj; in aml_parse_concat_string() 501 return (&env->tempname); in aml_parse_concat_string() 1296 aname = &env->tempname; in aml_parse_termobj() 1321 aname = &env->tempname; in aml_parse_termobj() 1328 aname = &env->tempname; in aml_parse_termobj() [all …]
|
| H A D | aml_env.h | 44 struct aml_name tempname; member
|
| /netbsd-src/usr.bin/rdist/ |
| H A D | main.c | 63 char *tempname; variable 106 if ((tempname = strrchr(tempfile, '/')) != 0) in main() 107 tempname++; in main() 109 tempname = tempfile; in main()
|
| /netbsd-src/external/bsd/less/dist/ |
| H A D | cmdbuf.c | 1543 char *tempname = ecalloc(1, strlen(filename)+1); in make_tempname() local 1544 strcpy(tempname, filename); in make_tempname() 1545 lastch = tempname[strlen(tempname)-1]; in make_tempname() 1546 tempname[strlen(tempname)-1] = (lastch == 'Q') ? 'Z' : 'Q'; in make_tempname() 1547 return tempname; in make_tempname() 1643 char *tempname; in save_cmdhist() local 1656 tempname = make_tempname(histname); in save_cmdhist() 1657 fout = fopen(tempname, "w"); in save_cmdhist() 1683 rename(tempname, histname); in save_cmdhist() 1685 free(tempname); in save_cmdhist()
|
| /netbsd-src/external/mpl/bind/dist/tests/dns/ |
| H A D | dbversion_test.c | 43 static char tempname[11] = "dtXXXXXXXX"; variable 102 if (strcmp(tempname, "dtXXXXXXXX") != 0) { in teardown_test() 103 unlink(tempname); in teardown_test()
|
| /netbsd-src/libexec/makewhatis/ |
| H A D | makewhatis.c | 775 char tempname[MAXPATHLEN], buffer[65536], *data; in nroff() local 787 (void)strlcpy(tempname, _PATH_TMP "makewhatis.XXXXXX", in nroff() 788 sizeof(tempname)); in nroff() 789 if ((tempfd = mkstemp(tempname)) == -1) in nroff() 800 (void)unlink(tempname); in nroff() 805 (void)unlink(tempname); in nroff() 810 (void)unlink(tempname); in nroff() 819 (void)unlink(tempname); in nroff() 851 (void)unlink(tempname); in nroff() 867 (void)unlink(tempname); in nroff()
|
| /netbsd-src/external/mpl/dhcp/bind/dist/lib/dns/ |
| H A D | masterdump.c | 1885 char *tempname = NULL; in opentmp() local 1889 tempname = isc_mem_allocate(mctx, tempnamelen); in opentmp() 1891 result = isc_file_mktemplate(file, tempname, tempnamelen); in opentmp() 1897 result = isc_file_openunique(tempname, &f); in opentmp() 1899 result = isc_file_bopenunique(tempname, &f); in opentmp() 1904 "dumping master file: %s: open: %s", tempname, in opentmp() 1913 *tempp = tempname; in opentmp() 1918 isc_mem_free(mctx, tempname); in opentmp() 1930 char *tempname = NULL; in dns_master_dumpasync() local 1936 result = opentmp(mctx, format, filename, &tempname, &f); in dns_master_dumpasync() [all …]
|
| /netbsd-src/external/mpl/bind/dist/lib/dns/ |
| H A D | masterdump.c | 1844 char *tempname = NULL; in opentmp() 1848 tempname = isc_mem_allocate(mctx, tempnamelen); in opentmp() 1850 result = isc_file_mktemplate(file, tempname, tempnamelen); in opentmp() 1855 result = isc_file_openunique(tempname, &f); in opentmp() 1859 "dumping master file: %s: open: %s", tempname, in opentmp() 1868 *tempp = tempname; in opentmp() 1873 isc_mem_free(mctx, tempname); in opentmp() 1885 char *tempname = NULL; in dns_master_dumpasync() 1891 result = opentmp(mctx, filename, &tempname, &f); in dns_master_dumpasync() 1905 dctx->tmpfile = tempname; in dns_master_dumpasync() 1847 char *tempname = NULL; opentmp() local 1892 char *tempname = NULL; dns_master_dumpasync() local 1944 char *tempname; dns_master_dump() local [all...] |
| /netbsd-src/external/gpl2/texinfo/dist/m4/ |
| H A D | mkstemp.m4 | 44 AC_LIBOBJ(tempname) 57 # Prerequisites of lib/tempname.c.
|
| /netbsd-src/external/gpl2/xcvs/dist/m4/ |
| H A D | mkstemp.m4 | 52 AC_LIBOBJ(tempname) 65 # Prerequisites of lib/tempname.c.
|
| /netbsd-src/lib/libc/time/ |
| H A D | zic.c | 659 char const *tempname) in warning() 668 if (tempname) in close_file() 669 remove(tempname); in close_file() 1357 open_outfile(char const **outname, char **tempname) 1367 if (!*tempname) in open_outfile() 1368 random_dirent(outname, tempname); in open_outfile() 1376 random_dirent(outname, tempname); in open_outfile() 1391 rename_dest(char *tempname, char const *name) 1393 if (tempname) { 1394 if (rename(tempname, nam argument 667 close_file(FILE * stream,char const * dir,char const * name,char const * tempname) close_file() argument 1360 open_outfile(char const ** outname,char ** tempname) open_outfile() argument 1452 char *tempname = NULL; dolink() local 2361 char *tempname = NULL; writezone() local [all...] |
| /netbsd-src/external/gpl2/xcvs/dist/lib/ |
| H A D | libcvs.mak | 86 -@erase "$(INTDIR)\tempname.obj" 194 "$(INTDIR)\tempname.obj" \ 269 -@erase "$(INTDIR)\tempname.obj" 374 "$(INTDIR)\tempname.obj" \ 634 SOURCE=.\tempname.c 636 "$(INTDIR)\tempname.obj" : $(SOURCE) "$(INTDIR)"
|
| /netbsd-src/external/gpl3/gdb/dist/gnulib/import/m4/ |
| H A D | tempname.m4 | 15 # Prerequisites of lib/tempname.c.
|