X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2F_PDCLIB%2Fclose.c;h=1b030c963e8bb058f1643b1934ce4aea67c70fe1;hb=77e0f19332a2b4e64d48ecb48557ea7aefa2cc61;hp=fd85f4c636986b630ebafb5440fe88308a946b26;hpb=67cb1ca6543f8c00240597d140675bd1a66df90f;p=pdclib.old diff --git a/platform/example/functions/_PDCLIB/close.c b/platform/example/functions/_PDCLIB/close.c index fd85f4c..1b030c9 100644 --- a/platform/example/functions/_PDCLIB/close.c +++ b/platform/example/functions/_PDCLIB/close.c @@ -6,23 +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> +#include -#include -#include -#include -#include - -int _PDCLIB_close( _PDCLIB_fd_t fd ) +int _PDCLIB_close( int fd ) { - return close( fd ); + errno = ENOTSUP; + return 1; } #endif