Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ clearerr(3S) — DG/UX R4.11

Media Vault

Software Library

Restoration Projects

Artifacts Sought



ferror(3S)                        SDK R4.11                       ferror(3S)


NAME
       ferror, feof, clearerr, fileno - stream status inquiries

SYNOPSIS
       #include <stdio.h>
       int ferror (FILE *stream);
       int feof (FILE *stream);
       void clearerr (FILE *stream);
       int fileno (FILE *stream);

DESCRIPTION
       ferror returns non-zero when an error has previously occurred reading
       from or writing to the named stream [see intro(3)], otherwise zero.

       feof returns non-zero when EOF has previously been detected reading
       the named input stream, otherwise zero.

       clearerr resets the error indicator and EOF indicator to zero on the
       named stream.

       fileno returns the integer file descriptor associated with the named
       stream [see open(2)].

   Considerations for Threads Programming
                     +---------+-----------------------------+
                     |         |                      async- |
                     |function | reentrant   cancel   cancel |
                     |         |             point     safe  |
                     +---------+-----------------------------+
                     |clearerr |     Y         N        N    |
                     |feof     |     Y         N        N    |
                     |ferror   |     Y         N        N    |
                     |fileno   |     Y         N        N    |
                     +---------+-----------------------------+
REFERENCES
       open(2), reentrant(3), fopen(3S), stdio(3S)


Licensed material--property of copyright holder(s)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026