Searched refs:unlock_stat (Results 1 – 1 of 1) sorted by relevance
101 struct stat lock_stat, unlock_stat; in WakeLockHeld() local103 fstat(unlock_fd, &unlock_stat); in WakeLockHeld()105 assert(lock_stat.st_size >= unlock_stat.st_size); in WakeLockHeld()110 void *unlock_file = mmap(nullptr, unlock_stat.st_size, PROT_READ, in WakeLockHeld()113 if (memcmp(lock_file, unlock_file, unlock_stat.st_size) == 0) { in WakeLockHeld()114 held = lock_stat.st_size > unlock_stat.st_size; in WakeLockHeld()122 munmap(unlock_file, unlock_stat.st_size); in WakeLockHeld()