Lines Matching defs:temp_p
50 char *temp_p, temp[MAXFULLNAME];
62 if ((temp_p = strrchr(temp, '/')) == NULL)
63 temp_p = temp;
65 temp_p++;
66 (void) strcpy(temp_p, ".TM.XXXXXX");
67 temp_p = temp;
68 DEBUG(4, "temp name is %s\n", temp_p);
70 if ((fd2 = mkstemp(temp_p)) == -1) {
73 temp_p = f2;
74 if ((fd2 = open(temp_p, O_CREAT | O_TRUNC | O_WRONLY,
82 (void) chmod(temp_p, PUB_FILEMODE);
93 (void) unlink(temp_p);
96 if (temp_p != f2) {
97 if (rename(temp_p, f2) != 0) {
99 (void) unlink(temp_p);