Home | History | Annotate | Download | only in sh

Lines Matching defs:editfile

621 	char editfile[MAXPATHLEN + 1];
688 editfile[0] = '\0';
696 if (*editfile) {
699 editfile));
700 unlink(editfile);
815 snprintf(editfile, sizeof(editfile),
817 if ((fd = mkstemp(editfile)) < 0)
818 error("can't create temporary file %s", editfile);
824 " fd=%d\n", editfile, fd));
878 cmdlen = strlen(editor) + strlen(editfile) + 2;
880 snprintf(editcmd, cmdlen, "%s %s", editor, editfile);
884 VTRACE(DBG_HISTORY, ("histcmd read cmds from %s\n", editfile));
885 readcmdfile(editfile); /* XXX - should read back - quick tst */
886 VTRACE(DBG_HISTORY, ("histcmd unlink %s\n", editfile));
887 unlink(editfile);
888 editfile[0] = '\0';