Searched refs:state_fd (Results 1 – 1 of 1) sorted by relevance
316 THREAD_LOCAL int state_fd = -2; in get_clock() local325 if (state_fd == -2) { in get_clock()327 state_fd = open("/var/lib/libuuid/clock.txt", in get_clock()330 if (state_fd >= 0) { in get_clock()331 state_f = fdopen(state_fd, "r+"); in get_clock()333 close(state_fd); in get_clock()334 state_fd = -1; in get_clock()343 if (state_fd >= 0) { in get_clock()345 while (fcntl(state_fd, F_SETLKW, &fl) < 0) { in get_clock()349 state_fd = -1; in get_clock()[all …]