X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample_cygwin%2Ffunctions%2F_PDCLIB%2Ffillbuffer.c;h=293e6c94df5f3a7f24c595b9a65b6c8b35ca0cc3;hb=8cfc7f73e7baec32630b9cf55582febd41b8a684;hp=ecfb96859bcc668b63bfe866d6aca7b4017e5ba8;hpb=8fca29703edff11c81af1e6039bcf115a83b6bbc;p=pdclib.old diff --git a/platform/example_cygwin/functions/_PDCLIB/fillbuffer.c b/platform/example_cygwin/functions/_PDCLIB/fillbuffer.c index ecfb968..293e6c9 100644 --- a/platform/example_cygwin/functions/_PDCLIB/fillbuffer.c +++ b/platform/example_cygwin/functions/_PDCLIB/fillbuffer.c @@ -40,15 +40,19 @@ int _PDCLIB_fillbuffer( struct _PDCLIB_file_t * stream ) /* Reading error */ switch ( errno ) { + /* See comments on implementation-defined errno values in + <_PDCLIB_config.h>. + */ case EBADF: case EFAULT: case EINTR: case EINVAL: case EIO: - _PDCLIB_errno = _PDCLIB_EIO; + _PDCLIB_errno = _PDCLIB_ERROR; break; default: - _PDCLIB_errno = _PDCLIB_EUNKNOWN; + /* This should probably be something like EUNKNOWN. */ + _PDCLIB_errno = _PDCLIB_ERROR; break; } stream->status |= _PDCLIB_ERRORFLAG;