Lines Matching refs:lock_file
83 char *lock_file;
89 lock_file = concatenate(path, ".lock", (char *) 0);
98 if ((fd = open(lock_file, O_WRONLY | O_EXCL | O_CREAT, 0)) >= 0) {
117 if (stat(lock_file, &st) == 0)
119 if (unlink(lock_file) < 0)
126 vstring_sprintf(why, "unable to create lock file %s: %m", lock_file);
128 myfree(lock_file);
136 char *lock_file;
139 lock_file = concatenate(path, ".lock", (char *) 0);
140 (void) unlink(lock_file);
141 myfree(lock_file);