Rev 4921 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4921 | Rev 6099 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * SUCH DAMAGE. |
24 | * SUCH DAMAGE. |
25 | */ |
25 | */ |
Line 26... | Line 26... | ||
26 | 26 | ||
27 | /* |
27 | /* |
28 | FUNCTION |
28 | FUNCTION |
Line 29... | Line 29... | ||
29 | < |
29 | < |
30 | 30 | ||
31 | INDEX |
31 | INDEX |
- | 32 | fputwc |
|
- | 33 | INDEX |
|
32 | fputwc |
34 | fputwc_unlocked |
33 | INDEX |
35 | INDEX |
- | 36 | _fputwc_r |
|
- | 37 | INDEX |
|
34 | _fputwc_r |
38 | _fputwc_unlocked_r |
35 | INDEX |
39 | INDEX |
- | 40 | putwc |
|
- | 41 | INDEX |
|
36 | putwc |
42 | putwc_unlocked |
- | 43 | INDEX |
|
- | 44 | _putwc_r |
|
Line 37... | Line 45... | ||
37 | INDEX |
45 | INDEX |
38 | _putwc_r |
46 | _putwc_unlocked_r |
39 | 47 | ||
40 | ANSI_SYNOPSIS |
48 | ANSI_SYNOPSIS |
Line -... | Line 49... | ||
- | 49 | #include |
|
- | 50 | #include |
|
- | 51 | wint_t fputwc(wchar_t <[wc]>, FILE *<[fp]>); |
|
- | 52 | ||
- | 53 | #define _GNU_SOURCE |
|
41 | #include |
54 | #include |
42 | #include |
55 | #include |
43 | wint_t fputwc(wchar_t <[wc]>, FILE *<[fp]>); |
56 | wint_t fputwc_unlocked(wchar_t <[wc]>, FILE *<[fp]>); |
Line 44... | Line 57... | ||
44 | 57 | ||
45 | #include |
58 | #include |
- | 59 | #include |
|
- | 60 | wint_t _fputwc_r(struct _reent *<[ptr]>, wchar_t <[wc]>, FILE *<[fp]>); |
|
- | 61 | ||
- | 62 | #include |
|
46 | #include |
63 | #include |
Line -... | Line 64... | ||
- | 64 | wint_t _fputwc_unlocked_r(struct _reent *<[ptr]>, wchar_t <[wc]>, FILE *<[fp]>); |
|
- | 65 | ||
- | 66 | #include |
|
- | 67 | #include |
|
- | 68 | wint_t putwc(wchar_t <[wc]>, FILE *<[fp]>); |
|
47 | wint_t _fputwc_r(struct _reent *<[ptr]>, wchar_t <[wc]>, FILE *<[fp]>); |
69 | |
48 | 70 | #define _GNU_SOURCE |
|
49 | #include |
71 | #include |
Line -... | Line 72... | ||
- | 72 | #include |
|
- | 73 | wint_t putwc_unlocked(wchar_t <[wc]>, FILE *<[fp]>); |
|
- | 74 | ||
- | 75 | #include |
|
50 | #include |
76 | #include |
51 | wint_t putwc(wchar_t <[wc]>, FILE *<[fp]>); |
77 | wint_t _putwc_r(struct _reent *<[ptr]>, wchar_t <[wc]>, FILE *<[fp]>); |
52 | 78 | ||
53 | #include |
79 | #include |
54 | #include |
80 | #include |
55 | wint_t _putwc_r(struct _reent *<[ptr]>, wchar_t <[wc]>, FILE *<[fp]>); |
81 | wint_t _putwc_unlocked_r(struct _reent *<[ptr]>, wchar_t <[wc]>, FILE *<[fp]>); |
Line -... | Line 82... | ||
- | 82 | ||
- | 83 | TRAD_SYNOPSIS |
|
- | 84 | #include |
|
- | 85 | #include |
|
- | 86 | wint_t fputwc(<[wc]>, <[fp]>) |
|
- | 87 | wchar_t <[wc]>; |
|
- | 88 | FILE *<[fp]>; |
|
56 | 89 | ||
57 | TRAD_SYNOPSIS |
90 | #define _GNU_SOURCE |
58 | #include |
91 | #include |
59 | #include |
92 | #include |
60 | wint_t fputwc(<[wc]>, <[fp]>) |
93 | wint_t fputwc_unlocked(<[wc]>, <[fp]>) |
61 | wchar_t <[wc]>; |
94 | wchar_t <[wc]>; |
Line 62... | Line 95... | ||
62 | FILE *<[fp]>; |
95 | FILE *<[fp]>; |
63 | 96 | ||
- | 97 | #include |
|
- | 98 | #include |
|
- | 99 | wint_t _fputwc_r(<[ptr]>, <[wc]>, <[fp]>) |
|
- | 100 | struct _reent *<[ptr]>; |
|
- | 101 | wchar_t <[wc]>; |
|
- | 102 | FILE *<[fp]>; |
|
- | 103 | ||
64 | #include |
104 | #include |
65 | #include |
105 | #include |
66 | wint_t _fputwc_r(<[ptr]>, <[wc]>, <[fp]>) |
106 | wint_t _fputwc_unlocked_r(<[ptr]>, <[wc]>, <[fp]>) |
Line -... | Line 107... | ||
- | 107 | struct _reent *<[ptr]>; |
|
- | 108 | wchar_t <[wc]>; |
|
- | 109 | FILE *<[fp]>; |
|
- | 110 | ||
- | 111 | #include |
|
- | 112 | #include |
|
- | 113 | wint_t putwc(<[wc]>, <[fp]>) |
|
67 | struct _reent *<[ptr]>; |
114 | wchar_t <[wc]>; |
68 | wchar_t <[wc]>; |
115 | FILE *<[fp]>; |
69 | FILE *<[fp]>; |
116 | |
70 | 117 | #define _GNU_SOURCE |
|
71 | #include |
118 | #include |
72 | #include |
119 | #include |
Line -... | Line 120... | ||
- | 120 | wint_t putwc_unlocked(<[wc]>, <[fp]>) |
|
- | 121 | wchar_t <[wc]>; |
|
- | 122 | FILE *<[fp]>; |
|
- | 123 | ||
- | 124 | #include |
|
- | 125 | #include |
|
- | 126 | wint_t _putwc_r(<[ptr]>, <[wc]>, <[fp]>) |
|
73 | wint_t putwc(<[wc]>, <[fp]>) |
127 | struct _reent *<[ptr]>; |
74 | wchar_t <[wc]>; |
128 | wchar_t <[wc]>; |
75 | FILE *<[fp]>; |
129 | FILE *<[fp]>; |
Line 76... | Line 130... | ||
76 | 130 | ||
77 | #include |
131 | #include |
78 | #include |
132 | #include |
79 | wint_t _putwc_r(<[ptr]>, <[wc]>, <[fp]>) |
133 | wint_t _putwc_unlocked_r(<[ptr]>, <[wc]>, <[fp]>) |
80 | struct _reent *<[ptr]>; |
134 | struct _reent *<[ptr]>; |
Line -... | Line 135... | ||
- | 135 | wchar_t <[wc]>; |
|
- | 136 | FILE *<[fp]>; |
|
- | 137 | ||
- | 138 | DESCRIPTION |
|
- | 139 | < |
|
- | 140 | stream identified by <[fp]>. |
|
- | 141 | ||
- | 142 | If the file was opened with append mode (or if the stream cannot |
|
- | 143 | support positioning), then the new wide character goes at the end of the |
|
81 | wchar_t <[wc]>; |
144 | file or stream. Otherwise, the new wide character is written at the |
82 | FILE *<[fp]>; |
145 | current value of the position indicator, and the position indicator |
83 | 146 | oadvances by one. |
|
84 | DESCRIPTION |
147 | |
85 | < |
148 | < |
86 | stream identified by <[fp]>. |
149 | < |
87 | 150 | protected by flockfile() (or ftrylockfile()) and funlockfile(). This |
|
Line 88... | Line 151... | ||
88 | If the file was opened with append mode (or if the stream cannot |
151 | function may safely be used in a multi-threaded program if and only |
89 | support positioning), then the new wide character goes at the end of the |
152 | if they are called while the invoking thread owns the (FILE *) |
90 | file or stream. Otherwise, the new wide character is written at the |
153 | object, as is the case after a successful call to the flockfile() or |
91 | current value of the position indicator, and the position indicator |
154 | ftrylockfile() functions. If threads are disabled, then |
Line 92... | Line 155... | ||
92 | oadvances by one. |
155 | < |
93 | 156 | ||
- | 157 | The < |
|
- | 158 | to < |
|
94 | The < |
159 | may evaluate its argument more than once. There is no reason ever to use them. |
Line 95... | Line 160... | ||
95 | may be implemented as a macro, and may evaluate its argument more than |
160 | |
96 | once. There is no reason ever to use it. |
161 | The <<_fputwc_r>>, <<_putwc_r>>, <<_fputwc_unlocked_r>>, and |
97 | 162 | <<_putwc_unlocked_r>> functions are simply reentrant versions of the above |
|
Line 115... | Line 180... | ||
115 | #include |
180 | #include |
116 | #include |
181 | #include |
117 | #include |
182 | #include |
118 | #include "local.h" |
183 | #include "local.h" |
Line 119... | Line 184... | ||
119 | 184 | ||
120 | static wint_t |
185 | wint_t |
121 | _DEFUN(__fputwc, (ptr, wc, fp), |
186 | _DEFUN(__fputwc, (ptr, wc, fp), |
122 | struct _reent *ptr _AND |
187 | struct _reent *ptr _AND |
123 | wchar_t wc _AND |
188 | wchar_t wc _AND |
124 | FILE *fp) |
189 | FILE *fp) |