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=cd8bc64fa7b83088d953742007d526b0a62c7489;hb=abc15df6b9fae3374d24c7cf5c3ab94c605b2a6d;hpb=e1c526e9bad3f6e69391e94059096145390508d3 diff --git a/platform/example/functions/_PDCLIB/_PDCLIB_open.c b/platform/example/functions/_PDCLIB/_PDCLIB_open.c index cd8bc64..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 +