Subversion Repositories Kolibri OS

Rev

Rev 5141 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5141 Rev 6099
Line 15... Line 15...
15
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16
 */
16
 */
Line 17... Line 17...
17
 
17
 
18
/*
18
/*
19
FUNCTION
19
FUNCTION
Line 20... Line 20...
20
<>---test whether read/write error has occurred
20
<>, <>---test whether read/write error has occurred
21
 
21
 
-
 
22
INDEX
-
 
23
	ferror
Line 22... Line 24...
22
INDEX
24
INDEX
23
	ferror
25
	ferror_unlocked
24
 
26
 
Line -... Line 27...
-
 
27
ANSI_SYNOPSIS
-
 
28
	#include 
-
 
29
	int ferror(FILE *<[fp]>);
-
 
30
 
25
ANSI_SYNOPSIS
31
	#define _BSD_SOURCE
26
	#include 
32
	#include 
27
	int ferror(FILE *<[fp]>);
33
	int ferror_unlocked(FILE *<[fp]>);
28
 
34
 
Line -... Line 35...
-
 
35
TRAD_SYNOPSIS
-
 
36
	#include 
-
 
37
	int ferror(<[fp]>)
-
 
38
	FILE *<[fp]>;
-
 
39
 
29
TRAD_SYNOPSIS
40
	#define _BSD_SOURCE
30
	#include 
41
	#include 
31
	int ferror(<[fp]>)
42
	int ferror_unlocked(<[fp]>)
32
	FILE *<[fp]>;
43
	FILE *<[fp]>;
33
 
44
 
Line 34... Line 45...
34
DESCRIPTION
45
DESCRIPTION
Line -... Line 46...
-
 
46
The <> functions maintain an error indicator with each file
-
 
47
pointer <[fp]>, to record whether any read or write errors have
-
 
48
occurred on the associated file or stream.
-
 
49
Use <> to query this indicator.
-
 
50
 
-
 
51
See <> to reset the error indicator.
-
 
52
 
-
 
53
<> is a non-thread-safe version of <>.
-
 
54
<> may only safely be used within a scope
35
The <> functions maintain an error indicator with each file
55
protected by flockfile() (or ftrylockfile()) and funlockfile().  This
36
pointer <[fp]>, to record whether any read or write errors have
56
function may safely be used in a multi-threaded program if and only
37
occurred on the associated file or stream.
57
if they are called while the invoking thread owns the (FILE *)
Line 38... Line 58...
38
Use <> to query this indicator.
58
object, as is the case after a successful call to the flockfile() or
39
 
59
ftrylockfile() functions.  If threads are disabled, then
Line -... Line 60...
-
 
60
<> is equivalent to <>.
-
 
61
 
40
See <> to reset the error indicator.
62
RETURNS
41
 
63
<> returns <<0>> if no errors have occurred; it returns a
Line 42... Line 64...
42
RETURNS
64
nonzero value otherwise.
43
<> returns <<0>> if no errors have occurred; it returns a
65