Lines Matching defs:tempfile
51 char tempfile[MAXPATHLEN];
81 if (snprintf(tempfile, sizeof(tempfile), "%s.%d.%s", lockfile,
82 (int) getpid(), hostname) >= (int)sizeof(tempfile)) {
88 if ((f = open(tempfile, O_WRONLY|O_CREAT|O_TRUNC, 0600)) == -1)
118 while (link(tempfile, lockfile) == -1) {
160 * to our tempfile (reference count is two).
162 if (stat(tempfile, &st) == -1)
167 (void)unlink(tempfile);
176 (void)unlink(tempfile);