X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Ffclose.c;h=113845b83211294ff9cfa23d332bdf7bb4ef038a;hb=471448a43c59c803bcb8cdd0b0f8881ea4c4267f;hp=3a25b521143f706e05ef945e19441380e6c72e83;hpb=33515db12d3cc5e53a8bdea58d2cde299cba2267;p=pdclib.old diff --git a/functions/stdio/fclose.c b/functions/stdio/fclose.c index 3a25b52..113845b 100644 --- a/functions/stdio/fclose.c +++ b/functions/stdio/fclose.c @@ -8,6 +8,7 @@ #include #include +#include #ifndef REGTEST #include <_PDCLIB_glue.h> @@ -58,7 +59,8 @@ int fclose( struct _PDCLIB_file_t * stream ) previous = current; current = current->next; } - _PDCLIB_errno = _PDCLIB_EIO; + + errno = EINVAL; return -1; }