X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2F_PDCLIB%2Fclose.c;h=1b030c963e8bb058f1643b1934ce4aea67c70fe1;hb=e0a1864c7e4dbd4d482379b1bb6fd56b5ac68617;hp=c4b61738794444b55c1a5e387c6c7bf5315c68b0;hpb=393020b6e48719d27699dea6b29e53025bbd5123;p=pdclib diff --git a/platform/example/functions/_PDCLIB/close.c b/platform/example/functions/_PDCLIB/close.c index c4b6173..1b030c9 100644 --- a/platform/example/functions/_PDCLIB/close.c +++ b/platform/example/functions/_PDCLIB/close.c @@ -6,20 +6,19 @@ Permission is granted to use, modify, and / or redistribute at will. */ -/* This is an example implementation of _PDCLIB_close() fit for use with POSIX - kernels. +/* This is a stub example implementation of _PDCLIB_close() */ #include #ifndef REGTEST #include <_PDCLIB_glue.h> - -extern int close( int fd ); +#include int _PDCLIB_close( int fd ) { - return close( fd ); + errno = ENOTSUP; + return 1; } #endif