Searched refs:lock_fd (Results 1 – 1 of 1) sorted by relevance
34 static int lock_fd = -1; variable55 if (lock_fd != -1) in lckpwdf()62 lock_fd = open (_PATH_PASSWD, O_WRONLY | O_CLOEXEC); in lckpwdf()63 if (lock_fd == -1) { in lckpwdf()68 fcntl (lock_fd, F_SETFD, FD_CLOEXEC); in lckpwdf()103 result = fcntl (lock_fd, F_SETLKW, &fl); in lckpwdf()112 close(lock_fd); in lckpwdf()113 lock_fd = -1; in lckpwdf()129 if (lock_fd == -1) in ulckpwdf()137 result = close (lock_fd); in ulckpwdf()[all …]
Completed in 4 milliseconds