diff options
| author | Alejandro Colomar <alx.manpages@gmail.com> | 2022-09-09 14:15:08 +0200 |
|---|---|---|
| committer | Alejandro Colomar <alx.manpages@gmail.com> | 2022-09-09 14:15:08 +0200 |
| commit | 96e72ec1fbadd13cbcbc2b263540e4f5e9e09d7c (patch) | |
| tree | 70686b943e33a6e939ad265acb7ddfef70b91f32 /man/man3/ferror.3 | |
| parent | 8f4ed6463206e8ede815c72085c7305dafc2e4fc (diff) | |
| download | man-pages-96e72ec1fbadd13cbcbc2b263540e4f5e9e09d7c.tar.gz | |
Revert "src.mk, All pages: Move man* to man/"
This reverts commit 70ac1c4785fc1e158ab2349a962dba2526bf4fbc.
Link: <https://lore.kernel.org/linux-man/YxcV4h+Xn7cd6+q2@pevik/T/>
Reported-by: Petr Vorel <pvorel@suse.cz>
Reported-by: Jakub Wilk <jwilk@jwilk.net>
Cc: Stefan Puiu <stefan.puiu@gmail.com>
Signed-off-by: Alex Colomar <alx.manpages@gmail.com>
Diffstat (limited to 'man/man3/ferror.3')
| -rw-r--r-- | man/man3/ferror.3 | 109 |
1 files changed, 0 insertions, 109 deletions
diff --git a/man/man3/ferror.3 b/man/man3/ferror.3 deleted file mode 100644 index 6400f2303b..0000000000 --- a/man/man3/ferror.3 +++ /dev/null @@ -1,109 +0,0 @@ -.\" Copyright (c) 1990, 1991 The Regents of the University of California. -.\" and Copyright (C) 2021 Michael Kerrisk <mtk.manpages@gmail.com> -.\" All rights reserved. -.\" -.\" This code is derived from software contributed to Berkeley by -.\" Chris Torek and the American National Standards Committee X3, -.\" on Information Processing Systems. -.\" -.\" SPDX-License-Identifier: BSD-4-Clause-UC -.\" -.\" @(#)ferror.3 6.8 (Berkeley) 6/29/91 -.\" -.\" -.\" Converted for Linux, Mon Nov 29 14:24:40 1993, faith@cs.unc.edu -.\" -.TH FERROR 3 2021-03-22 "Linux man-pages (unreleased)" -.SH NAME -clearerr, feof, ferror \- check and reset stream status -.SH LIBRARY -Standard C library -.RI ( libc ", " \-lc ) -.SH SYNOPSIS -.nf -.B #include <stdio.h> -.PP -.BI "void clearerr(FILE *" stream ); -.BI "int feof(FILE *" stream ); -.BI "int ferror(FILE *" stream ); -.fi -.SH DESCRIPTION -The function -.BR clearerr () -clears the end-of-file and error indicators for the stream pointed to by -.IR stream . -.PP -The function -.BR feof () -tests the end-of-file indicator for the stream pointed to by -.IR stream , -returning nonzero if it is set. -The end-of-file indicator can be cleared only by the function -.BR clearerr (). -.PP -The function -.BR ferror () -tests the error indicator for the stream pointed to by -.IR stream , -returning nonzero if it is set. -The error indicator can be reset only by the -.BR clearerr () -function. -.PP -For nonlocking counterparts, see -.BR unlocked_stdio (3). -.SH RETURN VALUE -The -.BR feof () -function returns nonzero if the end-of-file indicator is set for -.IR stream ; -otherwise, it returns zero. -.PP -The -.BR ferror () -function returns nonzero if the error indicator is set for -.IR stream ; -otherwise, it returns zero. -.SH ERRORS -These functions should not fail and do not set -.IR errno . -.SH ATTRIBUTES -For an explanation of the terms used in this section, see -.BR attributes (7). -.ad l -.nh -.TS -allbox; -lbx lb lb -l l l. -Interface Attribute Value -T{ -.BR clearerr (), -.BR feof (), -.BR ferror () -T} Thread safety MT-Safe -.TE -.hy -.ad -.sp 1 -.SH STANDARDS -The functions -.BR clearerr (), -.BR feof (), -and -.BR ferror () -conform to C89, C99, POSIX.1-2001, and POSIX.1-2008. -.SH NOTES -POSIX.1-2008 specifies -.\"https://www.austingroupbugs.net/view.php?id=401 -that these functions shall not change the value of -.I errno -if -.I stream -is valid. -.SH SEE ALSO -.BR open (2), -.BR fdopen (3), -.BR fileno (3), -.BR stdio (3), -.BR unlocked_stdio (3) |
