.\" openfwtk project: lock_fd.3 1-Nov-2000 .TH lock_fd 3 .SH NAME lock_fd(),lockun_fd(),locktest_fd() \- system-independant advisory lock interface. .SH SYNOPSIS .nf #include "fwfunc.h" .fi .sp int \fBlock_fd\fP(int f) .sp int \fBlockun_fd\fP(int f) .sp int \fBlocktest_fd\fP(int f) .SH DESCRIPTION \fIlock_fd\fP,\fIlockun_fd\fP and \fIlocktest_fd\fP functions do set, remove and non-blocking set exclusive advisory locks on descriptor \fIf\fP. .SH RETURN VALUES On success, zero is returned. On error, -1 is returned, and errno is set appropriately. .SH SEE ALSO flock(2),lockf(3),fcntl(2) .SH HISTORY Functions were included in fwtk since 1.0