X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;ds=sidebyside;f=platform%2Fexample%2Ffunctions%2F_PDCLIB%2F_PDCLIB_open.c;fp=platform%2Fexample%2Ffunctions%2F_PDCLIB%2F_PDCLIB_open.c;h=b7b64fec366bd2586d5ec6849637e309258c0eea;hb=baf13261427b80f6e3aab2c7ce485ab08d31144f;hp=0000000000000000000000000000000000000000;hpb=e0a1864c7e4dbd4d482379b1bb6fd56b5ac68617;p=pdclib diff --git a/platform/example/functions/_PDCLIB/_PDCLIB_open.c b/platform/example/functions/_PDCLIB/_PDCLIB_open.c new file mode 100644 index 0000000..b7b64fe --- /dev/null +++ b/platform/example/functions/_PDCLIB/_PDCLIB_open.c @@ -0,0 +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> + +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 +