Lines Matching refs:lock_file
806 enter_lock(char *lock_file)
811 (void) strlcpy(lock_file, LOCK_FILENAME, PATH_MAX);
812 lock_fd = open(lock_file, O_CREAT|O_RDWR, 0644);
815 whoami, lock_file, strerror(errno));
830 whoami, lock_file, strerror(errno));
839 exit_lock(int lock_fd, char *lock_file)
850 whoami, lock_file, strerror(errno));
855 whoami, lock_file, strerror(errno));
2153 char lock_file[PATH_MAX+1];
2221 if ((lock_fd = enter_lock(lock_file)) == -1) {
2232 exit_lock(lock_fd, lock_file);