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 <_PDCLIB_io.h>
\r
12 #include <threads.h>
\r
15 void _PDCLIB_flockfile( FILE * file )
\r
17 if( mtx_lock( &file->lock ) != thrd_success ) {
\r
25 #include <_PDCLIB_test.h>
\r
29 // Not tested here - tested by other stdio test drivers
\r
30 return TEST_RESULTS;
\r