Lines Matching refs:lock_file
70 char *lock_file; /* path name */
81 msg_warn("close %s: %m", mkmap->lock_file);
82 myfree(mkmap->lock_file);
92 if ((mkmap->lock_fd = open(mkmap->lock_file, O_RDWR, 0644)) < 0)
93 msg_fatal("open lockfile %s: %m", mkmap->lock_file);
95 msg_fatal("lock %s: %m", mkmap->lock_file);
130 mkmap->lock_file = concatenate(path, ".db", (char *) 0);
142 if ((mkmap->lock_fd = open(mkmap->lock_file, O_RDWR, 0644)) < 0) {
144 msg_fatal("open %s: %m", mkmap->lock_file);
159 msg_fatal("lock %s: %m", mkmap->lock_file);
161 msg_fatal("fstat %s: %m", mkmap->lock_file);
164 if (unlink(mkmap->lock_file) < 0)
166 mkmap->lock_file);
168 mkmap->lock_file);