ftrylockfile (3) Linux Manual Page
NAME flockfile, ftrylockfile, funlockfile – lock FILE for stdio SYNOPSIS #include <stdio.h> void flockfile(FILE *filehandle); int ftrylockfile(FILE *filehandle); void funlockfile(FILE *filehandle); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): All functions shown above: /* Since glibc 2.24: */ _POSIX_C_SOURCE >= 199309L || /* Glibc versions <= 2.23: */ _POSIX_C_SOURCE || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE DESCRIPTION The stdio functions are thread-safe. This is achieved by assigning…
