Lines Matching full:save
27 * cksaved - check for an orphaned save file
51 char save[MAXFILENAME], mail[MAXFILENAME]; local
54 cat(save, mailsave, user);
57 * If no save file, or size is 0, return.
59 if ((stat(save, &stbuf) != 0) || (stbuf.st_size == 0))
70 * Restore from the save file by linking
71 * it to $MAIL then unlinking save file
73 chmod(save, MFMODE);
75 if (link(save, mail) != 0) {
81 if (unlink(save) != 0) {
87 if (rename(save, mail) != 0) {
109 if ((Istream = fopen(save, "r")) == NULL) {
111 "file '%s' for reading\n", program, save);
120 if (unlink(save) != 0) {
121 perror("Unlink of save file failed");
126 "echo \"Your mail save file has just been appended "