/// `fcntl(fd, F_GETLK)`—Get the first lock that blocks the lock description /// pointed to by the argument `lock`. If no such lock is found, then `None` is /// returned. /// /// If `lock.typ` is set to `FlockType::Unlocked`, the returned value/error is /// not explicitly defined, as per POSIX, and will depend on the underlying /// platform implementation. /// /// # References /// - [POSIX] /// - [Linux] /// /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/fcntl.html /// [Linux]: https://man7.org/linux/man-pages/man2/fcntl.2.html #[inline] #[doc(alias = "F_GETLK")] pubfn fcntl_getlk<Fd: AsFd>(fd: Fd, lock: &Flock) -> io::Result<Option<Flock>> {
backend::process::syscalls::fcntl_getlk(fd.as_fd(), lock)
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.22 Sekunden
(vorverarbeitet am 2026-10-04)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.