1 /* flockfile(FILE * )
\r
3 This file is part of the Public Domain C Library (PDCLib).
\r
4 Permission is granted to use, modify, and / or redistribute at will.
\r
11 #include <threads.h>
\r
14 void flockfile( FILE * file )
\r
16 if( mtx_lock( &file->lock ) != thrd_success ) {
\r
24 #include <_PDCLIB_test.h>
\r
28 // Not tested here - tested by other stdio test drivers
\r
29 return TEST_RESULTS;
\r