FERROR(3) Linux Programmer's Manual FERROR(3)

NAME

clearerr, feof, ferror, fileno - check and reset stream status

SYNOPSIS

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

DESCRIPTION

The function clearerr clears the end-of-file and error indicators for the stream pointed to by stream. The function feof tests the end-of-file indicator for the stream pointed to by stream, returning non-zero if it is set. The end-of-file indicator can only be cleared by the function clearerr. The function ferror tests the error indicator for the stream pointed to by stream, returning non-zero if it is set. The error indicator can only be reset by the clear- err function. The function fileno examines the argument stream and returns its integer descriptor.

ERRORS

These functions should not fail and do not set the exter- nal variable errno.

SEE ALSO

open, stdio,


STANDARDS

The functions clearerr, feof, and ferror conform to C3.159-1989 (``ANSI C'').

BSD MANPAGE 29 November 1993 1


Top Master Index Keywords Functions


This manual page was brought to you by mjl_man V-2.0 t-next.git/commit/arch/sh?h=nds-private-remove&id=8ae679c4bc2ea2d16d92620da8e3e9332fa4039f'>commitdiff
path: root/arch/sh
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2016-12-22 21:06:53 -0600
committerLinus Torvalds <torvalds@linux-foundation.org>2016-12-25 16:12:20 -0800
commit8ae679c4bc2ea2d16d92620da8e3e9332fa4039f (patch)
treed029362dda3867b59c44480a5ac58d1d0d7a0f16 /arch/sh
parentd33d5a6c88fcd53fec329a1521010f1bc55fa191 (diff)
powerpc: Fix build warning on 32-bit PPC
I am getting the following warning when I build kernel 4.9-git on my PowerBook G4 with a 32-bit PPC processor: AS arch/powerpc/kernel/misc_32.o arch/powerpc/kernel/misc_32.S:299:7: warning: "CONFIG_FSL_BOOKE" is not defined [-Wundef] This problem is evident after commit 989cea5c14be ("kbuild: prevent lib-ksyms.o rebuilds"); however, this change in kbuild only exposes an error that has been in the code since 2005 when this source file was created. That was with commit 9994a33865f4 ("powerpc: Introduce entry_{32,64}.S, misc_{32,64}.S, systbl.S"). The offending line does not make a lot of sense. This error does not seem to cause any errors in the executable, thus I am not recommending that it be applied to any stable versions. Thanks to Nicholas Piggin for suggesting this solution. Fixes: 9994a33865f4 ("powerpc: Introduce entry_{32,64}.S, misc_{32,64}.S, systbl.S") Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Cc: Nicholas Piggin <npiggin@gmail.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/sh')