|
NAMEflockfile , ftrylockfile ,
funlockfile —
stdio locking functions
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <stdio.h>
void
int
void
DESCRIPTIONThese functions provide explicit application-level locking of stdio streams. They can be used to avoid output from multiple threads being interspersed, input being dispersed among multiple readers, and to avoid the overhead of locking the stream for each operation.The The The These functions behave as if there is a lock count associated with
each stream. Each time RETURN VALUESTheflockfile () and
funlockfile () functions return no value.
The SEE ALSOgetc_unlocked(3), putc_unlocked(3)STANDARDSTheflockfile (), ftrylockfile ()
and funlockfile () functions conform to
IEEE Std 1003.1-2001 (“POSIX.1”).
Visit the GSP FreeBSD Man Page Interface. |