Penguin
Annotated edit history of fflush(3) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 FFLUSH
2 !!!FFLUSH
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 RETURN VALUE
7 ERRORS
8 NOTES
9 CONFORMING TO
10 SEE ALSO
11 ----
12 !!NAME
13
14
15 fflush - flush a stream
16 !!SYNOPSIS
17
18
19 __#include __
20
21
22 __int fflush(FILE *__''stream''__);__
23 !!DESCRIPTION
24
25
26 The function __fflush__ forces a write of all user-space
27 buffered data for the given output or update ''stream''
28 via the stream's underlying write function. The open status
29 of the stream is unaffected.
30
31
32 If the ''stream'' argument is __NULL__, __fflush__
33 flushes ''all'' open output streams.
34 !!RETURN VALUE
35
36
37 Upon successful completion 0 is returned. Otherwise,
38 __EOF__ is returned and the global variable ''errno''
39 is set to indicate the error.
40 !!ERRORS
41
42
43 __EBADF__
44
45
46 ''Stream'' is not an open stream, or is not open for
47 writing.
48
49
50 The function __fflush__ may also fail and set
51 ''errno'' for any of the errors specified for the routine
52 write(2).
53 !!NOTES
54
55
56 Note that __fflush__() only flushes the user space
57 buffers provided by the C library. To ensure that the data
58 is physically stored on disk the kernel buffers must be
59 flushed too, e.g. with sync(2) or
60 fsync(2).
61 !!CONFORMING TO
62
63
64 The __fflush__ function conforms to ANSI X3.159-1989
65 (``ANSI C'').
66 !!SEE ALSO
67
68
69 write(2), fclose(3), fopen(3),
70 fsync(2), sync(2), write(2),
71 setbuf(3)
72 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.