/macosx-10.10/mail_cmds-30/mail/ |
H A D | edit.c | 155 char *edit, tempname[PATHSIZE]; local 158 (void)snprintf(tempname, sizeof(tempname), 160 if ((t = mkstemp(tempname)) == -1 || 162 warn("%s", tempname); 166 warn("%s", tempname); 167 (void)rm(tempname); 183 warnx("%s", tempname); 184 (void)rm(tempname); 189 warn("%s", tempname); [all...] |
H A D | quit.c | 83 char *mbox, tempname[PATHSIZE]; local 117 (void)snprintf(tempname, sizeof(tempname), 119 if ((fd = mkstemp(tempname)) == -1 || 136 if ((rbuf = Fopen(tempname, "r")) == NULL) 138 (void)rm(tempname); 209 (void)snprintf(tempname, sizeof(tempname), 211 if ((fd = mkstemp(tempname)) == -1 || 213 warn("%s", tempname); 402 char tempname[PATHSIZE]; local [all...] |
H A D | send.c | 494 char tempname[PATHSIZE]; local 496 (void)snprintf(tempname, sizeof(tempname), 498 if ((fd = mkstemp(tempname)) == -1 || 500 warn("%s", tempname); 503 if ((nfi = Fopen(tempname, "r")) == NULL) { 504 warn("%s", tempname); 506 (void)rm(tempname); 509 (void)rm(tempname); 524 warn("%s", tempname); [all...] |
H A D | collect.c | 95 char linebuf[LINESIZE], tempname[PATHSIZE], *cp, getsub; local 119 (void)rm(tempname); 125 (void)snprintf(tempname, sizeof(tempname), 127 if ((fd = mkstemp(tempname)) == -1 || 129 warn("%s", tempname); 132 (void)rm(tempname); 458 if (forward(linebuf + 2, collf, tempname, c) < 0) 825 char *sh, tempname[PATHSIZE]; local 827 (void)snprintf(tempname, sizeo [all...] |
H A D | lex.c | 80 char tempname[PATHSIZE]; local 138 (void)snprintf(tempname, sizeof(tempname), 140 if ((fd = mkstemp(tempname)) == -1 || (otf = fdopen(fd, "w")) == NULL) 141 err(1, "%s", tempname); 143 if ((itf = fopen(tempname, "r")) == NULL) 144 err(1, "%s", tempname); 146 (void)rm(tempname);
|
H A D | names.c | 330 char tempname[PATHSIZE]; local 332 (void)snprintf(tempname, sizeof(tempname), 334 if ((fd = mkstemp(tempname)) == -1 || 336 warn("%s", tempname); 340 image = open(tempname, O_RDWR); 341 (void)rm(tempname); 343 warn("%s", tempname); 358 warn("%s", tempname);
|
/macosx-10.10/system_cmds-643.1.1/vipw.tproj/ |
H A D | vipw.c | 80 char *tempname; variable 114 if (stat(tempname, &begin)) 115 pw_error(tempname, 1, 1); 117 if (stat(tempname, &end)) 118 pw_error(tempname, 1, 1); 140 pw_error(tempname, 1, 1);
|
H A D | pw_util.c | 86 extern char *tempname; 160 tempname = path; 173 execl(_PATH_PWD_MKDB, "pwd_mkdb", "-p", tempname, NULL); 202 execlp(editor, p, tempname, NULL); 242 (void)unlink(tempname);
|
/macosx-10.10/shell_cmds-179/shlock/ |
H A D | shlock.c | 125 static char tempname[BUFSIZ]; local 128 if ((cp = strrchr(strcpy(tempname, file), '/')) != (char *)NULL) { 130 (void) strcat(tempname, buf); 132 (void) strcpy(tempname, buf); 133 dprintf("%s: temporary filename: %s\n", Pname, tempname); 138 if ((fd = open(tempname, O_RDWR|O_CREAT|O_EXCL, 0644)) < 0) { 142 Pname, tempname); 143 if (unlink(tempname) < 0) { 145 Pname, tempname, strerror(errno)); 154 Pname, tempname, strerro [all...] |
/macosx-10.10/system_cmds-643.1.1/passwd.tproj/ |
H A D | file_passwd.c | 132 char *tempname = NULL; // temporary master.passwd file local 134 asprintf(&tempname, "%s.XXXXXX", path); 136 fd = mkstemp(tempname); 138 err(EXIT_FAILURE, "%s", tempname); 143 unlink(tempname); 145 err(EXIT_FAILURE, "%s", tempname); 171 if (fclose(tfp) != 0 || rename(tempname, path) != 0) { 173 unlink(tempname); 175 err(EXIT_FAILURE, "%s", tempname); 178 free(tempname); [all...] |
/macosx-10.10/emacs-93/emacs/src/ |
H A D | filelock.c | 193 Lisp_Object tempname, filename; 199 tempname = build_string (cmd_string); 200 if (! NILP (Ffile_exists_p (tempname))) 201 filename = tempname; 205 tempname = build_string (cmd_string); 206 if (! NILP (Ffile_exists_p (tempname))) 215 tempname = Fexpand_file_name (build_string ("wt"), 217 tempname = make_temp_name (tempname, 1); 224 WTMP_FILE, counter, SDATA (tempname)); 192 Lisp_Object tempname, filename; local [all...] |
/macosx-10.10/system_cmds-643.1.1/chpass.tproj/ |
H A D | pw_copy.c | 69 extern char *tempname; 83 pw_error(tempname, 1, 1);
|
H A D | util.c | 91 char* tempname; variable
|
/macosx-10.10/emacs-93/emacs/lib-src/ |
H A D | movemail.c | 186 char *tempname; local 321 tempname = (char *) xmalloc (strlen (inname) + strlen ("EXXXXXX") + 1); 322 strcpy (tempname, inname); 323 p = tempname + strlen (tempname); 324 while (p != tempname && !IS_DIRECTORY_SEP (p[-1])) 328 mktemp (tempname); 329 unlink (tempname); 335 desc = open (tempname, O_WRONLY | O_CREAT | O_EXCL, 0666); 338 char *message = (char *) xmalloc (strlen (tempname) [all...] |
/macosx-10.10/emacs-93/emacs/lisp/progmodes/ |
H A D | cmacexp.el | 285 (tempname (make-temp-file 353 t (list t tempname) nil "-c" 381 (zerop (nth 7 (file-attributes (expand-file-name tempname)))) 390 (nth 1 (insert-file-contents tempname)))) 392 (delete-file tempname)
|
/macosx-10.10/bind9-45.101/bind9/lib/dns/ |
H A D | masterdump.c | 1551 char *tempname = NULL; local 1555 tempname = isc_mem_allocate(mctx, tempnamelen); 1556 if (tempname == NULL) 1559 result = isc_file_mktemplate(file, tempname, tempnamelen); 1563 result = isc_file_openunique(tempname, &f); 1568 tempname, isc_result_totext(result)); 1571 *tempp = tempname; 1576 isc_mem_free(mctx, tempname); 1599 char *tempname = NULL; local 1607 result = opentmp(mctx, filename, &tempname, 1658 char *tempname; local [all...] |
/macosx-10.10/bind9-45.101/bind9/lib/dns/tests/ |
H A D | dbversion_test.c | 43 static char tempname[11] = "dtXXXXXXXX"; variable 50 if (strcmp(tempname, "dtXXXXXXXX")) 51 unlink(tempname); 469 result = isc_file_openunique(tempname, &f); 474 result = dns_db_dump(db1, VERSION(callback), tempname); 475 (void)unlink(tempname);
|
/macosx-10.10/remote_cmds-47/rpc_yppasswdd.tproj/ |
H A D | rpc.yppasswdd.c | 63 char *tempname; variable
|
/macosx-10.10/dcerpc-61/dcerpc/rpcd/ |
H A D | dsm.idl | 427 /** dsm_reclaim(dsh, name, tempname, oldname, pct, &st): boolean 490 [in, string] char * tempname, /* temp file to build new datastore in */
|
/macosx-10.10/vim-55/runtime/ftplugin/ |
H A D | gitcommit.vim | 51 let name = tempname()
|
/macosx-10.10/nano-12/src/ |
H A D | files.c | 1305 char *tempname = NULL; local 1512 tempname = safe_tempfile(&f); 1514 if (tempname == NULL) { 1531 unlink(tempname); 1538 statusbar(_("Error writing %s: %s"), tempname, 1540 unlink(tempname); 1560 /* tempname has been set only if we're prepending. */ 1561 if (tempname != NULL) 1562 unlink(tempname); 1640 fd_source = open(tempname, O_RDONL [all...] |
/macosx-10.10/vim-55/runtime/autoload/ |
H A D | gzip.vim | 74 let tmp = tempname() 153 let nmt = s:tempname(nm) 196 fun s:tempname(name) function
|
H A D | zip.vim | 245 let tmpdir= tempname() 246 " call Decho("orig tempname<".tmpdir.">")
|
/macosx-10.10/vim-55/src/ |
H A D | ex_cmds.c | 1744 char_u *tempname = NULL; /* name of temp viminfo file */ local 1822 * Make tempname. 1828 tempname = buf_modname( 1853 if (tempname == NULL) /* out of memory */ 1860 if (mch_stat((char *)tempname, &st_new) == 0) 1872 vim_free(tempname); 1873 tempname = NULL; 1884 wp = tempname + STRLEN(tempname) - 5; 1885 if (wp < gettail(tempname)) /* empt [all...] |
H A D | os_unix.c | 5368 char_u *tempname; 5413 if ((tempname = vim_tempname('o')) == NULL) 5451 len = STRLEN(tempname) + 29; 5475 vim_free(tempname); 5519 STRCAT(command, tempname); 5600 mch_remove(tempname); 5601 vim_free(tempname); 5632 fd = fopen((char *)tempname, READBIN); 5641 vim_free(tempname); 5651 mch_remove(tempname); [all...] |