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 | < |
20 | < |
21 | 21 | ||
22 | INDEX |
22 | INDEX |
- | 23 | fputc |
|
- | 24 | INDEX |
|
23 | fputc |
25 | fputc_unlocked |
- | 26 | INDEX |
|
- | 27 | _fputc_r |
|
Line 24... | Line 28... | ||
24 | INDEX |
28 | INDEX |
25 | _fputc_r |
29 | _fputc_unlocked_r |
26 | 30 | ||
Line -... | Line 31... | ||
- | 31 | ANSI_SYNOPSIS |
|
- | 32 | #include |
|
- | 33 | int fputc(int <[ch]>, FILE *<[fp]>); |
|
- | 34 | ||
27 | ANSI_SYNOPSIS |
35 | #define _BSD_SOURCE |
28 | #include |
36 | #include |
Line -... | Line 37... | ||
- | 37 | int fputc_unlocked(int <[ch]>, FILE *<[fp]>); |
|
- | 38 | ||
- | 39 | #include |
|
29 | int fputc(int <[ch]>, FILE *<[fp]>); |
40 | int _fputc_r(struct _rent *<[ptr]>, int <[ch]>, FILE *<[fp]>); |
30 | 41 | ||
31 | #include |
42 | #include |
32 | int _fputc_r(struct _rent *<[ptr]>, int <[ch]>, FILE *<[fp]>); |
43 | int _fputc_unlocked_r(struct _rent *<[ptr]>, int <[ch]>, FILE *<[fp]>); |
33 | 44 | ||
Line -... | Line 45... | ||
- | 45 | TRAD_SYNOPSIS |
|
- | 46 | #include |
|
- | 47 | int fputc(<[ch]>, <[fp]>) |
|
- | 48 | int <[ch]>; |
|
- | 49 | FILE *<[fp]>; |
|
- | 50 | ||
34 | TRAD_SYNOPSIS |
51 | #define _BSD_SOURCE |
35 | #include |
52 | #include |
36 | int fputc(<[ch]>, <[fp]>) |
53 | int fputc_unlocked(<[ch]>, <[fp]>) |
37 | int <[ch]>; |
54 | int <[ch]>; |
38 | FILE *<[fp]>; |
55 | FILE *<[fp]>; |
Line -... | Line 56... | ||
- | 56 | ||
- | 57 | #include |
|
- | 58 | int _fputc_r(<[ptr]>, <[ch]>, <[fp]>) |
|
- | 59 | struct _reent *<[ptr]>; |
|
- | 60 | int <[ch]>; |
|
- | 61 | FILE *<[fp]>; |
|
39 | 62 | ||
40 | #include |
63 | #include |
41 | int _fputc_r(<[ptr]>, <[ch]>, <[fp]>) |
64 | int _fputc_unlocked_r(<[ptr]>, <[ch]>, <[fp]>) |
42 | struct _reent *<[ptr]>; |
65 | struct _reent *<[ptr]>; |
Line 54... | Line 77... | ||
54 | current value of the position indicator, and the position indicator |
77 | current value of the position indicator, and the position indicator |
55 | oadvances by one. |
78 | oadvances by one. |
Line 56... | Line 79... | ||
56 | 79 | ||
Line 57... | Line 80... | ||
57 | For a macro version of this function, see < |
80 | For a macro version of this function, see < |
- | 81 | ||
- | 82 | < |
|
- | 83 | < |
|
- | 84 | protected by flockfile() (or ftrylockfile()) and funlockfile(). This |
|
- | 85 | function may safely be used in a multi-threaded program if and only |
|
- | 86 | if they are called while the invoking thread owns the (FILE *) |
|
- | 87 | object, as is the case after a successful call to the flockfile() or |
|
- | 88 | ftrylockfile() functions. If threads are disabled, then |
|
- | 89 | < |
|
58 | 90 | ||
- | 91 | The <<_fputc_r>> and <<_fputc_unlocked_r>> functions are simply reentrant |
|
Line 59... | Line 92... | ||
59 | The <<_fputc_r>> function is simply a reentrant version of < |
92 | versions of the above that take an additional reentrant structure |
60 | that takes an additional reentrant structure argument: <[ptr]>. |
93 | argument: <[ptr]>. |
61 | 94 | ||
62 | RETURNS |
95 | RETURNS |
Line 63... | Line 96... | ||
63 | If successful, < |
96 | If successful, < |
64 | intervenes, the result is < |
97 | intervenes, the result is < |
Line -... | Line 98... | ||
- | 98 | query for errors. |
|
- | 99 | ||
65 | query for errors. |
100 | PORTABILITY |
66 | 101 | < |
|
67 | PORTABILITY |
102 | |
Line 68... | Line 103... | ||
68 | < |
103 | < |