X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2F_PDCLIB%2F_PDCLIB_open.c;h=117d149c767468db8a8103c55f55e9cbb23d649a;hp=686ea4ba3d9f2a7102b7c8f585d4ed7ec7db2593;hb=abc15df6b9fae3374d24c7cf5c3ab94c605b2a6d;hpb=8894c921674bb116d0a7b8f23a55311e7a768019 diff --git a/platform/example/functions/_PDCLIB/_PDCLIB_open.c b/platform/example/functions/_PDCLIB/_PDCLIB_open.c index 686ea4b..117d149 100644 --- a/platform/example/functions/_PDCLIB/_PDCLIB_open.c +++ b/platform/example/functions/_PDCLIB/_PDCLIB_open.c @@ -1,37 +1,37 @@ -/* _PDCLIB_open( char const * const, int ) - - This file is part of the Public Domain C Library (PDCLib). - Permission is granted to use, modify, and / or redistribute at will. -*/ - -/* This is a stub implementation of open. -*/ - -#include -#include - -#ifndef REGTEST -#include "_PDCLIB_glue.h" - -bool _PDCLIB_open( _PDCLIB_fd_t * pFd, const _PDCLIB_fileops_t ** pOps, - char const * const filename, unsigned int mode ) -{ - errno = ENOTSUP; - return false; -} - -#endif - -#ifdef TEST -#include "_PDCLIB_test.h" - -#include -#include - -int main( void ) -{ - return TEST_RESULTS; -} - -#endif - +/* _PDCLIB_open( char const * const, int ) + + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ + +/* This is a stub implementation of open. +*/ + +#include +#include + +#ifndef REGTEST +#include "_PDCLIB_glue.h" + +bool _PDCLIB_open( _PDCLIB_fd_t * pFd, const _PDCLIB_fileops_t ** pOps, + char const * const filename, unsigned int mode ) +{ + errno = ENOTSUP; + return false; +} + +#endif + +#ifdef TEST +#include "_PDCLIB_test.h" + +#include +#include + +int main( void ) +{ + return TEST_RESULTS; +} + +#endif +