Subversion Repositories Kolibri OS

Rev

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

Rev 4921 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
<>---return file descriptor associated with stream
20
<>, <>---return file descriptor associated with stream
21
 
21
 
-
 
22
INDEX
-
 
23
	fileno
Line 22... Line 24...
22
INDEX
24
INDEX
23
	fileno
25
	fileno_unlocked
24
 
26
 
Line -... Line 27...
-
 
27
ANSI_SYNOPSIS
-
 
28
	#include 
-
 
29
	int fileno(FILE *<[fp]>);
-
 
30
 
25
ANSI_SYNOPSIS
31
	#define _BSD_SOURCE
26
	#include 
32
	#include 
27
	int fileno(FILE *<[fp]>);
33
	int fileno_unlocked(FILE *<[fp]>);
28
 
34
 
Line -... Line 35...
-
 
35
TRAD_SYNOPSIS
-
 
36
	#include 
-
 
37
	int fileno(<[fp]>)
-
 
38
	FILE *<[fp]>;
-
 
39
 
29
TRAD_SYNOPSIS
40
	#define _BSD_SOURCE
30
	#include 
41
	#include 
Line -... Line 42...
-
 
42
	int fileno_unlocked(<[fp]>)
-
 
43
	FILE *<[fp]>;
-
 
44
 
-
 
45
DESCRIPTION
-
 
46
You can use <> to return the file descriptor identified by <[fp]>.
-
 
47
 
-
 
48
<> is a non-thread-safe version of <>.
-
 
49
<> may only safely be used within a scope
-
 
50
protected by flockfile() (or ftrylockfile()) and funlockfile().  This
31
	int fileno(<[fp]>)
51
function may safely be used in a multi-threaded program if and only
32
	FILE *<[fp]>;
52
if they are called while the invoking thread owns the (FILE *)
33
 
53
object, as is the case after a successful call to the flockfile() or
Line 34... Line 54...
34
DESCRIPTION
54
ftrylockfile() functions.  If threads are disabled, then
35
You can use <> to return the file descriptor identified by <[fp]>.
55
<> is equivalent to <>.
36
 
56
 
Line -... Line 57...
-
 
57
RETURNS
-
 
58
<> returns a non-negative integer when successful.
37
RETURNS
59
If <[fp]> is not an open stream, <> returns -1.
38
<> returns a non-negative integer when successful.
60
 
Line 39... Line 61...
39
If <[fp]> is not an open stream, <> returns -1.
61
PORTABILITY
40
 
62
<> is not part of ANSI C.