Lines Matching refs:tempEdit
850 if (stat(tempEdit, &sbuf) >= 0) {
851 printf(gettext("%s: file exists\n"), tempEdit);
854 if ((fd = open(tempEdit, O_RDWR|O_CREAT|O_EXCL, 0600)) < 0 ||
856 perror(tempEdit);
866 perror(tempEdit);
867 removefile(tempEdit);
883 removefile(tempEdit);
891 execlp(edit, edit, tempEdit, (char *)0);
897 snprintf(ecmd, sizeof (ecmd), "exec %s %s", edit, tempEdit);
918 if ((fbuf = fopen(tempEdit, "r")) == NULL) {
919 perror(tempEdit);
920 removefile(tempEdit);
923 removefile(tempEdit);
1006 if ((fd = open(tempEdit, O_RDWR|O_CREAT|O_EXCL, 0600)) < 0 ||
1008 perror(tempEdit);
1011 if ((ni = fopen(tempEdit, "r")) == NULL) {
1012 perror(tempEdit);
1014 removefile(tempEdit);
1017 removefile(tempEdit);