X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample_cygwin%2Ffunctions%2F_PDCLIB%2Ffillbuffer.c;h=820ef45a737a140440eb54e7e4b6e7cbd2587de2;hb=b1fc26afebd4d557ff89a44bc21767a8704c3809;hp=ecfb96859bcc668b63bfe866d6aca7b4017e5ba8;hpb=0c316ee3b4dc0712797877f5dc0f4a789646154d;p=pdclib diff --git a/platform/example_cygwin/functions/_PDCLIB/fillbuffer.c b/platform/example_cygwin/functions/_PDCLIB/fillbuffer.c index ecfb968..820ef45 100644 --- a/platform/example_cygwin/functions/_PDCLIB/fillbuffer.c +++ b/platform/example_cygwin/functions/_PDCLIB/fillbuffer.c @@ -1,6 +1,4 @@ -/* $Id$ */ - -/* _PDCLIB_fillbuffer( struct _PDCLIB_file_t * stream ) +/* _PDCLIB_fillbuffer( struct _PDCLIB_file_t * ) This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. @@ -40,15 +38,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 be something like EUNKNOWN. */ + _PDCLIB_errno = _PDCLIB_ERROR; break; } stream->status |= _PDCLIB_ERRORFLAG;