X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdio%2Fflockfile.c;h=559f46abd33d47c94b082d336ba90140a8160af8;hp=9167da097dcd116a44dc6efca497cc2e8a435a94;hb=abc15df6b9fae3374d24c7cf5c3ab94c605b2a6d;hpb=0a419d48138f1411d6e3e50a367b9ece5a2cf893 diff --git a/functions/stdio/flockfile.c b/functions/stdio/flockfile.c index 9167da0..559f46a 100644 --- a/functions/stdio/flockfile.c +++ b/functions/stdio/flockfile.c @@ -1,33 +1,33 @@ -/* flockfile(FILE * ) - - This file is part of the Public Domain C Library (PDCLib). - Permission is granted to use, modify, and / or redistribute at will. -*/ - -#include -#include - -#ifndef REGTEST -#include <_PDCLIB_io.h> -#include -#include - -void flockfile( FILE * file ) -{ - if( mtx_lock( &file->lock ) != thrd_success ) { - abort(); - } -} - -#endif - -#ifdef TEST -#include <_PDCLIB_test.h> - -int main( void ) -{ - // Not tested here - tested by other stdio test drivers - return TEST_RESULTS; -} - -#endif +/* flockfile(FILE * ) + + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ + +#include +#include + +#ifndef REGTEST +#include "_PDCLIB_io.h" +#include +#include + +void _PDCLIB_flockfile( FILE * file ) +{ + if( mtx_lock( &file->lock ) != thrd_success ) { + abort(); + } +} + +#endif + +#ifdef TEST +#include "_PDCLIB_test.h" + +int main( void ) +{ + // Not tested here - tested by other stdio test drivers + return TEST_RESULTS; +} + +#endif