]> pd.if.org Git - pdclib/blobdiff - functions/stdio/fclose.c
Comment cleanups.
[pdclib] / functions / stdio / fclose.c
index 3a25b521143f706e05ef945e19441380e6c72e83..c33860a11ce87741125834bfa5f45ee74fc2896e 100644 (file)
@@ -1,5 +1,3 @@
-/* $Id$ */
-
 /* fclose( FILE * )
 
    This file is part of the Public Domain C Library (PDCLib).
@@ -58,7 +56,10 @@ int fclose( struct _PDCLIB_file_t * stream )
         previous = current;
         current = current->next;
     }
-    _PDCLIB_errno = _PDCLIB_EIO;
+    /* See the comments on implementation-defined errno values in
+       <_PDCLIB_config.h>.
+    */
+    _PDCLIB_errno = _PDCLIB_ERROR;
     return -1;
 }