Searched refs:ufd (Results 1 – 1 of 1) sorted by relevance
173 base::unique_fd ufd(open(profile.c_str(), O_WRONLY | O_NOFOLLOW | O_CLOEXEC)); in clear_profile() local174 if (ufd.get() < 0) { in clear_profile()184 if (flock(ufd.get(), LOCK_EX | LOCK_NB) != 0) { in clear_profile()206 bool truncated = ftruncate(ufd.get(), 0) == 0; in clear_profile()210 if (flock(ufd.get(), LOCK_UN) != 0) { in clear_profile()