X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2F_PDCLIB%2F_PDCLIB_open.c;fp=platform%2Fexample%2Ffunctions%2F_PDCLIB%2Fopen.c;h=b7b64fec366bd2586d5ec6849637e309258c0eea;hp=1d292f6e3c15892fa8e46eee4fc599994569ae8e;hb=af55dc64b9118345203e7ba7bd262e6444573795;hpb=77e0f19332a2b4e64d48ecb48557ea7aefa2cc61 diff --git a/platform/example/functions/_PDCLIB/open.c b/platform/example/functions/_PDCLIB/_PDCLIB_open.c similarity index 71% rename from platform/example/functions/_PDCLIB/open.c rename to platform/example/functions/_PDCLIB/_PDCLIB_open.c index 1d292f6..b7b64fe 100644 --- a/platform/example/functions/_PDCLIB/open.c +++ b/platform/example/functions/_PDCLIB/_PDCLIB_open.c @@ -1,38 +1,39 @@ -/* $Id$ */ - -/* _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> - -int _PDCLIB_open( char const * const filename, unsigned int mode ) -{ - errno = ENOTSUP; - return 1; -} - -#endif - -#ifdef TEST -#include <_PDCLIB_test.h> - -#include -#include - -int main( void ) -{ - return TEST_RESULTS; -} - -#endif - +/* $Id$ */ + +/* _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 +