X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdio%2Ffunlockfile.c;h=98a375c971d051273f8cb6ac3a88eb503ca1c105;hp=4e9ed045f4c12df547721cd8f138f092888565cc;hb=abc15df6b9fae3374d24c7cf5c3ab94c605b2a6d;hpb=8894c921674bb116d0a7b8f23a55311e7a768019 diff --git a/functions/stdio/funlockfile.c b/functions/stdio/funlockfile.c index 4e9ed04..98a375c 100644 --- a/functions/stdio/funlockfile.c +++ b/functions/stdio/funlockfile.c @@ -1,38 +1,38 @@ -/* funlockfile( 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_funlockfile( FILE * file ) -{ - int res = mtx_unlock( &file->lock ); - switch(res) { - case thrd_success: - return; - - default: - abort(); - } -} - -#endif - -#ifdef TEST -#include "_PDCLIB_test.h" - -int main( void ) -{ - // Not tested here - tested by other stdio test drivers - return TEST_RESULTS; -} - -#endif +/* funlockfile( 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_funlockfile( FILE * file ) +{ + int res = mtx_unlock( &file->lock ); + switch(res) { + case thrd_success: + return; + + default: + abort(); + } +} + +#endif + +#ifdef TEST +#include "_PDCLIB_test.h" + +int main( void ) +{ + // Not tested here - tested by other stdio test drivers + return TEST_RESULTS; +} + +#endif