X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdio%2Fflockfile.c;h=559f46abd33d47c94b082d336ba90140a8160af8;hp=33b2e1440d830f8e3871064a931659a329c1727b;hb=abc15df6b9fae3374d24c7cf5c3ab94c605b2a6d;hpb=202af43c19ec4f5f1d1b2827a7ef0b46abfebed5 diff --git a/functions/stdio/flockfile.c b/functions/stdio/flockfile.c index 33b2e14..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 _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 +/* 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